1 |
asvitkine |
1.1 |
// #include <ntddndis.h> |
2 |
|
|
|
3 |
|
|
#ifndef __NTDDPACKET |
4 |
|
|
#define __NTDDPACKET 1 |
5 |
|
|
|
6 |
|
|
// #include <devioctl.h> |
7 |
|
|
|
8 |
|
|
#define MAX_LINK_NAME_LENGTH 124 |
9 |
|
|
|
10 |
|
|
#pragma pack(1) |
11 |
|
|
typedef struct _PACKET_OID_DATA { |
12 |
|
|
ULONG Oid; |
13 |
|
|
ULONG Length; |
14 |
|
|
UCHAR Data[1]; |
15 |
|
|
} PACKET_OID_DATA, *PPACKET_OID_DATA; |
16 |
|
|
#pragma pack() |
17 |
|
|
|
18 |
|
|
|
19 |
|
|
#define FILE_DEVICE_PROTOCOL 0x8000 |
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
#define IOCTL_PROTOCOL_SET_OID CTL_CODE(FILE_DEVICE_PROTOCOL, 0 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
24 |
|
|
#define IOCTL_PROTOCOL_QUERY_OID CTL_CODE(FILE_DEVICE_PROTOCOL, 1 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
25 |
|
|
#define IOCTL_PROTOCOL_RESET CTL_CODE(FILE_DEVICE_PROTOCOL, 2 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
26 |
|
|
#define IOCTL_PROTOCOL_READ CTL_CODE(FILE_DEVICE_PROTOCOL, 3 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
27 |
|
|
#define IOCTL_PROTOCOL_WRITE CTL_CODE(FILE_DEVICE_PROTOCOL, 4 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
28 |
|
|
#define IOCTL_PROTOCOL_MACNAME CTL_CODE(FILE_DEVICE_PROTOCOL, 5 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
29 |
|
|
#define IOCTL_PROTOCOL_SELECT_BY_NAME CTL_CODE(FILE_DEVICE_PROTOCOL, 6 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
30 |
|
|
#define IOCTL_ENUM_ADAPTERS CTL_CODE(FILE_DEVICE_PROTOCOL, 7 , METHOD_BUFFERED, FILE_ANY_ACCESS) |
31 |
|
|
|
32 |
|
|
#endif |