[PSDK]
[reactos.git] / reactos / 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
16 #ifdef __GNUC__
17 #include <msvctarget.h>
18 #endif
19
20 #if !defined(_X86_) && !defined(_AMD64) && !defined(_IA64_) && !defined(_ALPHA_) && \
21 !defined(_ARM_) && !defined(_PPC_) && !defined(_MIPS_) && !defined(_68K_)
22
23 #if defined(_M_IX86)
24 #define _X86_
25 #elif defined(_M_AMD64) || defined(__x86_64__)
26 #define _AMD64_
27 #elif defined(_M_IA64) || defined(__ia64__)
28 #define _IA64_
29 #elif defined(_M_ALPHA) || defined(__alpha__)
30 #define _ALPHA_
31 #elif defined(_M_ARM) || defined(__arm__)
32 #define _ARM_
33 #elif defined(_M_PPC) || defined(__powerpc__)
34 #define _PPC_
35 #elif defined(_M_MRX000) || defined(__mips__)
36 #define _MIPS_
37 #elif defined(_M_M68K) || defined(__68k__)
38 #define _68K_
39 #endif
40
41 #endif
42
43 #ifdef RC_INVOKED
44 /* winresrc.h includes the necessary headers */
45 #include <winresrc.h>
46 #else
47
48 #include <excpt.h>
49 #include <stdarg.h>
50 #include <windef.h>
51 #include <winbase.h>
52 #include <wingdi.h>
53 #include <winuser.h>
54 #include <wincon.h>
55 #ifndef _WINNLS_H
56 #include <winnls.h>
57 #endif
58 #ifndef _WINVER_H
59 #include <winver.h>
60 #endif
61 #ifndef _WINNETWK_H
62 #include <winnetwk.h>
63 #endif
64 #ifndef _WINREG_H
65 #include <winreg.h>
66 #endif
67 #ifndef _WINSVC_H
68 #include <winsvc.h>
69 #endif
70
71 #ifndef WIN32_LEAN_AND_MEAN
72 #include <cderr.h>
73 #include <dde.h>
74 #include <ddeml.h>
75 #include <dlgs.h>
76 #include <imm.h>
77 #include <lzexpand.h>
78 #include <mmsystem.h>
79 #include <nb30.h>
80 #include <rpc.h>
81 #include <shellapi.h>
82 #include <winperf.h>
83 #ifndef NOCRYPT
84 #include <wincrypt.h>
85 #include <winefs.h>
86 #include <winscard.h>
87 #endif
88 #ifndef NOGDI
89 #include <commdlg.h>
90 #include <winspool.h>
91 #endif
92 #if defined(Win32_Winsock)
93 #warning "The Win32_Winsock macro name is deprecated.\
94 Please use __USE_W32_SOCKETS instead"
95 #ifndef __USE_W32_SOCKETS
96 #define __USE_W32_SOCKETS
97 #endif
98 #endif
99 #if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
100 #if (_WIN32_WINNT >= 0x0400)
101 #include <winsock2.h>
102 /*
103 * MS likes to include mswsock.h here as well,
104 * but that can cause undefined symbols if
105 * winsock2.h is included before windows.h
106 */
107 #else
108 #include <winsock.h>
109 #endif /* (_WIN32_WINNT >= 0x0400) */
110 #endif
111 #ifndef NOGDI
112 #if !defined (__OBJC__)
113 #if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined (__WATCOMC__) || defined(_MSC_VER)
114 #include <ole2.h>
115 #endif
116 #endif /* __OBJC__ */
117 #endif
118
119 #endif /* WIN32_LEAN_AND_MEAN */
120
121 #endif /* RC_INVOKED */
122
123 #ifdef __OBJC__
124 /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
125 but undefining it causes trouble as well if a file is included after
126 windows.h
127 */
128 #undef BOOL
129 #endif
130
131 #endif