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.

143 lines
3.9 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dinputpr.h
  6. * Content: private DirectInput include file
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 96.05.08 raymondc Because it's there
  12. *@@END_MSINTERNAL
  13. *
  14. ***************************************************************************/
  15. #ifndef __DINPUTPR_INCLUDED__
  16. #define __DINPUTPR_INCLUDED__
  17. #ifndef WIN32_LEAN_AND_MEAN
  18. #define WIN32_LEAN_AND_MEAN
  19. #endif
  20. #define Not_VxD
  21. // ISSUE-2000/12/19-MarcAnd HID_SUPPORT #ifdefs should be cleaned out
  22. // This was commented out since the makefile sets it but adding dilib
  23. // means it is easiest to put this back. HID_SUPPORT is not going away
  24. // so the #ifdefed code should be cleaned up.
  25. #ifndef HID_SUPPORT
  26. #define HID_SUPPORT
  27. #endif
  28. /***************************************************************************
  29. *
  30. * Make sure we know what platform we are building for.
  31. *
  32. * INITGUID is defined by guidlib, who doesn't care what platform we
  33. * are building for. (GUIDs are platform-independent.)
  34. *
  35. ***************************************************************************/
  36. #ifndef INITGUID
  37. #if defined(WINNT) + defined(WIN95) != 1
  38. #error Must define exactly one of WINNT or WIN95
  39. #endif
  40. #endif
  41. /***************************************************************************
  42. *
  43. * Deciding whether we should use UNICODE
  44. *
  45. * Use UNICODE on everything that isn't an X86, because NT is the only
  46. * thing that runs on them.
  47. *
  48. * If we *are* X86, then do UNICODE only if the command line says so.
  49. *
  50. ***************************************************************************/
  51. #ifndef _X86_
  52. #ifndef UNICODE
  53. #define UNICODE
  54. #endif
  55. #endif
  56. #pragma warning(disable:4115) /* rpcndr.h: parenthesized type */
  57. #pragma warning(disable:4201) /* winnt.h: nameless union */
  58. #pragma warning(disable:4214) /* winnt.h: unsigned bitfields */
  59. #pragma warning(disable:4514) /* winnt.h: fiber goo */
  60. #pragma warning(error:4101) /* unreferenced local variable */
  61. #define STRICT
  62. #include <windows.h>
  63. #include <windowsx.h>
  64. #include <mmsystem.h>
  65. #include <mmreg.h>
  66. #include <objbase.h>
  67. #include <regstr.h>
  68. #include <math.h>
  69. #define DIRECTINPUT_VERSION 0x0700
  70. #include <dinput.h>
  71. #include "dinputp.h"
  72. #if DIRECTINPUT_VERSION > 0x0400 && !defined(GUIDLIB)
  73. #if (_WIN32_WINNT >= 0x0501)
  74. #define USE_WM_INPUT 1
  75. #endif
  76. /*
  77. * Old versions of commctrl.h do not #include <prsht.h> automatically;
  78. * therefore we must include it so that <setupapi.h> won't barf.
  79. * Fortunately, prsht.h is idempotent, so an extra #include won't hurt.
  80. */
  81. #include <prsht.h>
  82. #include <setupapi.h>
  83. #include <hidsdi.h>
  84. #include <cfgmgr32.h>
  85. #include <winioctl.h>
  86. #ifndef WINNT
  87. /*
  88. * The version of basetyps.h hidclass.h includes on Win9x builds
  89. * causes redefinition errors for DEFINE_GUID since we already have
  90. * it from objbase.h so we have to null the include.
  91. */
  92. #define _BASETYPS_H_
  93. #endif
  94. #include <hidclass.h>
  95. #include <stdio.h>
  96. #endif
  97. #include <dinputd.h>
  98. #include "dinputdp.h"
  99. #include "dinputv.h"
  100. #include "dinputi.h"
  101. #include "dihel.h"
  102. #include "debug.h"
  103. #include "diem.h"
  104. #include "dihid.h"
  105. #include "dinputrc.h"
  106. #include "diwinnt.h"
  107. #if !(DIRECTINPUT_VERSION > 0x0400 && !defined(GUIDLIB))
  108. #include <winioctl.h>
  109. #endif
  110. #include "diport.h"
  111. #include "gameport.h"
  112. #include "winuser.h"
  113. #include "dbt.h"
  114. #ifdef WINNT
  115. #include "aclapi.h"
  116. #endif
  117. #include "diRiff.h"
  118. #endif