2002-07-04 10:29:56 +02:00
|
|
|
#include <rpc.h>
|
|
|
|
#include <rpcndr.h>
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
#ifndef _WTYPES_H
|
|
|
|
#define _WTYPES_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 10:04:10 +01:00
|
|
|
#if __GNUC__ >=3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
#include <rpc.h>
|
|
|
|
#include <rpcndr.h>
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define IID_NULL GUID_NULL
|
|
|
|
#define CLSID_NULL GUID_NULL
|
|
|
|
#define CBPCLIPDATA(d) ((d).cbSize-sizeof((d).ulClipFmt))
|
|
|
|
#define DECIMAL_NEG ((BYTE)0x80)
|
2001-08-05 14:47:53 +02:00
|
|
|
#define DECIMAL_SETZERO(d) {(d).Lo64=(d).Hi32=(d).signscale=0;}
|
2002-04-02 11:00:14 +02:00
|
|
|
#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x01
|
|
|
|
#define ROTFLAGS_ALLOWANYCLIENT 0x02
|
|
|
|
|
2001-08-21 15:58:52 +02:00
|
|
|
#ifndef __BLOB_T_DEFINED /* also in winsock2.h */
|
|
|
|
#define __BLOB_T_DEFINED
|
2000-02-17 20:38:33 +01:00
|
|
|
typedef struct _BLOB {
|
|
|
|
ULONG cbSize;
|
|
|
|
BYTE *pBlobData;
|
2000-02-29 04:14:40 +01:00
|
|
|
} BLOB,*PBLOB,*LPBLOB;
|
2001-08-21 15:58:52 +02:00
|
|
|
#endif
|
2000-02-17 20:38:33 +01:00
|
|
|
typedef enum tagDVASPECT {
|
|
|
|
DVASPECT_CONTENT=1,
|
|
|
|
DVASPECT_THUMBNAIL=2,
|
|
|
|
DVASPECT_ICON=4,
|
|
|
|
DVASPECT_DOCPRINT=8
|
|
|
|
} DVASPECT;
|
|
|
|
typedef enum tagDVASPECT2 {
|
|
|
|
DVASPECT_OPAQUE=16,
|
|
|
|
DVASPECT_TRANSPARENT=32
|
|
|
|
} DVASPECT2;
|
|
|
|
typedef enum tagSTATFLAG {
|
|
|
|
STATFLAG_DEFAULT=0,
|
|
|
|
STATFLAG_NONAME=1
|
|
|
|
} STATFLAG;
|
|
|
|
typedef enum tagMEMCTX {
|
|
|
|
MEMCTX_TASK=1,
|
|
|
|
MEMCTX_SHARED,
|
|
|
|
MEMCTX_MACSYSTEM,
|
|
|
|
MEMCTX_UNKNOWN=-1,
|
|
|
|
MEMCTX_SAME=-2
|
|
|
|
} MEMCTX;
|
|
|
|
typedef enum tagMSHCTX {
|
|
|
|
MSHCTX_LOCAL,
|
|
|
|
MSHCTX_NOSHAREDMEM,
|
|
|
|
MSHCTX_DIFFERENTMACHINE,
|
|
|
|
MSHCTX_INPROC
|
|
|
|
} MSHCTX;
|
2002-04-02 11:00:14 +02:00
|
|
|
typedef enum tagCLSCTX {
|
2000-02-17 20:38:33 +01:00
|
|
|
CLSCTX_INPROC_SERVER=1,CLSCTX_INPROC_HANDLER=2,CLSCTX_LOCAL_SERVER=4,
|
|
|
|
CLSCTX_INPROC_SERVER16=8,CLSCTX_REMOTE_SERVER=16
|
|
|
|
} CLSCTX;
|
|
|
|
typedef enum tagMSHLFLAGS {
|
|
|
|
MSHLFLAGS_NORMAL,MSHLFLAGS_TABLESTRONG,MSHLFLAGS_TABLEWEAK
|
|
|
|
} MSHLFLAGS;
|
|
|
|
typedef struct _FLAGGED_WORD_BLOB {
|
|
|
|
unsigned long fFlags;
|
|
|
|
unsigned long clSize;
|
|
|
|
unsigned short asData[1];
|
|
|
|
}FLAGGED_WORD_BLOB;
|
|
|
|
|
|
|
|
#ifndef OLE2ANSI
|
|
|
|
typedef WCHAR OLECHAR;
|
|
|
|
typedef LPWSTR LPOLESTR;
|
|
|
|
typedef LPCWSTR LPCOLESTR;
|
|
|
|
#define OLESTR(s) L##s
|
|
|
|
#else
|
|
|
|
typedef char OLECHAR;
|
|
|
|
typedef LPSTR LPOLESTR;
|
|
|
|
typedef LPCSTR LPCOLESTR;
|
|
|
|
#define OLESTR(s) s
|
|
|
|
#endif
|
|
|
|
typedef unsigned short VARTYPE;
|
|
|
|
typedef short VARIANT_BOOL;
|
|
|
|
typedef VARIANT_BOOL _VARIANT_BOOL;
|
|
|
|
#define VARIANT_TRUE ((VARIANT_BOOL)0xffff)
|
|
|
|
#define VARIANT_FALSE ((VARIANT_BOOL)0)
|
|
|
|
typedef OLECHAR *BSTR;
|
|
|
|
typedef FLAGGED_WORD_BLOB *wireBSTR;
|
|
|
|
typedef BSTR *LPBSTR;
|
|
|
|
typedef LONG SCODE;
|
|
|
|
typedef void *HCONTEXT;
|
|
|
|
typedef union tagCY {
|
2001-04-17 14:58:06 +02:00
|
|
|
_ANONYMOUS_STRUCT struct {
|
2000-02-17 20:38:33 +01:00
|
|
|
unsigned long Lo;
|
|
|
|
long Hi;
|
|
|
|
}_STRUCT_NAME(s);
|
|
|
|
LONGLONG int64;
|
|
|
|
} CY;
|
|
|
|
typedef double DATE;
|
|
|
|
typedef struct tagBSTRBLOB {
|
|
|
|
ULONG cbSize;
|
|
|
|
PBYTE pData;
|
|
|
|
}BSTRBLOB;
|
|
|
|
typedef struct tagBSTRBLOB *LPBSTRBLOB;
|
|
|
|
typedef struct tagCLIPDATA {
|
|
|
|
ULONG cbSize;
|
|
|
|
long ulClipFmt;
|
|
|
|
PBYTE pClipData;
|
|
|
|
}CLIPDATA;
|
|
|
|
typedef enum tagSTGC {
|
|
|
|
STGC_DEFAULT,STGC_OVERWRITE,STGC_ONLYIFCURRENT,
|
|
|
|
STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE
|
|
|
|
}STGC;
|
|
|
|
typedef enum tagSTGMOVE {
|
|
|
|
STGMOVE_MOVE,STGMOVE_COPY,STGMOVE_SHALLOWCOPY
|
|
|
|
}STGMOVE;
|
|
|
|
enum VARENUM {
|
|
|
|
VT_EMPTY,VT_NULL,VT_I2,VT_I4,VT_R4,VT_R8,VT_CY,VT_DATE,VT_BSTR,VT_DISPATCH,
|
|
|
|
VT_ERROR,VT_BOOL,VT_VARIANT,VT_UNKNOWN,VT_DECIMAL,VT_I1=16,VT_UI1,VT_UI2,VT_UI4,VT_I8,
|
|
|
|
VT_UI8,VT_INT,VT_UINT,VT_VOID,VT_HRESULT,VT_PTR,VT_SAFEARRAY,VT_CARRAY,VT_USERDEFINED,
|
2000-11-01 01:37:23 +01:00
|
|
|
VT_LPSTR,VT_LPWSTR,VT_RECORD=36,VT_FILETIME=64,VT_BLOB,VT_STREAM,VT_STORAGE,VT_STREAMED_OBJECT,
|
2000-02-17 20:38:33 +01:00
|
|
|
VT_STORED_OBJECT,VT_BLOB_OBJECT,VT_CF,VT_CLSID,VT_BSTR_BLOB=0xfff,VT_VECTOR=0x1000,
|
|
|
|
VT_ARRAY=0x2000,VT_BYREF=0x4000,VT_RESERVED=0x8000,VT_ILLEGAL= 0xffff,VT_ILLEGALMASKED=0xfff,
|
|
|
|
VT_TYPEMASK=0xfff
|
|
|
|
};
|
2000-11-01 01:37:23 +01:00
|
|
|
#ifdef _WIN64
|
|
|
|
#define VT_INT_PTR VT_I8
|
|
|
|
#define VT_UINT_PTR VT_UI8
|
|
|
|
#else
|
|
|
|
#define VT_INT_PTR VT_I4
|
|
|
|
#define VT_UINT_PTR VT_UI4
|
|
|
|
#endif
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
typedef struct _BYTE_SIZEDARR {
|
|
|
|
unsigned long clSize;
|
|
|
|
byte *pData;
|
|
|
|
}BYTE_SIZEDARR;
|
|
|
|
typedef struct _SHORT_SIZEDARR {
|
|
|
|
unsigned long clSize;
|
|
|
|
unsigned short *pData;
|
|
|
|
}WORD_SIZEDARR;
|
|
|
|
typedef struct _LONG_SIZEDARR {
|
|
|
|
unsigned long clSize;
|
|
|
|
unsigned long *pData;
|
|
|
|
}DWORD_SIZEDARR;
|
|
|
|
typedef struct _HYPER_SIZEDARR {
|
|
|
|
unsigned long clSize;
|
|
|
|
hyper *pData;
|
|
|
|
}HYPER_SIZEDARR;
|
|
|
|
typedef double DOUBLE;
|
|
|
|
typedef struct tagDEC {
|
|
|
|
USHORT wReserved;
|
2001-04-17 14:58:06 +02:00
|
|
|
_ANONYMOUS_UNION union {
|
|
|
|
_ANONYMOUS_STRUCT struct {
|
2000-02-17 20:38:33 +01:00
|
|
|
BYTE scale;
|
|
|
|
BYTE sign;
|
|
|
|
}_STRUCT_NAME(s);
|
|
|
|
USHORT signscale;
|
|
|
|
} DUMMYUNIONNAME;
|
|
|
|
ULONG Hi32;
|
2001-04-17 14:58:06 +02:00
|
|
|
_ANONYMOUS_UNION union {
|
|
|
|
_ANONYMOUS_STRUCT struct {
|
2000-02-17 20:38:33 +01:00
|
|
|
ULONG Lo32;
|
|
|
|
ULONG Mid32;
|
|
|
|
}_STRUCT_NAME(s2);
|
|
|
|
ULONGLONG Lo64;
|
|
|
|
} DUMMYUNIONNAME2;
|
|
|
|
} DECIMAL;
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|