Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
798 B

  1. //
  2. // public.h
  3. //
  4. // Shared items used both for the driver and the test app
  5. #define TEST_DEVICE "\\\\.\\hidmon"
  6. #define CTL_CODE( DeviceType, Function, Method, Access ) ( \
  7. ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
  8. )
  9. #define METHOD_BUFFERED 0
  10. #define FILE_ANY_ACCESS 0
  11. //
  12. // 0x8000 - 0xFFFF are reserved for use by customers.
  13. //
  14. #define FILE_DEVICE_TEST 0x0000835F
  15. //
  16. // 0x800 - 0xFFF are reserved for customers.
  17. //
  18. #define TEST_IOCTL_INDEX 0x830
  19. //
  20. // The MONO device driver IOCTLs
  21. //
  22. #define IOCTL_GET_DEVICE_CLASS_ASSOC CTL_CODE(FILE_DEVICE_TEST, TEST_IOCTL_INDEX , METHOD_BUFFERED, FILE_ANY_ACCESS)
  23. //
  24. // Maximum lenght of the device list returned from IOTCL
  25. //
  26. #define MAX_DEVICE_LIST_LEN 255