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.

67 lines
1.7 KiB

  1. /****************************************************************************
  2. * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  3. * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  4. * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  5. * PURPOSE.
  6. *
  7. * Copyright (c) 1994 - 1998 Microsoft Corporation. All Rights Reserved.
  8. *
  9. * File: vjoydapi.h
  10. * Content: VJOYDAPI service equates and structures
  11. *
  12. ***************************************************************************/
  13. #define REGSTR_KEY_JOYFIXEDKEY "<FixedKey>"
  14. #define MULTIMEDIA_OEM_ID 0x0440 /* MS Reserved OEM # 34 */
  15. #define VJOYD_DEVICE_ID (MULTIMEDIA_OEM_ID + 9) /* VJOYD API Device */
  16. #define VJOYD_Device_ID VJOYD_DEVICE_ID
  17. #define VJOYD_Ver_Major 1
  18. #define VJOYD_Ver_Minor 3 /* 0=Win95 1=DX3 2=DX5 3=DX5a and DX7a */
  19. /*
  20. * VJOYDAPI_Get_Version
  21. *
  22. * ENTRY:
  23. * AX = 0
  24. *
  25. * RETURNS:
  26. * SUCCESS: AX == TRUE
  27. * ERROR: AX == FALSE
  28. */
  29. #define VJOYDAPI_GetVersion 0
  30. #define VJOYDAPI_IOCTL_GetVersion VJOYDAPI_GetVersion
  31. /*
  32. * VJOYDAPI_GetPosEx
  33. *
  34. * ENTRY:
  35. * AX = 1
  36. * DX = joystick id (0->15)
  37. * ES:BX = pointer to JOYINFOEX struct
  38. *
  39. * RETURNS:
  40. * SUCCESS: EAX == MMSYSERR_NOERROR
  41. * ERROR: EAX == JOYERR_PARMS
  42. * JOYERR_UNPLUGGED
  43. */
  44. #define VJOYDAPI_GetPosEx 1
  45. #define VJOYDAPI_IOCTL_GetPosEx VJOYDAPI_GetPosEx
  46. /*
  47. * VJOYDAPI_GetPos
  48. *
  49. * ENTRY:
  50. * AX = 2
  51. * DX = joystick id (0->15)
  52. * ES:BX = pointer to JOYINFO struct
  53. *
  54. * RETURNS:
  55. * SUCCESS: EAX == MMSYSERR_NOERROR
  56. * ERROR: EAX == JOYERR_PARMS
  57. * JOYERR_UNPLUGGED
  58. */
  59. #define VJOYDAPI_GetPos 2
  60. #define VJOYDAPI_IOCTL_GetPos VJOYDAPI_GetPos