home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / windows.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  7KB  |  264 lines

  1.  
  2. /*++ BUILD Version: 0001    Increment this if a change has global effects
  3.  
  4. Copyright (c) 1985-1997, Microsoft Corporation
  5.  
  6. Module Name:
  7.  
  8.  
  9.     windows.h
  10.  
  11. Abstract:
  12.  
  13.     Master include file for Windows applications.
  14.  
  15. --*/
  16.  
  17. #ifndef _WINDOWS_
  18. #define _WINDOWS_
  19.  
  20.  
  21. #ifndef WINVER
  22. #define WINVER 0x0400
  23. #else    
  24. #if defined(_WIN32_WINNT) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400)
  25. #error WINVER setting conflicts with _WIN32_WINNT setting
  26. #endif
  27. #endif
  28.  
  29. #if(WINVER >= 0x0500)
  30. #pragma message ("")
  31. #pragma message ("NOTE: WINVER has been defined as 0x0500 or greater which enables")
  32. #pragma message ("Windows NT 5.0 and Windows 98 features. When these headers were released,")
  33. #pragma message ("Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.")
  34. #pragma message ("")
  35. #pragma message ("For this release when WINVER is defined as 0x0500 or greater, you can only")
  36. #pragma message ("build beta or test applications.  To build a retail application,")
  37. #pragma message ("set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk")
  38. #pragma message ("to see if retail Windows NT 5.0 or Windows 98 headers are available.")
  39. #pragma message ("")
  40. #pragma message ("See the SDK release notes for more information.")
  41. #pragma message ("")
  42. #endif
  43.  
  44. #ifndef _INC_WINDOWS
  45. #define _INC_WINDOWS
  46.  
  47. #if defined (_MSC_VER) && (_MSC_VER >= 1020)
  48. #pragma once
  49. #endif
  50.  
  51. /*  If defined, the following flags inhibit definition
  52.  *     of the indicated items.
  53.  *
  54.  *  NOGDICAPMASKS     - CC_*, LC_*, PC_*, CP_*, TC_*, RC_
  55.  *  NOVIRTUALKEYCODES - VK_*
  56.  *  NOWINMESSAGES     - WM_*, EM_*, LB_*, CB_*
  57.  *  NOWINSTYLES       - WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
  58.  *  NOSYSMETRICS      - SM_*
  59.  *  NOMENUS           - MF_*
  60.  *  NOICONS           - IDI_*
  61.  *  NOKEYSTATES       - MK_*
  62.  *  NOSYSCOMMANDS     - SC_*
  63.  *  NORASTEROPS       - Binary and Tertiary raster ops
  64.  *  NOSHOWWINDOW      - SW_*
  65.  *  OEMRESOURCE       - OEM Resource values
  66.  *  NOATOM            - Atom Manager routines
  67.  *  NOCLIPBOARD       - Clipboard routines
  68.  *  NOCOLOR           - Screen colors
  69.  *  NOCTLMGR          - Control and Dialog routines
  70.  *  NODRAWTEXT        - DrawText() and DT_*
  71.  *  NOGDI             - All GDI defines and routines
  72.  *  NOKERNEL          - All KERNEL defines and routines
  73.  *  NOUSER            - All USER defines and routines
  74.  *  NONLS             - All NLS defines and routines
  75.  *  NOMB              - MB_* and MessageBox()
  76.  *  NOMEMMGR          - GMEM_*, LMEM_*, GHND, LHND, associated routines
  77.  *  NOMETAFILE        - typedef METAFILEPICT
  78.  *  NOMINMAX          - Macros min(a,b) and max(a,b)
  79.  *  NOMSG             - typedef MSG and associated routines
  80.  *  NOOPENFILE        - OpenFile(), OemToAnsi, AnsiToOem, and OF_*
  81.  *  NOSCROLL          - SB_* and scrolling routines
  82.  *  NOSERVICE         - All Service Controller routines, SERVICE_ equates, etc.
  83.  *  NOSOUND           - Sound driver routines
  84.  *  NOTEXTMETRIC      - typedef TEXTMETRIC and associated routines
  85.  *  NOWH              - SetWindowsHook and WH_*
  86.  *  NOWINOFFSETS      - GWL_*, GCL_*, associated routines
  87.  *  NOCOMM            - COMM driver routines
  88.  *  NOKANJI           - Kanji support stuff.
  89.  *  NOHELP            - Help engine interface.
  90.  *  NOPROFILER        - Profiler interface.
  91.  *  NODEFERWINDOWPOS  - DeferWindowPos routines
  92.  *  NOMCX             - Modem Configuration Extensions
  93.  */
  94.  
  95. #if defined(RC_INVOKED) && !defined(NOWINRES)
  96.  
  97. #include <winresrc.h>
  98.  
  99. #else
  100.  
  101. #if defined(RC_INVOKED)
  102. /* Turn off a bunch of stuff to ensure that RC files compile OK. */
  103. #define NOATOM
  104. #define NOGDI
  105. #define NOGDICAPMASKS
  106. #define NOMETAFILE
  107. #define NOMINMAX
  108. #define NOMSG
  109. #define NOOPENFILE
  110. #define NORASTEROPS
  111. #define NOSCROLL
  112. #define NOSOUND
  113. #define NOSYSMETRICS
  114. #define NOTEXTMETRIC
  115. #define NOWH
  116. #define NOCOMM
  117. #define NOKANJI
  118. #define NOCRYPT
  119. #define NOMCX
  120. #endif
  121.  
  122. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_MIPS_) && !defined(_X86_) && defined(_M_IX86)
  123. #define _X86_
  124. #endif
  125.  
  126. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_MRX000)
  127. #define _MIPS_
  128. #endif
  129.  
  130. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_ALPHA)
  131. #define _ALPHA_
  132. #endif
  133.  
  134. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_PPC)
  135. #define _PPC_
  136. #endif
  137.  
  138. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_M68K)
  139. #define _68K_
  140. #endif
  141.  
  142. #if !defined(_68K_) && !defined(_MPPC_) && !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_MPPC)
  143. #define _MPPC_
  144. #endif
  145.  
  146. #ifndef _MAC
  147. #if defined(_68K_) || defined(_MPPC_)
  148. #define _MAC
  149. #endif
  150. #endif
  151.  
  152. #ifndef RC_INVOKED
  153. #if     ( _MSC_VER >= 800 )
  154. #pragma warning(disable:4001)
  155. #pragma warning(disable:4201)
  156. #pragma warning(disable:4214)
  157. #pragma warning(disable:4514)
  158. #endif
  159. #include <excpt.h>
  160. #include <stdarg.h>
  161. #endif /* RC_INVOKED */
  162.  
  163. #include <windef.h>
  164. #include <winbase.h>
  165. #include <wingdi.h>
  166. #include <winuser.h>
  167. #ifdef _MAC
  168. DECLARE_HANDLE(HKEY);
  169. typedef HKEY *PHKEY;
  170. #endif
  171. #if !defined(_MAC) || defined(_WIN32NLS)
  172. #include <winnls.h>
  173. #endif
  174. #ifndef _MAC
  175. #include <wincon.h>
  176. #include <winver.h>
  177. #endif
  178. #if !defined(_MAC) || defined(_WIN32REG)
  179. #include <winreg.h>
  180. #endif
  181. #ifndef _MAC
  182. #include <winnetwk.h>
  183. #endif
  184.  
  185. #ifndef WIN32_LEAN_AND_MEAN
  186. #include <cderr.h>
  187. #include <dde.h>
  188. #include <ddeml.h>
  189. #include <dlgs.h>
  190. #ifndef _MAC
  191. #include <lzexpand.h>
  192. #include <mmsystem.h>
  193. #include <nb30.h>
  194. #include <rpc.h>
  195. #endif
  196. #include <shellapi.h>
  197. #ifndef _MAC
  198. #include <winperf.h>
  199.  
  200. #if(_WIN32_WINNT >= 0x0400)
  201. #include <winsock2.h>
  202. #include <mswsock.h>
  203. #else
  204. #include <winsock.h>
  205. #endif /* _WIN32_WINNT >=  0x0400 */
  206.  
  207. #endif
  208. #ifndef NOCRYPT
  209. #include <wincrypt.h>
  210. #endif
  211.  
  212. #ifndef NOGDI
  213. #include <commdlg.h>
  214. #ifndef _MAC
  215. #include <winspool.h>
  216. #ifdef INC_OLE1
  217. #include <ole.h>
  218. #else
  219. #include <ole2.h>
  220. #endif /* !INC_OLE1 */
  221. #endif /* !MAC */
  222. #endif /* !NOGDI */
  223. #endif /* WIN32_LEAN_AND_MEAN */
  224.  
  225. #ifdef _MAC
  226. #include <winwlm.h>
  227. #endif
  228.  
  229.  
  230. #ifdef INC_OLE2
  231. #include <ole2.h>
  232. #endif /* INC_OLE2 */
  233.  
  234. #ifndef _MAC
  235. #ifndef NOSERVICE
  236. #include <winsvc.h>
  237. #endif
  238.  
  239. #if(WINVER >= 0x0400)
  240. #ifndef NOMCX          
  241. #include <mcx.h>      
  242. #endif /* NOMCX */      
  243.                    
  244. #ifndef NOIME           
  245. #include <imm.h>        
  246. #endif
  247. #endif /* WINVER >= 0x0400 */
  248. #endif
  249.  
  250. #ifndef RC_INVOKED
  251. #if     ( _MSC_VER >= 800 )
  252. #pragma warning(default:4001)
  253. #pragma warning(default:4201)
  254. #pragma warning(default:4214)
  255. /* Leave 4514 disabled.  It's a stupid warning anyway. */
  256. #endif
  257. #endif /* RC_INVOKED */
  258.  
  259. #endif /* RC_INVOKED */
  260.  
  261. #endif /* _INC_WINDOWS */
  262. #endif /* _WINDOWS_ */
  263.  
  264.