ddk/ntddtdi.h@3:0c3bcea5b4d0, 2012-03-05 (annotated)
- Committer:
- sca8er
- Date:
- Mon Mar 05 04:56:58 2012 +0000
- Revision:
- 3:0c3bcea5b4d0
- Parent:
- 2:5853bf44af9f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sca8er | 2:5853bf44af9f | 1 | /* |
sca8er | 2:5853bf44af9f | 2 | * ntddtdi.h |
sca8er | 2:5853bf44af9f | 3 | * |
sca8er | 2:5853bf44af9f | 4 | * TDI IOCTL interface |
sca8er | 2:5853bf44af9f | 5 | * |
sca8er | 2:5853bf44af9f | 6 | * This file is part of the w32api package. |
sca8er | 2:5853bf44af9f | 7 | * |
sca8er | 2:5853bf44af9f | 8 | * Contributors: |
sca8er | 2:5853bf44af9f | 9 | * Created by Casper S. Hornstrup <chorns@users.sourceforge.net> |
sca8er | 2:5853bf44af9f | 10 | * |
sca8er | 2:5853bf44af9f | 11 | * THIS SOFTWARE IS NOT COPYRIGHTED |
sca8er | 2:5853bf44af9f | 12 | * |
sca8er | 2:5853bf44af9f | 13 | * This source code is offered for use in the public domain. You may |
sca8er | 2:5853bf44af9f | 14 | * use, modify or distribute it freely. |
sca8er | 2:5853bf44af9f | 15 | * |
sca8er | 2:5853bf44af9f | 16 | * This code is distributed in the hope that it will be useful but |
sca8er | 2:5853bf44af9f | 17 | * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY |
sca8er | 2:5853bf44af9f | 18 | * DISCLAIMED. This includes but is not limited to warranties of |
sca8er | 2:5853bf44af9f | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
sca8er | 2:5853bf44af9f | 20 | * |
sca8er | 2:5853bf44af9f | 21 | */ |
sca8er | 2:5853bf44af9f | 22 | |
sca8er | 2:5853bf44af9f | 23 | #ifndef __NTDDTDI_H |
sca8er | 2:5853bf44af9f | 24 | #define __NTDDTDI_H |
sca8er | 2:5853bf44af9f | 25 | |
sca8er | 2:5853bf44af9f | 26 | #if __GNUC__ >=3 |
sca8er | 2:5853bf44af9f | 27 | #pragma GCC system_header |
sca8er | 2:5853bf44af9f | 28 | #endif |
sca8er | 2:5853bf44af9f | 29 | |
sca8er | 2:5853bf44af9f | 30 | #ifdef __cplusplus |
sca8er | 2:5853bf44af9f | 31 | extern "C" { |
sca8er | 2:5853bf44af9f | 32 | #endif |
sca8er | 2:5853bf44af9f | 33 | |
sca8er | 2:5853bf44af9f | 34 | #include "ntddk.h" |
sca8er | 2:5853bf44af9f | 35 | |
sca8er | 2:5853bf44af9f | 36 | #define DD_TDI_DEVICE_NAME "\\Device\\UNKNOWN" |
sca8er | 2:5853bf44af9f | 37 | #define DD_TDI_DEVICE_NAME_U L"\\Device\\UNKNOWN" |
sca8er | 2:5853bf44af9f | 38 | |
sca8er | 2:5853bf44af9f | 39 | #define _TDI_CONTROL_CODE(Request, Method) \ |
sca8er | 2:5853bf44af9f | 40 | CTL_CODE(FILE_DEVICE_TRANSPORT, Request, Method, FILE_ANY_ACCESS) |
sca8er | 2:5853bf44af9f | 41 | |
sca8er | 2:5853bf44af9f | 42 | #define IOCTL_TDI_ACCEPT _TDI_CONTROL_CODE(0, METHOD_BUFFERED) |
sca8er | 2:5853bf44af9f | 43 | #define IOCTL_TDI_CONNECT _TDI_CONTROL_CODE(1, METHOD_BUFFERED) |
sca8er | 2:5853bf44af9f | 44 | #define IOCTL_TDI_DISCONNECT _TDI_CONTROL_CODE(2, METHOD_BUFFERED) |
sca8er | 2:5853bf44af9f | 45 | #define IOCTL_TDI_LISTEN _TDI_CONTROL_CODE(3, METHOD_BUFFERED) |
sca8er | 2:5853bf44af9f | 46 | #define IOCTL_TDI_QUERY_INFORMATION _TDI_CONTROL_CODE(4, METHOD_OUT_DIRECT) |
sca8er | 2:5853bf44af9f | 47 | #define IOCTL_TDI_RECEIVE _TDI_CONTROL_CODE(5, METHOD_OUT_DIRECT) |
sca8er | 2:5853bf44af9f | 48 | #define IOCTL_TDI_RECEIVE_DATAGRAM _TDI_CONTROL_CODE(6, METHOD_OUT_DIRECT) |
sca8er | 2:5853bf44af9f | 49 | #define IOCTL_TDI_SEND _TDI_CONTROL_CODE(7, METHOD_IN_DIRECT) |
sca8er | 2:5853bf44af9f | 50 | #define IOCTL_TDI_SEND_DATAGRAM _TDI_CONTROL_CODE(8, METHOD_IN_DIRECT) |
sca8er | 2:5853bf44af9f | 51 | #define IOCTL_TDI_SET_EVENT_HANDLER _TDI_CONTROL_CODE(9, METHOD_BUFFERED) |
sca8er | 2:5853bf44af9f | 52 | #define IOCTL_TDI_SET_INFORMATION _TDI_CONTROL_CODE(10, METHOD_IN_DIRECT) |
sca8er | 2:5853bf44af9f | 53 | #define IOCTL_TDI_ASSOCIATE_ADDRESS _TDI_CONTROL_CODE(11, METHOD_BUFFERED) |
sca8er | 2:5853bf44af9f | 54 | #define IOCTL_TDI_DISASSOCIATE_ADDRESS _TDI_CONTROL_CODE(12, METHOD_BUFFERED) |
sca8er | 2:5853bf44af9f | 55 | #define IOCTL_TDI_ACTION _TDI_CONTROL_CODE(13, METHOD_OUT_DIRECT) |
sca8er | 2:5853bf44af9f | 56 | |
sca8er | 2:5853bf44af9f | 57 | #ifdef __cplusplus |
sca8er | 2:5853bf44af9f | 58 | } |
sca8er | 2:5853bf44af9f | 59 | #endif |
sca8er | 2:5853bf44af9f | 60 | |
sca8er | 2:5853bf44af9f | 61 | #endif /* __NTDDTDI_H */ |