I'm trying to use Winpcap PacketRequest() function (located in packet32.h) in order to send OID to a network adapter. It works on XP32, doesn't work on Win7 32 and Win7 64 (in Win7 64 I get last error code 1, in 32 I don't know - I don't have access to a 32-bit at the moment). I looked at the source of the PacketRequest() function - It calls DeviceIoControl(), and this is the function that fails and therefore fails PacketRequest().
Am I working with the wrong Winpcap libraries? (I have installed WinPcap_4_1_2.exe)
Why isn't it working on Win7?
Thanks in advance.