get I/O control code constants of NDIS IM using C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I'm trying to access the extended Passthru from
http://www.wd-3.com/031504/PTEx3_index.htm using C#.

Anybody know how to get the correct iocontrol codes of :

IOCTL_PTUSERIO_ENUMERATE = ?;
IOCTL_NDISPROT_OPEN_DEVICE = ?;

There is an example using with ndisprot protocol driver:
http://www.codeproject.com/csharp/SendRawPacket.asp?df=100&forumid=25245&select=1082543

// iocontrol code constants
private const uint IOCTL_NDISPROT_QUERY_BINDING = 0x12C80C;
private const uint IOCTL_NDISPROT_OPEN_DEVICE = 0x12C800;

however i dont khnow this codes are taking from where.
 
hi,
i have found:

// I/O control code constants

private const uint IOCTL_PTUSERIO_ENUMERATE = 0x12C804;
private const uint IOCTL_PTUSERIO_OPEN_ADAPTER = 0x12C808;
private const uint IOCTL_PTUSERIO_QUERY_INFORMATION = x12C80C;

.....
 
Back
Top