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