2000-02-18 03:38:33 +08:00
|
|
|
/*
|
|
|
|
windows.h - main header file for the Win32 API
|
|
|
|
|
|
|
|
Written by Anders Norlander <anorland@hem2.passagen.se>
|
|
|
|
|
|
|
|
This file is part of a free library for the Win32 API.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
*/
|
|
|
|
#ifndef _WINDOWS_H
|
|
|
|
#define _WINDOWS_H
|
* include/accctrl.h, aclapi.h, basetsd.h, basetyps.h, cderr.h,
cguid.h, commctrl.h, commdlg.h, cpl.h, cplext.h, custcntl.h,
dbt.h, dde.h, ddeml.h, dlgs.h, excpt.h, httpext.h, imagehlp.h,
imm.h, initguid.h, intshcut.h, ipexport.h, iphlpapi.h,
ipifcons.h, iprtrmib.h, iptypes.h, isguids.h, largeint.h, lm.h,
lmaccess.h, lmalert.h, lmapibuf.h, lmat.h, lmaudit.h,
lmbrowsr.h, lmchdev.h, lmconfig.h, lmcons.h, lmerr.h,
lmerrlog.h, lmmsg.h, lmremutl.h, lmrepl.h, lmserver.h,
lmshare.h, lmsname.h, lmstats.h, lmsvc.h, lmuse.h, lmuseflg.h,
lmwksta.h, lzexpand.h, mapi.h, mciavi.h, mcx.h, mmsystem.h,
mswsock.h, nb30.h, nddeapi.h, nspapi.h, ntdef.h, ntsecapi.h,
ntsecpkg.h, oaidl.h, objbase.h, objfwd.h, objidl.h, odbcinst.h,
ole.h, ole2.h, ole2ver.h, oleauto.h, olectl.h, olectlid.h,
oledlg.h, oleidl.h, pbt.h, prsht.h, psapi.h, rapi.h, ras.h,
raserror.h, rassapi.h, regstr.h, richedit.h, richole.h, rpc.h,
rpcdce.h, rpcdce2.h, rpcdcep.h, rpcndr.h, rpcnsi.h, rpcnsip.h,
rpcnterr.h, rpcproxy.h, schannel.h, schnlsp.h, scrnsave.h,
security.h, setupapi.h, shellapi.h, shlguid.h, shlobj.h, sql.h,
sqlext.h, sqltypes.h, sqlucode.h, sspi.h, subauth.h,
tlhelp32.h, unknwn.h, userenv.h, w32api.h, winbase.h, wincon.h,
wincrypt.h, windef.h, windows.h, windowsx.h, winerror.h,
wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls.h, winnt.h,
winperf.h, winreg.h, winresrc.h, winsock.h, winsock2.h,
winspool.h, winsvc.h, winuser.h, winver.h, ws2tcpip.h,
wsnetbs.h, wtypes.h, zmouse.h: Add #pragma GCC system_header
if __GNUC__ >= 3.
* include/mapi.h: Change header guard name to _MAPI_H for
consistency.
2002-03-09 17:04:10 +08:00
|
|
|
#if __GNUC__ >=3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
/* translate GCC target defines to MS equivalents. Keep this synchronized
|
|
|
|
with winnt.h. */
|
|
|
|
#if defined(__i686__) && !defined(_M_IX86)
|
|
|
|
#define _M_IX86 600
|
|
|
|
#elif defined(__i586__) && !defined(_M_IX86)
|
|
|
|
#define _M_IX86 500
|
|
|
|
#elif defined(__i486__) && !defined(_M_IX86)
|
|
|
|
#define _M_IX86 400
|
|
|
|
#elif defined(__i386__) && !defined(_M_IX86)
|
|
|
|
#define _M_IX86 300
|
|
|
|
#endif
|
|
|
|
#if defined(_M_IX86) && !defined(_X86_)
|
|
|
|
#define _X86_
|
|
|
|
#elif defined(_M_ALPHA) && !defined(_ALPHA_)
|
|
|
|
#define _ALPHA_
|
|
|
|
#elif defined(_M_PPC) && !defined(_PPC_)
|
|
|
|
#define _PPC_
|
|
|
|
#elif defined(_M_MRX000) && !defined(_MIPS_)
|
|
|
|
#define _MIPS_
|
|
|
|
#elif defined(_M_M68K) && !defined(_68K_)
|
|
|
|
#define _68K_
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RC_INVOKED
|
|
|
|
/* winresrc.h includes the necessary headers */
|
|
|
|
#include <winresrc.h>
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <wincon.h>
|
|
|
|
#include <winbase.h>
|
2002-12-16 04:55:36 +08:00
|
|
|
#if !(defined NOGDI || defined _WINGDI_H)
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <wingdi.h>
|
2000-07-28 01:30:51 +08:00
|
|
|
#endif
|
|
|
|
#ifndef _WINUSER_H
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winuser.h>
|
2000-07-28 01:30:51 +08:00
|
|
|
#endif
|
|
|
|
#ifndef _WINNLS_H
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winnls.h>
|
2000-07-28 01:30:51 +08:00
|
|
|
#endif
|
|
|
|
#ifndef _WINVER_H
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winver.h>
|
2000-07-28 01:30:51 +08:00
|
|
|
#endif
|
|
|
|
#ifndef _WINNETWK_H
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winnetwk.h>
|
2000-07-28 01:30:51 +08:00
|
|
|
#endif
|
|
|
|
#ifndef _WINREG_H
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winreg.h>
|
2000-07-28 01:30:51 +08:00
|
|
|
#endif
|
|
|
|
#ifndef _WINSVC_H
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winsvc.h>
|
2000-07-28 01:30:51 +08:00
|
|
|
#endif
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
|
|
#include <cderr.h>
|
|
|
|
#include <dde.h>
|
|
|
|
#include <ddeml.h>
|
|
|
|
#include <dlgs.h>
|
2002-07-17 11:37:45 +08:00
|
|
|
#include <imm.h>
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <lzexpand.h>
|
|
|
|
#include <mmsystem.h>
|
|
|
|
#include <nb30.h>
|
|
|
|
#include <rpc.h>
|
|
|
|
#include <shellapi.h>
|
|
|
|
#include <winperf.h>
|
2002-12-16 04:55:36 +08:00
|
|
|
#ifndef NOGDI
|
|
|
|
#include <commdlg.h>
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winspool.h>
|
2002-12-16 04:55:36 +08:00
|
|
|
#endif
|
2001-03-21 03:27:37 +08:00
|
|
|
#if defined(Win32_Winsock)
|
|
|
|
#warning "The Win32_Winsock macro name is deprecated.\
|
|
|
|
Please use __USE_W32_SOCKETS instead"
|
|
|
|
#ifndef __USE_W32_SOCKETS
|
|
|
|
#define __USE_W32_SOCKETS
|
|
|
|
#endif
|
|
|
|
#endif
|
2001-08-30 12:29:49 +08:00
|
|
|
#if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
|
2002-02-28 08:03:11 +08:00
|
|
|
#if (_WIN32_WINNT >= 0x0400)
|
2001-04-12 09:11:41 +08:00
|
|
|
#include <winsock2.h>
|
|
|
|
/*
|
|
|
|
* MS likes to include mswsock.h here as well,
|
|
|
|
* but that can cause undefined symbols if
|
|
|
|
* winsock2.h is included before windows.h
|
|
|
|
*/
|
|
|
|
#else
|
2000-02-18 03:38:33 +08:00
|
|
|
#include <winsock.h>
|
2002-02-28 08:03:11 +08:00
|
|
|
#endif /* (_WIN32_WINNT >= 0x0400) */
|
2000-02-18 03:38:33 +08:00
|
|
|
#endif
|
2002-12-16 04:55:36 +08:00
|
|
|
#ifndef NOGDI
|
2006-07-25 08:22:19 +08:00
|
|
|
/* In older versions we disallowed COM declarations in __OBJC__
|
|
|
|
because of conflicts with @interface directive. Define _OBJC_NO_COM
|
|
|
|
to keep this behaviour. */
|
|
|
|
#if !defined (_OBJC_NO_COM)
|
2003-01-08 17:15:53 +08:00
|
|
|
#if (__GNUC__ >= 3) || defined (__WATCOMC__)
|
2002-06-09 11:37:20 +08:00
|
|
|
#include <ole2.h>
|
|
|
|
#endif
|
2006-07-25 08:22:19 +08:00
|
|
|
#endif /* _OBJC_NO_COM */
|
2002-12-16 04:55:36 +08:00
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#endif /* WIN32_LEAN_AND_MEAN */
|
|
|
|
|
|
|
|
#endif /* RC_INVOKED */
|
|
|
|
|
|
|
|
#ifdef __OBJC__
|
|
|
|
/* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
|
|
|
|
but undefining it causes trouble as well if a file is included after
|
|
|
|
windows.h
|
|
|
|
*/
|
|
|
|
#undef BOOL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|