home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / cwin / c.exe / $INSTDIR / include / ddk / usbiodef.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-15  |  3.5 KB  |  112 lines

  1. /*
  2.  * usbiodef.h
  3.  *
  4.  * USB IOCTL definitions
  5.  *
  6.  * This file is part of the w32api package.
  7.  *
  8.  * Contributors:
  9.  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
  10.  *
  11.  * THIS SOFTWARE IS NOT COPYRIGHTED
  12.  *
  13.  * This source code is offered for use in the public domain. You may
  14.  * use, modify or distribute it freely.
  15.  *
  16.  * This code is distributed in the hope that it will be useful but
  17.  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  18.  * DISCLAIMED. This includes but is not limited to warranties of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20.  *
  21.  */
  22.  
  23. #ifndef __USBIODEF_H
  24. #define __USBIODEF_H
  25.  
  26. #if __GNUC__ >=3
  27. #pragma GCC system_header
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #pragma pack(push,4)
  35.  
  36. #include "ntddk.h"
  37.  
  38.  
  39. DEFINE_GUID(GUID_DEVINTERFACE_USB_HUB, \
  40.   0xf18a0e88, 0xc30c, 0x11d0, 0x88, 0x15, 0x00, 0xa0, 0xc9, 0x06, 0xbe, 0xd8);
  41.  
  42. DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE,
  43.   0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED);
  44.  
  45. DEFINE_GUID(GUID_DEVINTERFACE_USB_HOST_CONTROLLER,
  46.   0x3abf6f2d, 0x71c4, 0x462a, 0x8a, 0x92, 0x1e, 0x68, 0x61, 0xe6, 0xaf, 0x27);
  47.              
  48. DEFINE_GUID(GUID_USB_WMI_STD_DATA,
  49.   0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00, 0xA0, 0xC9, 0x59, 0xBB, 0xD2);
  50.  
  51. DEFINE_GUID(GUID_USB_WMI_STD_NOTIFICATION,
  52.   0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00, 0xA0, 0xC9, 0x59, 0xBB, 0xD2);        
  53.  
  54. #define GUID_CLASS_USBHUB                 GUID_DEVINTERFACE_USB_HUB
  55. #define GUID_CLASS_USB_DEVICE             GUID_DEVINTERFACE_USB_DEVICE
  56. #define GUID_CLASS_USB_HOST_CONTROLLER    GUID_DEVINTERFACE_USB_HOST_CONTROLLER
  57.  
  58. #define USB_SUBMIT_URB                    0
  59. #define USB_RESET_PORT                    1
  60. #define USB_GET_ROOTHUB_PDO               3
  61. #define USB_GET_PORT_STATUS               4
  62. #define USB_ENABLE_PORT                   5
  63. #define USB_GET_HUB_COUNT                 6
  64. #define USB_CYCLE_PORT                    7
  65. #define USB_GET_HUB_NAME                  8
  66. #define USB_IDLE_NOTIFICATION             9
  67. #define USB_GET_BUS_INFO                  264
  68. #define USB_GET_CONTROLLER_NAME           265
  69. #define USB_GET_BUSGUID_INFO              266
  70. #define USB_GET_PARENT_HUB_INFO           267
  71. #define USB_GET_DEVICE_HANDLE             268
  72.  
  73. #define HCD_GET_STATS_1                   255
  74. #define HCD_DIAGNOSTIC_MODE_ON            256
  75. #define HCD_DIAGNOSTIC_MODE_OFF           257
  76. #define HCD_GET_ROOT_HUB_NAME             258
  77. #define HCD_GET_DRIVERKEY_NAME            265
  78. #define HCD_GET_STATS_2                   266
  79. #define HCD_DISABLE_PORT                  268
  80. #define HCD_ENABLE_PORT                   269
  81. #define HCD_USER_REQUEST                  270
  82.  
  83. #define USB_GET_NODE_INFORMATION                258
  84. #define USB_GET_NODE_CONNECTION_INFORMATION     259
  85. #define USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION 260
  86. #define USB_GET_NODE_CONNECTION_NAME            261
  87. #define USB_DIAG_IGNORE_HUBS_ON                 262
  88. #define USB_DIAG_IGNORE_HUBS_OFF                263
  89. #define USB_GET_NODE_CONNECTION_DRIVERKEY_NAME  264
  90. #define USB_GET_HUB_CAPABILITIES                271
  91. #define USB_GET_NODE_CONNECTION_ATTRIBUTES      272
  92.  
  93. #define FILE_DEVICE_USB                   FILE_DEVICE_UNKNOWN
  94.  
  95. #define USB_CTL(id) CTL_CODE(FILE_DEVICE_USB, \
  96.                                                          (id), \
  97.                                                          METHOD_BUFFERED, \
  98.                                                          FILE_ANY_ACCESS)
  99.  
  100. #define USB_KERNEL_CTL(id) CTL_CODE(FILE_DEVICE_USB, \
  101.                                     (id), \
  102.                                     METHOD_NEITHER, \
  103.                                     FILE_ANY_ACCESS)
  104.  
  105. #pragma pack(pop)
  106.  
  107. #ifdef __cplusplus
  108. }
  109. #endif
  110.  
  111. #endif /* __USBIODEF_H */
  112.