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.

258 lines
6.2 KiB

  1. /*++ BUILD Version: 0001 Increment this if a change has global effects
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. windows.h
  5. Abstract:
  6. Master include file for Windows applications.
  7. --*/
  8. #ifndef _WINDOWS_
  9. #define _WINDOWS_
  10. #ifndef WINVER
  11. #define WINVER 0x0501
  12. #else
  13. #if defined(_WIN32_WINNT) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400)
  14. #error WINVER setting conflicts with _WIN32_WINNT setting
  15. #endif
  16. #endif
  17. #ifndef _INC_WINDOWS
  18. #define _INC_WINDOWS
  19. #if defined (_MSC_VER) && (_MSC_VER >= 1020)
  20. #pragma once
  21. #endif
  22. /* If defined, the following flags inhibit definition
  23. * of the indicated items.
  24. *
  25. * NOGDICAPMASKS - CC_*, LC_*, PC_*, CP_*, TC_*, RC_
  26. * NOVIRTUALKEYCODES - VK_*
  27. * NOWINMESSAGES - WM_*, EM_*, LB_*, CB_*
  28. * NOWINSTYLES - WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
  29. * NOSYSMETRICS - SM_*
  30. * NOMENUS - MF_*
  31. * NOICONS - IDI_*
  32. * NOKEYSTATES - MK_*
  33. * NOSYSCOMMANDS - SC_*
  34. * NORASTEROPS - Binary and Tertiary raster ops
  35. * NOSHOWWINDOW - SW_*
  36. * OEMRESOURCE - OEM Resource values
  37. * NOATOM - Atom Manager routines
  38. * NOCLIPBOARD - Clipboard routines
  39. * NOCOLOR - Screen colors
  40. * NOCTLMGR - Control and Dialog routines
  41. * NODRAWTEXT - DrawText() and DT_*
  42. * NOGDI - All GDI defines and routines
  43. * NOKERNEL - All KERNEL defines and routines
  44. * NOUSER - All USER defines and routines
  45. * NONLS - All NLS defines and routines
  46. * NOMB - MB_* and MessageBox()
  47. * NOMEMMGR - GMEM_*, LMEM_*, GHND, LHND, associated routines
  48. * NOMETAFILE - typedef METAFILEPICT
  49. * NOMINMAX - Macros min(a,b) and max(a,b)
  50. * NOMSG - typedef MSG and associated routines
  51. * NOOPENFILE - OpenFile(), OemToAnsi, AnsiToOem, and OF_*
  52. * NOSCROLL - SB_* and scrolling routines
  53. * NOSERVICE - All Service Controller routines, SERVICE_ equates, etc.
  54. * NOSOUND - Sound driver routines
  55. * NOTEXTMETRIC - typedef TEXTMETRIC and associated routines
  56. * NOWH - SetWindowsHook and WH_*
  57. * NOWINOFFSETS - GWL_*, GCL_*, associated routines
  58. * NOCOMM - COMM driver routines
  59. * NOKANJI - Kanji support stuff.
  60. * NOHELP - Help engine interface.
  61. * NOPROFILER - Profiler interface.
  62. * NODEFERWINDOWPOS - DeferWindowPos routines
  63. * NOMCX - Modem Configuration Extensions
  64. */
  65. #if defined(RC_INVOKED) && !defined(NOWINRES)
  66. #include <winresrc.h>
  67. #else
  68. #if defined(RC_INVOKED)
  69. /* Turn off a bunch of stuff to ensure that RC files compile OK. */
  70. #define NOATOM
  71. #define NOGDI
  72. #define NOGDICAPMASKS
  73. #define NOMETAFILE
  74. #define NOMINMAX
  75. #define NOMSG
  76. #define NOOPENFILE
  77. #define NORASTEROPS
  78. #define NOSCROLL
  79. #define NOSOUND
  80. #define NOSYSMETRICS
  81. #define NOTEXTMETRIC
  82. #define NOWH
  83. #define NOCOMM
  84. #define NOKANJI
  85. #define NOCRYPT
  86. #define NOMCX
  87. #endif
  88. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_IX86)
  89. #define _X86_
  90. #endif
  91. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_AMD64)
  92. #define _AMD64_
  93. #endif
  94. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_M68K)
  95. #define _68K_
  96. #endif
  97. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_MPPC)
  98. #define _MPPC_
  99. #endif
  100. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_M_IX86) && !defined(_AMD64_) && defined(_M_IA64)
  101. #if !defined(_IA64_)
  102. #define _IA64_
  103. #endif // !_IA64_
  104. #endif
  105. #ifndef _MAC
  106. #if defined(_68K_) || defined(_MPPC_)
  107. #define _MAC
  108. #endif
  109. #endif
  110. #if defined (_MSC_VER)
  111. #if ( _MSC_VER >= 800 )
  112. #ifndef __cplusplus
  113. #pragma warning(disable:4116) // TYPE_ALIGNMENT generates this - move it
  114. // outside the warning push/pop scope.
  115. #endif
  116. #endif
  117. #endif
  118. #ifndef RC_INVOKED
  119. #if ( _MSC_VER >= 800 )
  120. #pragma warning(disable:4514)
  121. #ifndef __WINDOWS_DONT_DISABLE_PRAGMA_PACK_WARNING__
  122. #pragma warning(disable:4103)
  123. #endif
  124. #if _MSC_VER >= 1200
  125. #pragma warning(push)
  126. #endif
  127. #pragma warning(disable:4001)
  128. #pragma warning(disable:4201)
  129. #pragma warning(disable:4214)
  130. #endif
  131. #include <excpt.h>
  132. #include <stdarg.h>
  133. #endif /* RC_INVOKED */
  134. #include <windef.h>
  135. #include <winbase.h>
  136. #include <wingdi.h>
  137. #include <winuser.h>
  138. #if !defined(_MAC) || defined(_WIN32NLS)
  139. #include <winnls.h>
  140. #endif
  141. #ifndef _MAC
  142. #include <wincon.h>
  143. #include <winver.h>
  144. #endif
  145. #if !defined(_MAC) || defined(_WIN32REG)
  146. #include <winreg.h>
  147. #endif
  148. #ifndef _MAC
  149. #include <winnetwk.h>
  150. #endif
  151. #ifndef WIN32_LEAN_AND_MEAN
  152. #include <cderr.h>
  153. #include <dde.h>
  154. #include <ddeml.h>
  155. #include <dlgs.h>
  156. #ifndef _MAC
  157. #include <lzexpand.h>
  158. #include <mmsystem.h>
  159. #include <nb30.h>
  160. #include <rpc.h>
  161. #endif
  162. #include <shellapi.h>
  163. #ifndef _MAC
  164. #include <winperf.h>
  165. #include <winsock.h>
  166. #endif
  167. #ifndef NOCRYPT
  168. #include <wincrypt.h>
  169. #include <winefs.h>
  170. #include <winscard.h>
  171. #endif
  172. #ifndef NOGDI
  173. #ifndef _MAC
  174. #include <winspool.h>
  175. #ifdef INC_OLE1
  176. #include <ole.h>
  177. #else
  178. #include <ole2.h>
  179. #endif /* !INC_OLE1 */
  180. #endif /* !MAC */
  181. #include <commdlg.h>
  182. #endif /* !NOGDI */
  183. #endif /* WIN32_LEAN_AND_MEAN */
  184. #include <stralign.h>
  185. #ifdef _MAC
  186. #include <winwlm.h>
  187. #endif
  188. #ifdef INC_OLE2
  189. #include <ole2.h>
  190. #endif /* INC_OLE2 */
  191. #ifndef _MAC
  192. #ifndef NOSERVICE
  193. #include <winsvc.h>
  194. #endif
  195. #if(WINVER >= 0x0400)
  196. #ifndef NOMCX
  197. #include <mcx.h>
  198. #endif /* NOMCX */
  199. #ifndef NOIME
  200. #include <imm.h>
  201. #endif
  202. #endif /* WINVER >= 0x0400 */
  203. #endif
  204. #ifndef RC_INVOKED
  205. #if ( _MSC_VER >= 800 )
  206. #if _MSC_VER >= 1200
  207. #pragma warning(pop)
  208. #else
  209. #pragma warning(default:4001)
  210. #pragma warning(default:4201)
  211. #pragma warning(default:4214)
  212. /* Leave 4514 disabled. It's an unneeded warning anyway. */
  213. #endif
  214. #endif
  215. #endif /* RC_INVOKED */
  216. #endif /* RC_INVOKED */
  217. #endif /* _INC_WINDOWS */
  218. #endif /* _WINDOWS_ */