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.

77 lines
3.0 KiB

  1. /****************************************************************************
  2. MODULE: joyregst.hpp
  3. Tab settings: 5 9
  4. Copyright 1995, 1996, 1999, Microsoft Corporation, All Rights Reserved.
  5. PURPOSE: Header for VJOYD Registry functions
  6. FUNCTIONS:
  7. Author(s): Name:
  8. ---------- ----------------
  9. MEA Manolito E. Adan
  10. Revision History:
  11. -----------------
  12. Version Date Author Comments
  13. ------- ------ ----- -------------------------------------------
  14. 1.0 22-Jan-96 MEA original
  15. 21-Mar-99 waltw Removed unreferenced joyGetOEMProductName,
  16. joyGetOEMForceFeedbackDriverDLLName,
  17. GetRing0DriverName
  18. ****************************************************************************/
  19. #ifndef joyregst_SEEN
  20. #define joyregst_SEEN
  21. #include <dinput.h>
  22. #define REGSTR_OEMFORCEFEEDBACK "OEMForceFeedback"
  23. #define REGSTR_VAL_SFORCE_DRIVERDLL "Driver DLL"
  24. #define REGSTR_VAL_SFORCE_PRODUCTNAME "ProductName"
  25. #define REGSTR_VAL_SFORCE_MANUFACTURERNAME "Manufacturer"
  26. #define REGSTR_VAL_SFORCE_PRODUCTVERSION "ProductVersion"
  27. #define REGSTR_VAL_SFORCE_DEVICEDRIVERVERSION "DeviceDriverVersion"
  28. #define REGSTR_VAL_SFORCE_DEVICEFIRMWAREVERSION "DeviceFirmwareVersion"
  29. #define REGSTR_VAL_SFORCE_INTERFACE "Interface"
  30. #define REGSTR_VAL_SFORCE_MAXSAMPLERATE "MaxSampleRate"
  31. #define REGSTR_VAL_SFORCE_MAXMEMORY "MaxMemory"
  32. #define REGSTR_VAL_SFORCE_NUMBEROFSENSORS "NumberOfSensors"
  33. #define REGSTR_VAL_SFORCE_NUMBEROFAXES "NumberOfAxes"
  34. #define REGSTR_VAL_SFORCE_EFFECTSCAPS "EffectsCaps"
  35. #define REGSTR_VAL_SFORCE_EXTRAINFO "ExtraInfo"
  36. #define REGSTR_VAL_COMM_INTERFACE "COMMInterface"
  37. #define REGSTR_VAL_COMM_PORT "COMMPort"
  38. #define REGSTR_VAL_RING0_DRIVER "RING0 Driver"
  39. #define REGSTR_VAL_RTCSPRING_X "RTCSpringX"
  40. #define REGSTR_VAL_RTCSPRING_Y "RTCSpringY"
  41. #define REGSTR_VAL_MAPPING "Mapping"
  42. #define REGSTR_VAL_MAPPERCENTS "Mapping Percents"
  43. #define REGSTR_VAL_SPRING_OFFSET "Spring Offset"
  44. HKEY joyOpenOEMForceFeedbackKey(UINT id);
  45. MMRESULT joyGetForceFeedbackCOMMInterface(UINT id, ULONG* ulArg1, ULONG* ulArg2);
  46. MMRESULT joySetForceFeedbackCOMMInterface(UINT id, ULONG ulCOMMInterface, ULONG ulCOMMPort);
  47. MMRESULT GetRTCSpringData(UINT id, DICONDITION diCondition[2]);
  48. DWORD GetMapping(UINT id);
  49. UINT GetMappingPercents(UINT id, short mapPercents[], UINT numPercents);
  50. DWORD GetAckNackMethodFromRegistry(UINT id);
  51. DWORD GetSpringOffsetFromRegistry(UINT id);
  52. #define REGBITS_DESTROYEFFECT 14
  53. #define REGBITS_PLAYEFFECT 12
  54. #define REGBITS_STOPEFFECT 10
  55. #define REGBITS_SETINDEX 8
  56. #define REGBITS_MODIFYPARAM 6
  57. #define REGBITS_SETDEVICESTATE 4
  58. #define REGBITS_DOWNLOADEFFECT 2
  59. #define REGBITS_DEVICEINIT 0
  60. #define ACKNACK_NOTHING 0x00
  61. #define ACKNACK_BUTTONSTATUS 0x01
  62. #define ACKNACK_STATUSPACKET 0x02
  63. #endif // of if joyregst_SEEN