wdmioctl.h
资源名称:虚拟串口驱动程序.rar [点击查看]
上传用户:zanmei2
上传日期:2010-03-06
资源大小:775k
文件大小:2k
源码类别:
通讯编程文档
开发平台:
C/C++
- #ifndef __hellowdmioctl__h_
- #define __hellowdmioctl__h_
- #if 0
- #define WDM_IOCTL_ALLOCATE_MEMORY CTL_CODE( FILE_DEVICE_UNKNOWN, 0x802, METHOD_BUFFERED , FILE_ANY_ACCESS)
- #define WDM_IOCTL_GET_TIME CTL_CODE( FILE_DEVICE_UNKNOWN, 0x803, METHOD_BUFFERED , FILE_ANY_ACCESS)
- #define WDM_IOCTL_SET_DATA CTL_CODE( FILE_DEVICE_UNKNOWN, 0x805, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
- #define WDM_IOCTL_GET_DATA CTL_CODE( FILE_DEVICE_UNKNOWN, 0x806, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
- #define IOCTL_INITIALIZE_CONNECTION CTL_CODE( FILE_DEVICE_UNKNOWN, 0x808, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
- #define IOCTL_DISCONNECTION CTL_CODE( FILE_DEVICE_UNKNOWN, 0x809, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
- #endif
- #define IOCTL_CREATE_DOS_NAME CTL_CODE( FILE_DEVICE_UNKNOWN, 0x807, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
- #define IOCTL_DELETE_DOS_NAME CTL_CODE( FILE_DEVICE_UNKNOWN, 0x808, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
- #define IOCTL_QUERY_NETWORK_INFORMATION CTL_CODE( FILE_DEVICE_UNKNOWN, 0x810, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
- #define IOCTL_SET_REMOTE_INFO CTL_CODE( FILE_DEVICE_UNKNOWN, 0x812, METHOD_BUFFERED, FILE_ANY_ACCESS)
- //#define WDM_IOCTL_GET_DATA CTL_CODE( FILE_DEVICE_UNKNOWN, 0x806, METHOD_BUFFERED, FILE_ANY_ACCESS)
- //
- // Define an Interface Guid for toaster device class.
- // This GUID is used to register (IoRegisterDeviceInterface)
- // an instance of an interface so that user application
- // can control the toaster device.
- //
- DEFINE_GUID (GUID_WDMSAMPLE_DEVICE_INTERFACE_CLASS,
- 0x781EF630, 0x72B2, 0x11d2, 0xB8, 0x52, 0x00, 0xC0, 0x4F, 0xAD, 0x51, 0x71);
- //{781EF630-72B2-11d2-B852-00C04FAD5171}
- #endif