31#define MAX_SERVICE_LENGTH 40
35#define CTL_CODE( DeviceType, Function, Method, Access ) ( \
36 ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
39#define METHOD_BUFFERED 0
40#define METHOD_IN_DIRECT 1
41#define METHOD_OUT_DIRECT 2
42#define METHOD_NEITHER 3
44#define FILE_ANY_ACCESS 0
45#define FILE_READ_ACCESS 0x0001
46#define FILE_WRITE_ACCESS 0x0002
50#define FILE_DEVICE_DOT4 0x3a
51#define IOCTL_DOT4_USER_BASE 2049
52#define IOCTL_DOT4_LAST IOCTL_DOT4_USER_BASE + 9
54#define IOCTL_DOT4_ADD_ACTIVITY_BROADCAST \
55 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
57#define IOCTL_DOT4_CLOSE_CHANNEL \
58 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
60#define IOCTL_DOT4_CREATE_SOCKET \
61 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 7, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
63#define IOCTL_DOT4_DESTROY_SOCKET \
64 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 9, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
66#define IOCTL_DOT4_OPEN_CHANNEL \
67 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 0, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
69#define IOCTL_DOT4_READ \
70 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 2, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
72#define IOCTL_DOT4_REMOVE_ACTIVITY_BROADCAST \
73 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 5, METHOD_BUFFERED, FILE_ANY_ACCESS)
75#define IOCTL_DOT4_WAIT_ACTIVITY_BROADCAST \
76 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 6, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
78#define IOCTL_DOT4_WAIT_FOR_CHANNEL \
79 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 8, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
81#define IOCTL_DOT4_WRITE \
82 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 3, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
struct _DOT4_DRIVER_CMD DOT4_DRIVER_CMD
struct _DOT4_DRIVER_CMD * PDOT4_DRIVER_CMD
struct _DOT4_DC_OPEN_DATA * PDOT4_DC_OPEN_DATA
struct _DOT4_DC_OPEN_DATA DOT4_DC_OPEN_DATA
#define MAX_SERVICE_LENGTH
struct _DOT4_DC_CREATE_DATA * PDOT4_DC_CREATE_DATA
struct _DOT4_DC_CREATE_DATA DOT4_DC_CREATE_DATA
struct _DOT4_DC_DESTROY_DATA * PDOT4_DC_DESTROY_DATA
struct _DOT4_DC_DESTROY_DATA DOT4_DC_DESTROY_DATA
USHORT usMaxHtoPPacketSize
USHORT usMaxPtoHPacketSize
CHAR pServiceName[MAX_SERVICE_LENGTH+1]
unsigned char fAddActivity
CHANNEL_HANDLE hChannelHandle
CHANNEL_HANDLE hChannelHandle