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.

43 lines
1.4 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. ; Copyright (c) 1994 - 1998 Microsoft Corporation. All Rights Reserved.
  7. ; File: vjoydapi.h
  8. ; Content: VJOYDAPI service equates and structures
  9. ;*************************************************************************
  10. MULTIMEDIA_OEM_ID EQU 0440H ; MS Reserved OEM # 34
  11. VJOYD_DEVICE_ID EQU (MULTIMEDIA_OEM_ID+9) ; VJOYD API Device
  12. VJOYD_Ver_Major EQU 1
  13. VJOYD_Ver_Minor EQU 3 ; 0=Win95 1=DX3 2=DX5 3=DX5a and DX7a
  14. ; VJOYDAPI_Get_Version
  15. ; ENTRY:
  16. ; AX = 0
  17. ; RETURNS:
  18. ; SUCCESS: AX == TRUE
  19. ; ERROR: AX == FALSE
  20. VJOYDAPI_GetVersion EQU 0
  21. VJOYDAPI_IOCTL_GetVersion EQU VJOYDAPI_GetVersion
  22. ; VJOYDAPI_GetPosEx
  23. ; ENTRY:
  24. ; AX = 1
  25. ; DX = joystick id (0->15)
  26. ; ES:BX = pointer to JOYINFOEX struct
  27. ; RETURNS:
  28. ; SUCCESS: EAX == MMSYSERR_NOERROR
  29. ; ERROR: EAX == JOYERR_PARMS
  30. ; JOYERR_UNPLUGGED
  31. VJOYDAPI_GetPosEx EQU 1
  32. VJOYDAPI_IOCTL_GetPosEx EQU VJOYDAPI_GetPosEx
  33. ; VJOYDAPI_GetPos
  34. ; ENTRY:
  35. ; AX = 2
  36. ; DX = joystick id (0->15)
  37. ; ES:BX = pointer to JOYINFO struct
  38. ; RETURNS:
  39. ; SUCCESS: EAX == MMSYSERR_NOERROR
  40. ; ERROR: EAX == JOYERR_PARMS
  41. ; JOYERR_UNPLUGGED
  42. VJOYDAPI_GetPos EQU 2
  43. VJOYDAPI_IOCTL_GetPos EQU VJOYDAPI_GetPos