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.

160 lines
4.4 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995 - 2000 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. /***************************************************************************
  22. *
  23. * Make sure we know what platform we are building for.
  24. *
  25. * INITGUID is defined by guidlib, who doesn't care what platform we
  26. * are building for. (GUIDs are platform-independent.)
  27. *
  28. ***************************************************************************/
  29. #ifndef INITGUID
  30. #if defined(WINNT) + defined(WIN95) != 1
  31. #error Must define exactly one of WINNT or WIN95
  32. #endif
  33. #endif
  34. /***************************************************************************
  35. *
  36. * Deciding whether we should use UNICODE
  37. *
  38. * Use UNICODE on everything that isn't an X86, because NT is the only
  39. * thing that runs on them.
  40. *
  41. * If we *are* X86, then do UNICODE only if the command line says so.
  42. *
  43. ***************************************************************************/
  44. #ifndef _X86_
  45. #ifndef UNICODE
  46. #define UNICODE
  47. #endif
  48. #endif
  49. #pragma warning(disable:4115) /* rpcndr.h: parenthesized type */
  50. #pragma warning(disable:4201) /* winnt.h: nameless union */
  51. #pragma warning(disable:4214) /* winnt.h: unsigned bitfields */
  52. #pragma warning(disable:4514) /* winnt.h: fiber goo */
  53. #pragma warning(error:4101) /* unreferenced local variable */
  54. #define STRICT
  55. #include <windows.h>
  56. #include <windowsx.h>
  57. #include <mmsystem.h>
  58. #include <mmreg.h>
  59. #include <objbase.h>
  60. #include <regstr.h>
  61. #include <math.h>
  62. #define DIRECTINPUT_VERSION 0x0800
  63. #include <dinput.h>
  64. #include "dinputp.h"
  65. /*
  66. * Do sanity checks on header version
  67. */
  68. #ifndef DIRECTINPUT_HEADER_VERSION
  69. #error DIRECTINPUT_HEADER_VERSION not defined.
  70. #else
  71. #if( DIRECTINPUT_HEADER_VERSION < 0x0800 )
  72. #if( DIRECTINPUT_HEADER_VERSION != DIRECTINPUT_VERSION )
  73. #error Mis-matched DInput header.
  74. #else
  75. #define DIRECTINPUT_INTERNAL_VERSION DIRECTINPUT_HEADER_VERSION
  76. #endif
  77. #else
  78. #define DIRECTINPUT_INTERNAL_VERSION DIRECTINPUT_VERSION
  79. #endif
  80. #endif
  81. #if (_WIN32_WINNT >= 0x0501)
  82. #define USE_WM_INPUT 1
  83. #endif
  84. #ifndef GUIDLIB
  85. /*
  86. * Old versions of commctrl.h do not #include <prsht.h> automatically;
  87. * therefore we must include it so that <setupapi.h> won't barf.
  88. * Fortunately, prsht.h is idempotent, so an extra #include won't hurt.
  89. */
  90. #include <prsht.h>
  91. #include <setupapi.h>
  92. #include <hidsdi.h>
  93. #include <cfgmgr32.h>
  94. #include <winioctl.h>
  95. #ifndef WINNT
  96. /*
  97. * The version of basetyps.h hidclass.h includes on Win9x builds
  98. * causes redefinition errors for DEFINE_GUID since we already have
  99. * it from objbase.h so we have to null the include.
  100. */
  101. #define _BASETYPS_H_
  102. #endif
  103. #include <hidclass.h>
  104. #include <stdio.h>
  105. #endif
  106. #include <dinputd.h>
  107. #include "dinputdp.h"
  108. #include "dinputv.h"
  109. #include "disysdef.h"
  110. #include "dinputi.h"
  111. #include "dihel.h"
  112. #include "debug.h"
  113. #include "diem.h"
  114. #include "..\dimap\dimap.h"
  115. #include "diextdll.h"
  116. #include "dihid.h"
  117. #include "dinputrc.h"
  118. #include "diwinnt.h"
  119. #ifdef GUIDLIB
  120. #include <winioctl.h>
  121. #endif
  122. #include "diport.h"
  123. #include "gameport.h"
  124. #include "winuser.h"
  125. #include "dbt.h"
  126. #include <lmcons.h>
  127. #ifdef WINNT
  128. #include "aclapi.h"
  129. #endif
  130. #include "diRiff.h"
  131. #include "verinfo.h"
  132. #include "ddraw.h"
  133. #include "d3d8.h"
  134. #endif