|
|
1.1 root 1: /*++ BUILD Version: 0001 // Increment this if a change has global effects
2:
3: Copyright (c) 1990-1993 Microsoft Corporation
4:
5: Module Name:
6:
7: ntddtdi.h
8:
9: Abstract:
10:
11: This is the include file that defines all constants and types for
12: accessing the Transport driver interface device.
13:
14: Author:
15:
16: Steve Wood (stevewo) 27-May-1990
17:
18: Revision History:
19:
20: Dave Beaver (dbeaver) 5 June 1991
21: add support for TDI version 2.0 -- associate_address,
22: disassociate_address
23:
24: --*/
25:
26: #ifndef _NTDDTDI_
27: #define _NTDDTDI_
28:
29: //
30: // Device Name - this string is the name of the device. It is the name
31: // that should be passed to NtOpenFile when accessing the device.
32: //
33: // Note: For devices that support multiple units, it should be suffixed
34: // with the Ascii representation of the unit number.
35: //
36:
37: #define DD_TDI_DEVICE_NAME "\\Device\\UNKNOWN"
38:
39:
40: //
41: // NtDeviceIoControlFile IoControlCode values for this device.
42: //
43: // Warning: Remember that the low two bits of the code specify how the
44: // buffers are passed to the driver!
45: //
46:
47: #define _TDI_CONTROL_CODE(request,method) \
48: CTL_CODE(FILE_DEVICE_TRANSPORT, request, method, FILE_ANY_ACCESS)
49:
50: #define IOCTL_TDI_ACCEPT _TDI_CONTROL_CODE( 0, METHOD_BUFFERED )
51: #define IOCTL_TDI_CONNECT _TDI_CONTROL_CODE( 1, METHOD_BUFFERED )
52: #define IOCTL_TDI_DISCONNECT _TDI_CONTROL_CODE( 2, METHOD_BUFFERED )
53: #define IOCTL_TDI_LISTEN _TDI_CONTROL_CODE( 3, METHOD_BUFFERED )
54: #define IOCTL_TDI_QUERY_INFORMATION _TDI_CONTROL_CODE( 4, METHOD_OUT_DIRECT )
55: #define IOCTL_TDI_RECEIVE _TDI_CONTROL_CODE( 5, METHOD_OUT_DIRECT )
56: #define IOCTL_TDI_RECEIVE_DATAGRAM _TDI_CONTROL_CODE( 6, METHOD_OUT_DIRECT )
57: #define IOCTL_TDI_SEND _TDI_CONTROL_CODE( 7, METHOD_IN_DIRECT )
58: #define IOCTL_TDI_SEND_DATAGRAM _TDI_CONTROL_CODE( 8, METHOD_IN_DIRECT )
59: #define IOCTL_TDI_SET_EVENT_HANDLER _TDI_CONTROL_CODE( 9, METHOD_BUFFERED )
60: #define IOCTL_TDI_SET_INFORMATION _TDI_CONTROL_CODE( 10, METHOD_IN_DIRECT )
61: #define IOCTL_TDI_ASSOCIATE_ADDRESS _TDI_CONTROL_CODE( 11, METHOD_BUFFERED )
62: #define IOCTL_TDI_DISASSOCIATE_ADDRESS _TDI_CONTROL_CODE( 12, METHOD_BUFFERED )
63: #define IOCTL_TDI_ACTION _TDI_CONTROL_CODE( 13, METHOD_OUT_DIRECT )
64:
65: #endif // ndef _NTDDTDI_
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.