home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / RTLWIN32.PAK / WINDOWS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  6.7 KB  |  286 lines

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