[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_AMD64) || defined(__x86_64__)
24 #define _AMD64_
25 #elif defined(_M_IX86) || defined(__i386__)
26 #define _X86_
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 #include <winnls.h>
56 #include <winver.h>
57 #include <winnetwk.h>
58 #include <winreg.h>
59 #include <winsvc.h>
60
61 #ifndef WIN32_LEAN_AND_MEAN
62 #include <cderr.h>
63 #include <dde.h>
64 #include <ddeml.h>
65 #include <dlgs.h>
66 #include <imm.h>
67 #include <lzexpand.h>
68 #include <mmsystem.h>
69 #include <nb30.h>
70 #include <rpc.h>
71 #include <shellapi.h>
72 #include <winperf.h>
73 #ifndef NOCRYPT
74 #include <wincrypt.h>
75 #include <winefs.h>
76 #include <winscard.h>
77 #endif
78 #ifndef NOGDI
79 #include <commdlg.h>
80 #include <winspool.h>
81 #endif
82 #if defined(Win32_Winsock)
83 #warning "The Win32_Winsock macro name is deprecated.\
84 Please use __USE_W32_SOCKETS instead"
85 #ifndef __USE_W32_SOCKETS
86 #define __USE_W32_SOCKETS
87 #endif
88 #endif
89 #if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
90 #if (_WIN32_WINNT >= 0x0400)
91 #include <winsock2.h>
92 /*
93 * MS likes to include mswsock.h here as well,
94 * but that can cause undefined symbols if
95 * winsock2.h is included before windows.h
96 */
97 #else
98 #include <winsock.h>
99 #endif /* (_WIN32_WINNT >= 0x0400) */
100 #endif
101 #ifndef NOGDI
102 #if !defined (__OBJC__)
103 #if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined (__WATCOMC__) || defined(_MSC_VER)
104 #include <ole2.h>
105 #endif
106 #endif /* __OBJC__ */
107 #endif
108
109 #endif /* WIN32_LEAN_AND_MEAN */
110
111 #endif /* RC_INVOKED */
112
113 #ifdef __OBJC__
114 /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
115 but undefining it causes trouble as well if a file is included after
116 windows.h
117 */
118 #undef BOOL
119 #endif
120
121 #endif