Leaked source code of windows server 2003
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.

60 lines
3.2 KiB

  1. #ifndef __DISYSDEF_H__
  2. #define __DISYSDEF_H__
  3. // IOCTLs defined here are only for NT builds to work with DINPUT.SYS
  4. #ifdef WINNT
  5. #undef IOCTL_FIRST
  6. #define IOCTL_FIRST 0x0800
  7. #undef IOCTL_GETVERSION
  8. #define IOCTL_GETVERSION 0x0000
  9. #undef IOCTL_INPUTLOST
  10. #define IOCTL_INPUTLOST CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST, METHOD_BUFFERED, FILE_ANY_ACCESS)
  11. #undef IOCTL_DESTROYINSTANCE
  12. #define IOCTL_DESTROYINSTANCE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+1, METHOD_BUFFERED, FILE_ANY_ACCESS)
  13. #undef IOCTL_SETDATAFORMAT
  14. #define IOCTL_SETDATAFORMAT CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+2, METHOD_BUFFERED, FILE_ANY_ACCESS)
  15. #undef IOCTL_ACQUIREINSTANCE
  16. #define IOCTL_ACQUIREINSTANCE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+3, METHOD_BUFFERED, FILE_ANY_ACCESS)
  17. #undef IOCTL_UNACQUIREINSTANCE
  18. #define IOCTL_UNACQUIREINSTANCE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+4, METHOD_BUFFERED, FILE_ANY_ACCESS)
  19. #undef IOCTL_SETNOTIFYHANDLE
  20. #define IOCTL_SETNOTIFYHANDLE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+5, METHOD_BUFFERED, FILE_ANY_ACCESS)
  21. #undef IOCTL_SETBUFFERSIZE
  22. #define IOCTL_SETBUFFERSIZE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+6, METHOD_BUFFERED, FILE_ANY_ACCESS)
  23. // Keyboard class IOCTLs
  24. #undef IOCTL_KBD_CREATEINSTANCE
  25. #define IOCTL_KBD_CREATEINSTANCE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+7, METHOD_BUFFERED, FILE_ANY_ACCESS)
  26. #undef IOCTL_KBD_INITKEYS
  27. #define IOCTL_KBD_INITKEYS CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+8, METHOD_BUFFERED, FILE_ANY_ACCESS)
  28. // Mouse class IOCTLs
  29. #undef IOCTL_MOUSE_CREATEINSTANCE
  30. #define IOCTL_MOUSE_CREATEINSTANCE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+9, METHOD_BUFFERED, FILE_ANY_ACCESS)
  31. #undef IOCTL_MOUSE_INITBUTTONS
  32. #define IOCTL_MOUSE_INITBUTTONS CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+10, METHOD_BUFFERED, FILE_ANY_ACCESS)
  33. // Joystick class IOCTLs
  34. #undef IOCTL_JOY_CREATEINSTANCE
  35. #define IOCTL_JOY_CREATEINSTANCE CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+11, METHOD_BUFFERED, FILE_ANY_ACCESS)
  36. #undef IOCTL_JOY_PING
  37. #define IOCTL_JOY_PING CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+12, METHOD_BUFFERED, FILE_ANY_ACCESS)
  38. #undef IOCTL_JOY_GETINITPARMS
  39. #define IOCTL_JOY_GETINITPARMS CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+13, METHOD_BUFFERED, FILE_ANY_ACCESS)
  40. #undef IOCTL_JOY_FFIO
  41. #define IOCTL_JOY_FFIO CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+14, METHOD_BUFFERED, FILE_ANY_ACCESS)
  42. #undef IOCTL_GETSEQUENCEPTR
  43. #define IOCTL_GETSEQUENCEPTR CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+15, METHOD_BUFFERED, FILE_ANY_ACCESS)
  44. #undef IOCTL_JOY_GETAXES
  45. #define IOCTL_JOY_GETAXES CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+16, METHOD_BUFFERED, FILE_ANY_ACCESS)
  46. #undef IOCTL_MOUSE_GETWHEEL
  47. #define IOCTL_MOUSE_GETWHEEL CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+17, METHOD_BUFFERED, FILE_ANY_ACCESS)
  48. #undef IOCTL_JOY_CONFIGCHANGED
  49. #define IOCTL_JOY_CONFIGCHANGED CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+18, METHOD_BUFFERED, FILE_ANY_ACCESS)
  50. #undef IOCTL_MAX
  51. #define IOCTL_MAX CTL_CODE(FILE_DEVICE_KEYBOARD, IOCTL_FIRST+19, METHOD_BUFFERED, FILE_ANY_ACCESS)
  52. #endif // WINNT
  53. #endif // __DISYSDEF_H__