home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / directx2 / sdk / samples / watinc / windows.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-06  |  5.4 KB  |  224 lines

  1. /*++ BUILD Version: 0001    Increment this if a change has global effects
  2.  
  3. Copyright (c) 1985-1995, 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.  
  19. #ifdef __WATCOMC__
  20.  
  21.     // Temporary stuff for win95
  22.  
  23.     #ifndef WIN32
  24.     #define WIN32 100
  25.     #endif
  26.  
  27.     #ifndef _WIN32
  28.     #define _WIN32
  29.     #endif
  30.  
  31.     #ifndef _MSC_VER
  32.     #define _MSC_VER 800
  33.     #endif
  34.  
  35. #ifdef __cplusplus
  36. #define _CFRONT_PASS_
  37.  
  38. #ifndef _WCHAR_T_DEFINED_
  39. #define _WCHAR_T_DEFINED_
  40. #define _WCHAR_T_DEFINED
  41. typedef long char wchar_t;
  42. #endif
  43. #else
  44. #ifndef _WCHAR_T_DEFINED_
  45. #define _WCHAR_T_DEFINED_
  46. #define _WCHAR_T_DEFINED
  47. typedef unsigned short wchar_t;
  48. #endif
  49. #endif
  50.  
  51. #undef cdecl
  52. #define i386
  53. #define _X86_
  54. #define I386_HOST       1
  55. #ifndef _M_IX86
  56. #define _M_IX86         300
  57. #endif
  58. struct _EXCEPTION_RECORD;
  59. struct _CONTEXT;
  60. struct _RTL_CRITICAL_SECTION;
  61. struct tagCREATESTRUCTA;
  62. struct tagCREATESTRUCTW;
  63. #endif
  64.  
  65.  
  66. #ifndef _INC_WINDOWS    
  67. #define _INC_WINDOWS 
  68.  
  69. #ifndef WINVER
  70. #define WINVER 0x0400
  71. #endif
  72.  
  73. /*  If defined, the following flags inhibit definition
  74.  *     of the indicated items.
  75.  *
  76.  *  NOGDICAPMASKS     - CC_*, LC_*, PC_*, CP_*, TC_*, RC_
  77.  *  NOVIRTUALKEYCODES - VK_*
  78.  *  NOWINMESSAGES     - WM_*, EM_*, LB_*, CB_*
  79.  *  NOWINSTYLES       - WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
  80.  *  NOSYSMETRICS      - SM_*
  81.  *  NOMENUS           - MF_*
  82.  *  NOICONS           - IDI_*
  83.  *  NOKEYSTATES       - MK_*
  84.  *  NOSYSCOMMANDS     - SC_*
  85.  *  NORASTEROPS       - Binary and Tertiary raster ops
  86.  *  NOSHOWWINDOW      - SW_*
  87.  *  OEMRESOURCE       - OEM Resource values
  88.  *  NOATOM            - Atom Manager routines
  89.  *  NOCLIPBOARD       - Clipboard routines
  90.  *  NOCOLOR           - Screen colors
  91.  *  NOCTLMGR          - Control and Dialog routines
  92.  *  NODRAWTEXT        - DrawText() and DT_*
  93.  *  NOGDI             - All GDI defines and routines
  94.  *  NOKERNEL          - All KERNEL defines and routines
  95.  *  NOUSER            - All USER defines and routines
  96.  *  NONLS             - All NLS defines and routines
  97.  *  NOMB              - MB_* and MessageBox()
  98.  *  NOMEMMGR          - GMEM_*, LMEM_*, GHND, LHND, associated routines
  99.  *  NOMETAFILE        - typedef METAFILEPICT
  100.  *  NOMINMAX          - Macros min(a,b) and max(a,b)
  101.  *  NOMSG             - typedef MSG and associated routines
  102.  *  NOOPENFILE        - OpenFile(), OemToAnsi, AnsiToOem, and OF_*
  103.  *  NOSCROLL          - SB_* and scrolling routines
  104.  *  NOSERVICE         - All Service Controller routines, SERVICE_ equates, etc.
  105.  *  NOSOUND           - Sound driver routines
  106.  *  NOTEXTMETRIC      - typedef TEXTMETRIC and associated routines
  107.  *  NOWH              - SetWindowsHook and WH_*
  108.  *  NOWINOFFSETS      - GWL_*, GCL_*, associated routines
  109.  *  NOCOMM            - COMM driver routines
  110.  *  NOKANJI           - Kanji support stuff.
  111.  *  NOHELP            - Help engine interface.
  112.  *  NOPROFILER        - Profiler interface.
  113.  *  NODEFERWINDOWPOS  - DeferWindowPos routines
  114.  *  NOMCX             - Modem Configuration Extensions
  115.  */
  116.  
  117. #ifdef RC_INVOKED
  118.  
  119. /* Turn off a bunch of stuff to ensure that RC files compile OK. */
  120. #define NOATOM
  121. #define NOGDICAPMASKS
  122. #define NOMETAFILE
  123. #define NOMINMAX
  124. #define NOMSG
  125. #define NOOPENFILE
  126. #define NORASTEROPS
  127. #define NOSCROLL
  128. #define NOSOUND
  129. #define NOSYSMETRICS
  130. #define NOTEXTMETRIC
  131. #define NOWH
  132. #define NOCOMM
  133. #define NOKANJI
  134. #define NOMCX
  135. #endif /* RC_INVOKED */
  136.  
  137. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_MIPS_) && !defined(_X86_) && defined(_M_IX86)
  138. #define _X86_
  139. #endif
  140.  
  141. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_MRX000)
  142. #define _MIPS_
  143. #endif
  144.  
  145. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_ALPHA)
  146. #define _ALPHA_
  147. #endif
  148.  
  149. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_PPC)
  150. #define _PPC_
  151. #endif
  152.  
  153. #ifndef RC_INVOKED
  154. #if     ( _MSC_VER >= 800 )
  155. #pragma warning(disable:4001)
  156. #endif
  157. //#include <excpt.h>
  158. #include <stdarg.h>
  159. #endif /* RC_INVOKED */
  160.  
  161. #include <windef.h>
  162. #include <winbase.h>
  163. #include <wingdi.h>
  164. #ifndef NONANTIALIASED_QUALITY
  165. #define NONANTIALIASED_QUALITY  3
  166. #endif  //special munge to fix foxbear
  167. #include <winuser.h>
  168. #include <winnls.h>
  169. #include <wincon.h>
  170. #include <winver.h>
  171. #include <winreg.h>
  172. #include <winnetwk.h>
  173.  
  174. //#undef WIN32_LEAN_AND_MEAN
  175. #ifndef WIN32_LEAN_AND_MEAN
  176. #include <cderr.h>
  177. #include <dde.h>
  178. #include <ddeml.h>
  179. #include <dlgs.h>
  180. #include <lzexpand.h>
  181. #include <mmsystem.h>
  182. #include <nb30.h>
  183. #include <rpc.h>
  184. #include <shellapi.h>
  185. //#include <winperf.h>
  186. #include <winsock.h>
  187. #ifndef NOGDI
  188. #include <commdlg.h>
  189. #include <winspool.h>
  190. #ifdef INC_OLE1
  191. #include <ole.h>
  192. #else
  193. #include <ole2.h>
  194. #endif /* !INC_OLE1 */
  195. #endif /* !NOGDI */
  196. #endif /* WIN32_LEAN_AND_MEAN */
  197.  
  198. #ifdef INC_OLE2
  199. #include <ole2.h>
  200. #endif /* INC_OLE2 */
  201.  
  202. #ifndef NOSERVICE
  203. #include <winsvc.h>
  204. #endif
  205.  
  206. #if(WINVER >= 0x0400)
  207. #ifndef NOMCX          
  208. #include <mcx.h>      
  209. #endif /* NOMCX */      
  210.                         
  211. #ifndef NOIME           
  212. #include <imm.h>        
  213. #endif                  
  214. #endif /* WINVER >= 0x0400 */
  215.  
  216. #ifndef RC_INVOKED
  217. #if     ( _MSC_VER >= 800 )
  218. #pragma warning(default:4001)
  219. #endif
  220. #endif /* RC_INVOKED */
  221.  
  222. #endif /* _INC_WINDOWS */
  223. #endif /* _WINDOWS_ */
  224.