2000-02-17 20:38:33 +01:00
|
|
|
#ifndef _OBJBASE_H
|
|
|
|
#define _OBJBASE_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>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#pragma pack(push,8)
|
|
|
|
#include <basetyps.h>
|
|
|
|
|
|
|
|
#define WINOLEAPI STDAPI
|
|
|
|
#define WINOLEAPI_(type) STDAPI_(type)
|
|
|
|
#define FARSTRUCT
|
|
|
|
#define HUGEP
|
|
|
|
#define LISet32(li,v) ((li).HighPart=(v)<0?-1:0,(li).LowPart=(v))
|
|
|
|
#define ULISet32(li,v) ((li).HighPart=0,(li).LowPart=(v))
|
|
|
|
#define CLSCTX_ALL (CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER|CLSCTX_LOCAL_SERVER)
|
|
|
|
#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER)
|
|
|
|
#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER|CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER)
|
|
|
|
#define MARSHALINTERFACE_MIN 500
|
|
|
|
#define CWCSTORAGENAME 32
|
|
|
|
#define STGM_DIRECT 0
|
|
|
|
#define STGM_TRANSACTED 0x10000L
|
|
|
|
#define STGM_SIMPLE 0x8000000L
|
|
|
|
#define STGM_READ 0
|
|
|
|
#define STGM_WRITE 1
|
|
|
|
#define STGM_READWRITE 2
|
|
|
|
#define STGM_SHARE_DENY_NONE 0x40
|
|
|
|
#define STGM_SHARE_DENY_READ 0x30
|
|
|
|
#define STGM_SHARE_DENY_WRITE 0x20
|
|
|
|
#define STGM_SHARE_EXCLUSIVE 0x10
|
|
|
|
#define STGM_PRIORITY 0x40000L
|
|
|
|
#define STGM_DELETEONRELEASE 0x4000000
|
|
|
|
#define STGM_NOSCRATCH 0x100000
|
|
|
|
#define STGM_CREATE 0x1000
|
|
|
|
#define STGM_CONVERT 0x20000
|
|
|
|
#define STGM_FAILIFTHERE 0
|
|
|
|
#define CWCSTORAGENAME 32
|
|
|
|
#define ASYNC_MODE_COMPATIBILITY 1
|
|
|
|
#define ASYNC_MODE_DEFAULT 0
|
|
|
|
#define STGTY_REPEAT 256
|
|
|
|
#define STG_TOEND 0xFFFFFFFF
|
|
|
|
#define STG_LAYOUT_SEQUENTIAL 0
|
|
|
|
#define STG_LAYOUT_INTERLEAVED 1
|
2001-01-26 22:05:20 +01:00
|
|
|
#define COM_RIGHTS_EXECUTE 1
|
|
|
|
#define COM_RIGHTS_SAFE_FOR_SCRIPTING 2
|
2000-02-17 20:38:33 +01:00
|
|
|
typedef enum tagREGCLS {
|
|
|
|
REGCLS_SINGLEUSE = 0,
|
|
|
|
REGCLS_MULTIPLEUSE = 1,
|
|
|
|
REGCLS_MULTI_SEPARATE = 2
|
|
|
|
} REGCLS;
|
|
|
|
#include <wtypes.h>
|
|
|
|
#include <unknwn.h>
|
|
|
|
#include <objidl.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
inline BOOL IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
|
|
|
|
{ return !memcmp(&rguid1, &rguid2, sizeof(GUID)); }
|
|
|
|
inline BOOL operator==(const GUID& guidOne, const GUID& guidOther)
|
|
|
|
{ return !memcmp(&guidOne,&guidOther,sizeof(GUID)); }
|
|
|
|
inline BOOL operator!=(const GUID& g1, const GUID& g2)
|
|
|
|
{ return !(g1 == g2); }
|
|
|
|
#else
|
|
|
|
#define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID)))
|
|
|
|
#endif
|
|
|
|
#define IsEqualIID(id1,id2) IsEqualGUID(id1,id2)
|
|
|
|
#define IsEqualCLSID(id1,id2) IsEqualGUID(id1,id2)
|
|
|
|
#include <cguid.h>
|
|
|
|
|
|
|
|
typedef enum tagCOINIT {
|
|
|
|
COINIT_APARTMENTTHREADED = 0x2,
|
|
|
|
COINIT_MULTITHREADED = 0x0,
|
|
|
|
COINIT_DISABLE_OLE1DDE = 0x4,
|
2001-11-01 20:42:57 +01:00
|
|
|
COINIT_SPEED_OVER_MEMORY = 0x8
|
2000-02-17 20:38:33 +01:00
|
|
|
} COINIT;
|
2001-01-26 22:05:20 +01:00
|
|
|
typedef enum tagSTDMSHLFLAGS {
|
|
|
|
SMEXF_SERVER = 0x01,
|
|
|
|
SMEXF_HANDLER = 0x02
|
|
|
|
} STDMSHLFLAGS;
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
WINOLEAPI_(DWORD) CoBuildVersion(void);
|
|
|
|
WINOLEAPI CoInitialize(PVOID);
|
2001-01-26 22:05:20 +01:00
|
|
|
WINOLEAPI CoInitializeEx(LPVOID,DWORD);
|
2000-02-17 20:38:33 +01:00
|
|
|
WINOLEAPI_(void) CoUninitialize(void);
|
|
|
|
WINOLEAPI CoGetMalloc(DWORD,LPMALLOC*);
|
|
|
|
WINOLEAPI_(DWORD) CoGetCurrentProcess(void);
|
|
|
|
WINOLEAPI CoRegisterMallocSpy(LPMALLOCSPY);
|
|
|
|
WINOLEAPI CoRevokeMallocSpy(void);
|
|
|
|
WINOLEAPI CoCreateStandardMalloc(DWORD,IMalloc**);
|
|
|
|
#if DBG == 1
|
|
|
|
WINOLEAPI_(ULONG) DebugCoGetRpcFault(void);
|
|
|
|
WINOLEAPI_(void) DebugCoSetRpcFault(ULONG);
|
|
|
|
#endif
|
2001-11-01 20:42:57 +01:00
|
|
|
WINOLEAPI CoGetClassObject(REFCLSID,DWORD,COSERVERINFO*,REFIID,PVOID*);
|
2000-02-17 20:38:33 +01:00
|
|
|
WINOLEAPI CoRegisterClassObject(REFCLSID,LPUNKNOWN,DWORD,DWORD,PDWORD);
|
|
|
|
WINOLEAPI CoRevokeClassObject(DWORD);
|
|
|
|
WINOLEAPI CoGetMarshalSizeMax(ULONG*,REFIID,LPUNKNOWN,DWORD,PVOID,DWORD);
|
|
|
|
WINOLEAPI CoMarshalInterface(LPSTREAM,REFIID,LPUNKNOWN,DWORD,PVOID,DWORD);
|
|
|
|
WINOLEAPI CoUnmarshalInterface(LPSTREAM,REFIID,PVOID*);
|
|
|
|
WINOLEAPI CoMarshalHresult(LPSTREAM,HRESULT);
|
|
|
|
WINOLEAPI CoUnmarshalHresult(LPSTREAM,HRESULT*);
|
|
|
|
WINOLEAPI CoReleaseMarshalData(LPSTREAM);
|
|
|
|
WINOLEAPI CoDisconnectObject(LPUNKNOWN,DWORD);
|
|
|
|
WINOLEAPI CoLockObjectExternal(LPUNKNOWN,BOOL,BOOL);
|
|
|
|
WINOLEAPI CoGetStandardMarshal(REFIID,LPUNKNOWN,DWORD,PVOID,DWORD,LPMARSHAL*);
|
2001-01-26 22:05:20 +01:00
|
|
|
WINOLEAPI CoGetStdMarshalEx(LPUNKNOWN,DWORD,LPUNKNOWN*);
|
2000-02-17 20:38:33 +01:00
|
|
|
WINOLEAPI_(BOOL) CoIsHandlerConnected(LPUNKNOWN);
|
|
|
|
WINOLEAPI_(BOOL) CoHasStrongExternalConnections(LPUNKNOWN);
|
|
|
|
WINOLEAPI CoMarshalInterThreadInterfaceInStream(REFIID,LPUNKNOWN,LPSTREAM*);
|
|
|
|
WINOLEAPI CoGetInterfaceAndReleaseStream(LPSTREAM,REFIID,PVOID*);
|
|
|
|
WINOLEAPI CoCreateFreeThreadedMarshaler(LPUNKNOWN,LPUNKNOWN*);
|
|
|
|
WINOLEAPI_(HINSTANCE) CoLoadLibrary(LPOLESTR,BOOL);
|
|
|
|
WINOLEAPI_(void) CoFreeLibrary(HINSTANCE);
|
|
|
|
WINOLEAPI_(void) CoFreeAllLibraries(void);
|
|
|
|
WINOLEAPI_(void) CoFreeUnusedLibraries(void);
|
|
|
|
WINOLEAPI CoCreateInstance(REFCLSID,LPUNKNOWN,DWORD,REFIID,PVOID*);
|
2001-01-26 22:05:20 +01:00
|
|
|
WINOLEAPI CoCreateInstanceEx(REFCLSID,IUnknown*,DWORD,COSERVERINFO*,DWORD,MULTI_QI*);
|
2000-02-17 20:38:33 +01:00
|
|
|
WINOLEAPI StringFromCLSID(REFCLSID,LPOLESTR*);
|
|
|
|
WINOLEAPI CLSIDFromString(LPOLESTR,LPCLSID);
|
|
|
|
WINOLEAPI StringFromIID(REFIID,LPOLESTR*);
|
|
|
|
WINOLEAPI IIDFromString(LPOLESTR,LPIID);
|
|
|
|
WINOLEAPI_(BOOL) CoIsOle1Class(REFCLSID);
|
|
|
|
WINOLEAPI ProgIDFromCLSID(REFCLSID,LPOLESTR*);
|
|
|
|
WINOLEAPI CLSIDFromProgID(LPCOLESTR,LPCLSID);
|
|
|
|
WINOLEAPI_(int) StringFromGUID2(REFGUID,LPOLESTR,int);
|
|
|
|
WINOLEAPI CoCreateGuid(GUID*);
|
|
|
|
WINOLEAPI_(BOOL) CoFileTimeToDosDateTime(FILETIME*,LPWORD,LPWORD);
|
|
|
|
WINOLEAPI_(BOOL) CoDosDateTimeToFileTime(WORD,WORD,FILETIME*);
|
|
|
|
WINOLEAPI CoFileTimeNow(FILETIME*);
|
|
|
|
WINOLEAPI CoRegisterMessageFilter(LPMESSAGEFILTER,LPMESSAGEFILTER*);
|
|
|
|
WINOLEAPI CoGetTreatAsClass(REFCLSID,LPCLSID);
|
|
|
|
WINOLEAPI CoTreatAsClass(REFCLSID,REFCLSID);
|
|
|
|
typedef HRESULT (STDAPICALLTYPE *LPFNGETCLASSOBJECT)(REFCLSID,REFIID,PVOID*);
|
|
|
|
typedef HRESULT (STDAPICALLTYPE *LPFNCANUNLOADNOW)(void);
|
|
|
|
STDAPI DllGetClassObject(REFCLSID,REFIID,PVOID*);
|
|
|
|
STDAPI DllCanUnloadNow(void);
|
|
|
|
WINOLEAPI_(PVOID) CoTaskMemAlloc(ULONG);
|
|
|
|
WINOLEAPI_(PVOID) CoTaskMemRealloc(PVOID,ULONG);
|
|
|
|
WINOLEAPI_(void) CoTaskMemFree(PVOID);
|
|
|
|
WINOLEAPI CreateDataAdviseHolder(LPDATAADVISEHOLDER*);
|
|
|
|
WINOLEAPI CreateDataCache(LPUNKNOWN,REFCLSID,REFIID,PVOID*);
|
|
|
|
WINOLEAPI StgCreateDocfile(const OLECHAR*,DWORD,DWORD,IStorage**);
|
|
|
|
WINOLEAPI StgCreateDocfileOnILockBytes(ILockBytes*,DWORD,DWORD,IStorage**);
|
|
|
|
WINOLEAPI StgOpenStorage(const OLECHAR*,IStorage*,DWORD,SNB,DWORD,IStorage**);
|
|
|
|
WINOLEAPI StgOpenStorageOnILockBytes(ILockBytes*,IStorage*,DWORD,SNB,DWORD,IStorage**);
|
|
|
|
WINOLEAPI StgIsStorageFile(const OLECHAR*);
|
|
|
|
WINOLEAPI StgIsStorageILockBytes(ILockBytes*);
|
|
|
|
WINOLEAPI StgSetTimes(OLECHAR const*,FILETIME const*,FILETIME const*,FILETIME const*);
|
|
|
|
WINOLEAPI BindMoniker(LPMONIKER,DWORD,REFIID,PVOID*);
|
2002-01-25 01:52:35 +01:00
|
|
|
WINOLEAPI CoGetObject(LPCWSTR,BIND_OPTS*,REFIID,void**);
|
2000-02-17 20:38:33 +01:00
|
|
|
WINOLEAPI MkParseDisplayName(LPBC,LPCOLESTR,ULONG*,LPMONIKER*);
|
|
|
|
WINOLEAPI MonikerRelativePathTo(LPMONIKER,LPMONIKER,LPMONIKER*,BOOL);
|
|
|
|
WINOLEAPI MonikerCommonPrefixWith(LPMONIKER,LPMONIKER,LPMONIKER*);
|
|
|
|
WINOLEAPI CreateBindCtx(DWORD,LPBC*);
|
|
|
|
WINOLEAPI CreateGenericComposite(LPMONIKER,LPMONIKER,LPMONIKER*);
|
|
|
|
WINOLEAPI GetClassFile (LPCOLESTR,CLSID*);
|
|
|
|
WINOLEAPI CreateFileMoniker(LPCOLESTR,LPMONIKER*);
|
|
|
|
WINOLEAPI CreateItemMoniker(LPCOLESTR,LPCOLESTR,LPMONIKER*);
|
|
|
|
WINOLEAPI CreateAntiMoniker(LPMONIKER*);
|
|
|
|
WINOLEAPI CreatePointerMoniker(LPUNKNOWN,LPMONIKER*);
|
|
|
|
WINOLEAPI GetRunningObjectTable(DWORD,LPRUNNINGOBJECTTABLE*);
|
2001-01-26 22:05:20 +01:00
|
|
|
WINOLEAPI CoInitializeSecurity(PSECURITY_DESCRIPTOR,LONG,SOLE_AUTHENTICATION_SERVICE*, void*,DWORD,DWORD,void*,DWORD,void*);
|
|
|
|
WINOLEAPI CoGetCallContext(REFIID,void**);
|
|
|
|
WINOLEAPI CoQueryProxyBlanket(IUnknown*, DWORD*,DWORD*,OLECHAR**,DWORD*,DWORD*,RPC_AUTH_IDENTITY_HANDLE*,DWORD*);
|
|
|
|
WINOLEAPI CoSetProxyBlanket(IUnknown*,DWORD,DWORD,OLECHAR*,DWORD,DWORD,RPC_AUTH_IDENTITY_HANDLE, DWORD);
|
|
|
|
WINOLEAPI CoCopyProxy(IUnknown*,IUnknown**);
|
|
|
|
WINOLEAPI CoQueryClientBlanket(DWORD*,DWORD*,OLECHAR**, DWORD*,DWORD*,RPC_AUTHZ_HANDLE*,DWORD*);
|
2002-01-11 11:23:20 +01:00
|
|
|
WINOLEAPI CoImpersonateClient(void);
|
|
|
|
WINOLEAPI CoRevertToSelf(void);
|
2001-01-26 22:05:20 +01:00
|
|
|
WINOLEAPI CoQueryAuthenticationServices(DWORD*, SOLE_AUTHENTICATION_SERVICE**);
|
|
|
|
WINOLEAPI CoSwitchCallContext(IUnknown*,IUnknown**);
|
|
|
|
WINOLEAPI CoGetInstanceFromFile(COSERVERINFO*, CLSID*,IUnknown*,DWORD,DWORD,OLECHAR*,DWORD,MULTI_QI*);
|
|
|
|
WINOLEAPI CoGetInstanceFromIStorage(COSERVERINFO*,CLSID*, IUnknown*,DWORD,struct IStorage*, DWORD,MULTI_QI*);
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
#pragma pack(pop)
|
|
|
|
#endif
|