Visual C++ backend for rbuild (for now just a hacked mingw backend) and related compi...
[reactos.git] / include / psdk / windows.h
1 /*
2 windows.h - main header file for the Win32 API
3
4 Written by Anders Norlander <anorland@hem2.passagen.se>
5
6 This file is part of a free library for the Win32 API.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12 */
13 #ifndef _WINDOWS_H
14 #define _WINDOWS_H
15 #if __GNUC__ >=3
16 #pragma GCC system_header
17 #endif
18
19 #ifdef __GNUC__
20 #include <msvctarget.h>
21 #endif
22
23 #if defined(_M_IX86) && !defined(_X86_)
24 #define _X86_
25 #elif defined(_M_ALPHA) && !defined(_ALPHA_)
26 #define _ALPHA_
27 #elif defined(_M_ARM) && !defined(_ARM_)
28 #define _ARM_
29 #elif defined(_M_PPC) && !defined(_PPC_)
30 #define _PPC_
31 #elif defined(_M_MRX000) && !defined(_MIPS_)
32 #define _MIPS_
33 #elif defined(_M_M68K) && !defined(_68K_)
34 #define _68K_
35 #endif
36
37 #ifdef RC_INVOKED
38 /* winresrc.h includes the necessary headers */
39 #include <winresrc.h>
40 #else
41
42 #include <excpt.h>
43 #include <stdarg.h>
44 #include <windef.h>
45 #include <winbase.h>
46 #if !(defined NOGDI || defined _WINGDI_H)
47 #include <wingdi.h>
48 #endif
49 #include <wincon.h>
50 #ifndef _WINUSER_H
51 #include <winuser.h>
52 #endif
53 #ifndef _WINNLS_H
54 #include <winnls.h>
55 #endif
56 #ifndef _WINVER_H
57 #include <winver.h>
58 #endif
59 #ifndef _WINNETWK_H
60 #include <winnetwk.h>
61 #endif
62 #ifndef _WINREG_H
63 #include <winreg.h>
64 #endif
65 #ifndef _WINSVC_H
66 #include <winsvc.h>
67 #endif
68
69 #ifndef WIN32_LEAN_AND_MEAN
70 #include <cderr.h>
71 #include <dde.h>
72 #include <ddeml.h>
73 #include <dlgs.h>
74 #include <imm.h>
75 #include <lzexpand.h>
76 #include <mmsystem.h>
77 #include <nb30.h>
78 #include <rpc.h>
79 #include <shellapi.h>
80 #include <winperf.h>
81 #ifndef NOGDI
82 #include <commdlg.h>
83 #include <winspool.h>
84 #endif
85 #if defined(Win32_Winsock)
86 #warning "The Win32_Winsock macro name is deprecated.\
87 Please use __USE_W32_SOCKETS instead"
88 #ifndef __USE_W32_SOCKETS
89 #define __USE_W32_SOCKETS
90 #endif
91 #endif
92 #if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
93 #if (_WIN32_WINNT >= 0x0400)
94 #include <winsock2.h>
95 /*
96 * MS likes to include mswsock.h here as well,
97 * but that can cause undefined symbols if
98 * winsock2.h is included before windows.h
99 */
100 #else
101 #include <winsock.h>
102 #endif /* (_WIN32_WINNT >= 0x0400) */
103 #endif
104 #ifndef NOGDI
105 #if !defined (__OBJC__)
106 #if (__GNUC__ >= 3) || defined (__WATCOMC__)
107 #include <ole2.h>
108 #endif
109 #endif /* __OBJC__ */
110 #endif
111
112 #endif /* WIN32_LEAN_AND_MEAN */
113
114 #endif /* RC_INVOKED */
115
116 #ifdef __OBJC__
117 /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
118 but undefining it causes trouble as well if a file is included after
119 windows.h
120 */
121 #undef BOOL
122 #endif
123
124 #endif