- {*******************************************************}
- { }
- { Delphi Runtime Library }
- { OLE 2 Interface Unit }
- { }
- { Copyright (c) 1996,98 Borland International }
- { }
- {*******************************************************}
- unit MMOLE2;
- {$I COMPILER.INC}
- interface
- // For CBuilder v1.0 backward compatiblity, OLE2.HPP must include ole2.h
- {$IFDEF BCB} {$HPPEMIT '#include <ole2.h>'} {$ENDIF}
- uses Windows;
- const
- {$IFDEF BCB} {$EXTERNALSYM MEMCTX_TASK} {$ENDIF}
- MEMCTX_TASK = 1;
- {$IFDEF BCB} {$EXTERNALSYM MEMCTX_SHARED} {$ENDIF}
- MEMCTX_SHARED = 2;
- {$IFDEF BCB} {$EXTERNALSYM MEMCTX_MACSYSTEM} {$ENDIF}
- MEMCTX_MACSYSTEM = 3;
- {$IFDEF BCB} {$EXTERNALSYM MEMCTX_UNKNOWN} {$ENDIF}
- MEMCTX_UNKNOWN = -1;
- {$IFDEF BCB} {$EXTERNALSYM MEMCTX_SAME} {$ENDIF}
- MEMCTX_SAME = -2;
- {$IFDEF BCB} {$EXTERNALSYM ROTFLAGS_REGISTRATIONKEEPSALIVE} {$ENDIF}
- ROTFLAGS_REGISTRATIONKEEPSALIVE = 1;
- {$IFDEF BCB} {$EXTERNALSYM CLSCTX_INPROC_SERVER} {$ENDIF}
- CLSCTX_INPROC_SERVER = 1;
- {$IFDEF BCB} {$EXTERNALSYM CLSCTX_INPROC_HANDLER} {$ENDIF}
- CLSCTX_INPROC_HANDLER = 2;
- {$IFDEF BCB} {$EXTERNALSYM CLSCTX_LOCAL_SERVER} {$ENDIF}
- CLSCTX_LOCAL_SERVER = 4;
- {$IFDEF BCB} {$EXTERNALSYM CLSCTX_INPROC_SERVER16} {$ENDIF}
- CLSCTX_INPROC_SERVER16 = 8;
- {$IFDEF BCB} {$EXTERNALSYM CLSCTX_ALL} {$ENDIF}
- CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or
- CLSCTX_LOCAL_SERVER;
- {$IFDEF BCB} {$EXTERNALSYM CLSCTX_INPROC} {$ENDIF}
- CLSCTX_INPROC = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER;
- {$IFDEF BCB} {$EXTERNALSYM CLSCTX_SERVER} {$ENDIF}
- CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER;
- {$IFDEF BCB} {$EXTERNALSYM MSHLFLAGS_NORMAL} {$ENDIF}
- MSHLFLAGS_NORMAL = 0;
- {$IFDEF BCB} {$EXTERNALSYM MSHLFLAGS_TABLESTRONG} {$ENDIF}
- MSHLFLAGS_TABLESTRONG = 1;
- {$IFDEF BCB} {$EXTERNALSYM MSHLFLAGS_TABLEWEAK} {$ENDIF}
- MSHLFLAGS_TABLEWEAK = 2;
- {$IFDEF BCB} {$EXTERNALSYM MSHCTX_LOCAL} {$ENDIF}
- MSHCTX_LOCAL = 0;
- {$IFDEF BCB} {$EXTERNALSYM MSHCTX_NOSHAREDMEM} {$ENDIF}
- MSHCTX_NOSHAREDMEM = 1;
- {$IFDEF BCB} {$EXTERNALSYM MSHCTX_DIFFERENTMACHINE} {$ENDIF}
- MSHCTX_DIFFERENTMACHINE = 2;
- {$IFDEF BCB} {$EXTERNALSYM MSHCTX_INPROC} {$ENDIF}
- MSHCTX_INPROC = 3;
- {$IFDEF BCB} {$EXTERNALSYM DVASPECT_CONTENT} {$ENDIF}
- DVASPECT_CONTENT = 1;
- {$IFDEF BCB} {$EXTERNALSYM DVASPECT_THUMBNAIL} {$ENDIF}
- DVASPECT_THUMBNAIL = 2;
- {$IFDEF BCB} {$EXTERNALSYM DVASPECT_ICON} {$ENDIF}
- DVASPECT_ICON = 4;
- {$IFDEF BCB} {$EXTERNALSYM DVASPECT_DOCPRINT} {$ENDIF}
- DVASPECT_DOCPRINT = 8;
- {$IFDEF BCB} {$EXTERNALSYM STGC_DEFAULT} {$ENDIF}
- STGC_DEFAULT = 0;
- {$IFDEF BCB} {$EXTERNALSYM STGC_OVERWRITE} {$ENDIF}
- STGC_OVERWRITE = 1;
- {$IFDEF BCB} {$EXTERNALSYM STGC_ONLYIFCURRENT} {$ENDIF}
- STGC_ONLYIFCURRENT = 2;
- {$IFDEF BCB} {$EXTERNALSYM STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE} {$ENDIF}
- STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4;
- {$IFDEF BCB} {$EXTERNALSYM STGMOVE_MOVE} {$ENDIF}
- STGMOVE_MOVE = 0;
- {$IFDEF BCB} {$EXTERNALSYM STGMOVE_COPY} {$ENDIF}
- STGMOVE_COPY = 1;
- {$IFDEF BCB} {$EXTERNALSYM STATFLAG_DEFAULT} {$ENDIF}
- STATFLAG_DEFAULT = 0;
- {$IFDEF BCB} {$EXTERNALSYM STATFLAG_NONAME} {$ENDIF}
- STATFLAG_NONAME = 1;
- {$IFDEF BCB} {$EXTERNALSYM BIND_MAYBOTHERUSER} {$ENDIF}
- BIND_MAYBOTHERUSER = 1;
- {$IFDEF BCB} {$EXTERNALSYM BIND_JUSTTESTEXISTENCE} {$ENDIF}
- BIND_JUSTTESTEXISTENCE = 2;
- {$IFDEF BCB} {$EXTERNALSYM MKSYS_NONE} {$ENDIF}
- MKSYS_NONE = 0;
- {$IFDEF BCB} {$EXTERNALSYM MKSYS_GENERICCOMPOSITE} {$ENDIF}
- MKSYS_GENERICCOMPOSITE = 1;
- {$IFDEF BCB} {$EXTERNALSYM MKSYS_FILEMONIKER} {$ENDIF}
- MKSYS_FILEMONIKER = 2;
- {$IFDEF BCB} {$EXTERNALSYM MKSYS_ANTIMONIKER} {$ENDIF}
- MKSYS_ANTIMONIKER = 3;
- {$IFDEF BCB} {$EXTERNALSYM MKSYS_ITEMMONIKER} {$ENDIF}
- MKSYS_ITEMMONIKER = 4;
- {$IFDEF BCB} {$EXTERNALSYM MKSYS_POINTERMONIKER} {$ENDIF}
- MKSYS_POINTERMONIKER = 5;
- {$IFDEF BCB} {$EXTERNALSYM MKRREDUCE_ONE} {$ENDIF}
- MKRREDUCE_ONE = 3 shl 16;
- {$IFDEF BCB} {$EXTERNALSYM MKRREDUCE_TOUSER} {$ENDIF}
- MKRREDUCE_TOUSER = 2 shl 16;
- {$IFDEF BCB} {$EXTERNALSYM MKRREDUCE_THROUGHUSER} {$ENDIF}
- MKRREDUCE_THROUGHUSER = 1 shl 16;
- {$IFDEF BCB} {$EXTERNALSYM MKRREDUCE_ALL} {$ENDIF}
- MKRREDUCE_ALL = 0;
- {$IFDEF BCB} {$EXTERNALSYM STGTY_STORAGE} {$ENDIF}
- STGTY_STORAGE = 1;
- {$IFDEF BCB} {$EXTERNALSYM STGTY_STREAM} {$ENDIF}
- STGTY_STREAM = 2;
- {$IFDEF BCB} {$EXTERNALSYM STGTY_LOCKBYTES} {$ENDIF}
- STGTY_LOCKBYTES = 3;
- {$IFDEF BCB} {$EXTERNALSYM STGTY_PROPERTY} {$ENDIF}
- STGTY_PROPERTY = 4;
- {$IFDEF BCB} {$EXTERNALSYM STREAM_SEEK_SET} {$ENDIF}
- STREAM_SEEK_SET = 0;
- {$IFDEF BCB} {$EXTERNALSYM STREAM_SEEK_CUR} {$ENDIF}
- STREAM_SEEK_CUR = 1;
- {$IFDEF BCB} {$EXTERNALSYM STREAM_SEEK_END} {$ENDIF}
- STREAM_SEEK_END = 2;
- {$IFDEF BCB} {$EXTERNALSYM LOCK_WRITE} {$ENDIF}
- LOCK_WRITE = 1;
- {$IFDEF BCB} {$EXTERNALSYM LOCK_EXCLUSIVE} {$ENDIF}
- LOCK_EXCLUSIVE = 2;
- {$IFDEF BCB} {$EXTERNALSYM LOCK_ONLYONCE} {$ENDIF}
- LOCK_ONLYONCE = 4;
- {$IFDEF BCB} {$EXTERNALSYM ADVF_NODATA} {$ENDIF}
- ADVF_NODATA = 1;
- {$IFDEF BCB} {$EXTERNALSYM ADVF_PRIMEFIRST} {$ENDIF}
- ADVF_PRIMEFIRST = 2;
- {$IFDEF BCB} {$EXTERNALSYM ADVF_ONLYONCE} {$ENDIF}
- ADVF_ONLYONCE = 4;
- {$IFDEF BCB} {$EXTERNALSYM ADVF_DATAONSTOP} {$ENDIF}
- ADVF_DATAONSTOP = 64;
- {$IFDEF BCB} {$EXTERNALSYM ADVFCACHE_NOHANDLER} {$ENDIF}
- ADVFCACHE_NOHANDLER = 8;
- {$IFDEF BCB} {$EXTERNALSYM ADVFCACHE_FORCEBUILTIN} {$ENDIF}
- ADVFCACHE_FORCEBUILTIN = 16;
- {$IFDEF BCB} {$EXTERNALSYM ADVFCACHE_ONSAVE} {$ENDIF}
- ADVFCACHE_ONSAVE = 32;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_HGLOBAL} {$ENDIF}
- TYMED_HGLOBAL = 1;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_FILE} {$ENDIF}
- TYMED_FILE = 2;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_ISTREAM} {$ENDIF}
- TYMED_ISTREAM = 4;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_ISTORAGE} {$ENDIF}
- TYMED_ISTORAGE = 8;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_GDI} {$ENDIF}
- TYMED_GDI = 16;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_MFPICT} {$ENDIF}
- TYMED_MFPICT = 32;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_ENHMF} {$ENDIF}
- TYMED_ENHMF = 64;
- {$IFDEF BCB} {$EXTERNALSYM TYMED_NULL} {$ENDIF}
- TYMED_NULL = 0;
- {$IFDEF BCB} {$EXTERNALSYM DATADIR_GET} {$ENDIF}
- DATADIR_GET = 1;
- {$IFDEF BCB} {$EXTERNALSYM DATADIR_SET} {$ENDIF}
- DATADIR_SET = 2;
- {$IFDEF BCB} {$EXTERNALSYM CALLTYPE_TOPLEVEL} {$ENDIF}
- CALLTYPE_TOPLEVEL = 1;
- {$IFDEF BCB} {$EXTERNALSYM CALLTYPE_NESTED} {$ENDIF}
- CALLTYPE_NESTED = 2;
- {$IFDEF BCB} {$EXTERNALSYM CALLTYPE_ASYNC} {$ENDIF}
- CALLTYPE_ASYNC = 3;
- {$IFDEF BCB} {$EXTERNALSYM CALLTYPE_TOPLEVEL_CALLPENDING} {$ENDIF}
- CALLTYPE_TOPLEVEL_CALLPENDING = 4;
- {$IFDEF BCB} {$EXTERNALSYM CALLTYPE_ASYNC_CALLPENDING} {$ENDIF}
- CALLTYPE_ASYNC_CALLPENDING = 5;
- {$IFDEF BCB} {$EXTERNALSYM SERVERCALL_ISHANDLED} {$ENDIF}
- SERVERCALL_ISHANDLED = 0;
- {$IFDEF BCB} {$EXTERNALSYM SERVERCALL_REJECTED} {$ENDIF}
- SERVERCALL_REJECTED = 1;
- {$IFDEF BCB} {$EXTERNALSYM SERVERCALL_RETRYLATER} {$ENDIF}
- SERVERCALL_RETRYLATER = 2;
- {$IFDEF BCB} {$EXTERNALSYM PENDINGTYPE_TOPLEVEL} {$ENDIF}
- PENDINGTYPE_TOPLEVEL = 1;
- {$IFDEF BCB} {$EXTERNALSYM PENDINGTYPE_NESTED} {$ENDIF}
- PENDINGTYPE_NESTED = 2;
- {$IFDEF BCB} {$EXTERNALSYM PENDINGMSG_CANCELCALL} {$ENDIF}
- PENDINGMSG_CANCELCALL = 0;
- {$IFDEF BCB} {$EXTERNALSYM PENDINGMSG_WAITNOPROCESS} {$ENDIF}
- PENDINGMSG_WAITNOPROCESS = 1;
- {$IFDEF BCB} {$EXTERNALSYM PENDINGMSG_WAITDEFPROCESS} {$ENDIF}
- PENDINGMSG_WAITDEFPROCESS = 2;
- {$IFDEF BCB} {$EXTERNALSYM REGCLS_SINGLEUSE} {$ENDIF}
- REGCLS_SINGLEUSE = 0;
- {$IFDEF BCB} {$EXTERNALSYM REGCLS_MULTIPLEUSE} {$ENDIF}
- REGCLS_MULTIPLEUSE = 1;
- {$IFDEF BCB} {$EXTERNALSYM REGCLS_MULTI_SEPARATE} {$ENDIF}
- REGCLS_MULTI_SEPARATE = 2;
- {$IFDEF BCB} {$EXTERNALSYM MARSHALINTERFACE_MIN} {$ENDIF}
- MARSHALINTERFACE_MIN = 500;
- {$IFDEF BCB} {$EXTERNALSYM CWCSTORAGENAME} {$ENDIF}
- CWCSTORAGENAME = 32;
- {$IFDEF BCB} {$EXTERNALSYM STGM_DIRECT} {$ENDIF}
- STGM_DIRECT = $00000000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_TRANSACTED} {$ENDIF}
- STGM_TRANSACTED = $00010000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_SIMPLE} {$ENDIF}
- STGM_SIMPLE = $08000000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_READ} {$ENDIF}
- STGM_READ = $00000000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_WRITE} {$ENDIF}
- STGM_WRITE = $00000001;
- {$IFDEF BCB} {$EXTERNALSYM STGM_READWRITE} {$ENDIF}
- STGM_READWRITE = $00000002;
- {$IFDEF BCB} {$EXTERNALSYM STGM_SHARE_DENY_NONE} {$ENDIF}
- STGM_SHARE_DENY_NONE = $00000040;
- {$IFDEF BCB} {$EXTERNALSYM STGM_SHARE_DENY_READ} {$ENDIF}
- STGM_SHARE_DENY_READ = $00000030;
- {$IFDEF BCB} {$EXTERNALSYM STGM_SHARE_DENY_WRITE} {$ENDIF}
- STGM_SHARE_DENY_WRITE = $00000020;
- {$IFDEF BCB} {$EXTERNALSYM STGM_SHARE_EXCLUSIVE} {$ENDIF}
- STGM_SHARE_EXCLUSIVE = $00000010;
- {$IFDEF BCB} {$EXTERNALSYM STGM_PRIORITY} {$ENDIF}
- STGM_PRIORITY = $00040000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_DELETEONRELEASE} {$ENDIF}
- STGM_DELETEONRELEASE = $04000000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_CREATE} {$ENDIF}
- STGM_CREATE = $00001000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_CONVERT} {$ENDIF}
- STGM_CONVERT = $00020000;
- {$IFDEF BCB} {$EXTERNALSYM STGM_FAILIFTHERE} {$ENDIF}
- STGM_FAILIFTHERE = $00000000;
- {$IFDEF BCB} {$EXTERNALSYM FADF_AUTO} {$ENDIF}
- FADF_AUTO = $0001; { array is allocated on the stack }
- {$IFDEF BCB} {$EXTERNALSYM FADF_STATIC} {$ENDIF}
- FADF_STATIC = $0002; { array is staticly allocated }
- {$IFDEF BCB} {$EXTERNALSYM FADF_EMBEDDED} {$ENDIF}
- FADF_EMBEDDED = $0004; { array is embedded in a structure }
- {$IFDEF BCB} {$EXTERNALSYM FADF_FIXEDSIZE} {$ENDIF}
- FADF_FIXEDSIZE = $0010; { array may not be resized or reallocated }
- {$IFDEF BCB} {$EXTERNALSYM FADF_BSTR} {$ENDIF}
- FADF_BSTR = $0100; { an array of BSTRs }
- {$IFDEF BCB} {$EXTERNALSYM FADF_UNKNOWN} {$ENDIF}
- FADF_UNKNOWN = $0200; { an array of IUnknown }
- {$IFDEF BCB} {$EXTERNALSYM FADF_DISPATCH} {$ENDIF}
- FADF_DISPATCH = $0400; { an array of IDispatch }
- {$IFDEF BCB} {$EXTERNALSYM FADF_VARIANT} {$ENDIF}
- FADF_VARIANT = $0800; { an array of VARIANTs }
- {$IFDEF BCB} {$EXTERNALSYM FADF_RESERVED} {$ENDIF}
- FADF_RESERVED = $F0E8; { bits reserved for future use }
- { VARENUM usage key,
- [V] - may appear in a VARIANT
- [T] - may appear in a TYPEDESC
- [P] - may appear in an OLE property set
- [S] - may appear in a Safe Array }
- {$IFDEF BCB} {$EXTERNALSYM VT_EMPTY} {$ENDIF}
- VT_EMPTY = 0; { [V] [P] nothing }
- {$IFDEF BCB} {$EXTERNALSYM VT_NULL} {$ENDIF}
- VT_NULL = 1; { [V] SQL style Null }
- {$IFDEF BCB} {$EXTERNALSYM VT_I2} {$ENDIF}
- VT_I2 = 2; { [V][T][P] 2 byte signed int }
- {$IFDEF BCB} {$EXTERNALSYM VT_I4} {$ENDIF}
- VT_I4 = 3; { [V][T][P] 4 byte signed int }
- {$IFDEF BCB} {$EXTERNALSYM VT_R4} {$ENDIF}
- VT_R4 = 4; { [V][T][P] 4 byte real }
- {$IFDEF BCB} {$EXTERNALSYM VT_R8} {$ENDIF}
- VT_R8 = 5; { [V][T][P] 8 byte real }
- {$IFDEF BCB} {$EXTERNALSYM VT_CY} {$ENDIF}
- VT_CY = 6; { [V][T][P] currency }
- {$IFDEF BCB} {$EXTERNALSYM VT_DATE} {$ENDIF}
- VT_DATE = 7; { [V][T][P] date }
- {$IFDEF BCB} {$EXTERNALSYM VT_BSTR} {$ENDIF}
- VT_BSTR = 8; { [V][T][P] binary string }
- {$IFDEF BCB} {$EXTERNALSYM VT_DISPATCH} {$ENDIF}
- VT_DISPATCH = 9; { [V][T] IDispatch FAR* }
- {$IFDEF BCB} {$EXTERNALSYM VT_ERROR} {$ENDIF}
- VT_ERROR = 10; { [V][T] SCODE }
- {$IFDEF BCB} {$EXTERNALSYM VT_BOOL} {$ENDIF}
- VT_BOOL = 11; { [V][T][P] True=-1, False=0 }
- {$IFDEF BCB} {$EXTERNALSYM VT_VARIANT} {$ENDIF}
- VT_VARIANT = 12; { [V][T][P] VARIANT FAR* }
- {$IFDEF BCB} {$EXTERNALSYM VT_UNKNOWN} {$ENDIF}
- VT_UNKNOWN = 13; { [V][T] IUnknown FAR* }
- {$IFDEF BCB} {$EXTERNALSYM VT_I1} {$ENDIF}
- VT_I1 = 16; { [T] signed char }
- {$IFDEF BCB} {$EXTERNALSYM VT_UI1} {$ENDIF}
- VT_UI1 = 17; { [T] unsigned char }
- {$IFDEF BCB} {$EXTERNALSYM VT_UI2} {$ENDIF}
- VT_UI2 = 18; { [T] unsigned short }
- {$IFDEF BCB} {$EXTERNALSYM VT_UI4} {$ENDIF}
- VT_UI4 = 19; { [T] unsigned short }
- {$IFDEF BCB} {$EXTERNALSYM VT_I8} {$ENDIF}
- VT_I8 = 20; { [T][P] signed 64-bit int }
- {$IFDEF BCB} {$EXTERNALSYM VT_UI8} {$ENDIF}
- VT_UI8 = 21; { [T] unsigned 64-bit int }
- {$IFDEF BCB} {$EXTERNALSYM VT_INT} {$ENDIF}
- VT_INT = 22; { [T] signed machine int }
- {$IFDEF BCB} {$EXTERNALSYM VT_UINT} {$ENDIF}
- VT_UINT = 23; { [T] unsigned machine int }
- {$IFDEF BCB} {$EXTERNALSYM VT_VOID} {$ENDIF}
- VT_VOID = 24; { [T] C style void }
- {$IFDEF BCB} {$EXTERNALSYM VT_HRESULT} {$ENDIF}
- VT_HRESULT = 25; { [T] }
- {$IFDEF BCB} {$EXTERNALSYM VT_PTR} {$ENDIF}
- VT_PTR = 26; { [T] pointer type }
- {$IFDEF BCB} {$EXTERNALSYM VT_SAFEARRAY} {$ENDIF}
- VT_SAFEARRAY = 27; { [T] (use VT_ARRAY in VARIANT) }
- {$IFDEF BCB} {$EXTERNALSYM VT_CARRAY} {$ENDIF}
- VT_CARRAY = 28; { [T] C style array }
- {$IFDEF BCB} {$EXTERNALSYM VT_USERDEFINED} {$ENDIF}
- VT_USERDEFINED = 29; { [T] user defined type }
- {$IFDEF BCB} {$EXTERNALSYM VT_LPSTR} {$ENDIF}
- VT_LPSTR = 30; { [T][P] null terminated string }
- {$IFDEF BCB} {$EXTERNALSYM VT_LPWSTR} {$ENDIF}
- VT_LPWSTR = 31; { [T][P] wide null terminated string }
- {$IFDEF BCB} {$EXTERNALSYM VT_FILETIME} {$ENDIF}
- VT_FILETIME = 64; { [P] FILETIME }
- {$IFDEF BCB} {$EXTERNALSYM VT_BLOB} {$ENDIF}
- VT_BLOB = 65; { [P] Length prefixed bytes }
- {$IFDEF BCB} {$EXTERNALSYM VT_STREAM} {$ENDIF}
- VT_STREAM = 66; { [P] Name of the stream follows }
- {$IFDEF BCB} {$EXTERNALSYM VT_STORAGE} {$ENDIF}
- VT_STORAGE = 67; { [P] Name of the storage follows }
- {$IFDEF BCB} {$EXTERNALSYM VT_STREAMED_OBJECT} {$ENDIF}
- VT_STREAMED_OBJECT = 68; { [P] Stream contains an object }
- {$IFDEF BCB} {$EXTERNALSYM VT_STORED_OBJECT} {$ENDIF}
- VT_STORED_OBJECT = 69; { [P] Storage contains an object }
- {$IFDEF BCB} {$EXTERNALSYM VT_BLOB_OBJECT} {$ENDIF}
- VT_BLOB_OBJECT = 70; { [P] Blob contains an object }
- {$IFDEF BCB} {$EXTERNALSYM VT_CF} {$ENDIF}
- VT_CF = 71; { [P] Clipboard format }
- {$IFDEF BCB} {$EXTERNALSYM VT_CLSID} {$ENDIF}
- VT_CLSID = 72; { [P] A Class ID }
- {$IFDEF BCB} {$EXTERNALSYM VT_VECTOR} {$ENDIF}
- VT_VECTOR = $1000; { [P] simple counted array }
- {$IFDEF BCB} {$EXTERNALSYM VT_ARRAY} {$ENDIF}
- VT_ARRAY = $2000; { [V] SAFEARRAY* }
- {$IFDEF BCB} {$EXTERNALSYM VT_BYREF} {$ENDIF}
- VT_BYREF = $4000; { [V] }
- {$IFDEF BCB} {$EXTERNALSYM VT_RESERVED} {$ENDIF}
- VT_RESERVED = $8000;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_ENUM} {$ENDIF}
- TKIND_ENUM = 0;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_RECORD} {$ENDIF}
- TKIND_RECORD = 1;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_MODULE} {$ENDIF}
- TKIND_MODULE = 2;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_INTERFACE} {$ENDIF}
- TKIND_INTERFACE = 3;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_DISPATCH} {$ENDIF}
- TKIND_DISPATCH = 4;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_COCLASS} {$ENDIF}
- TKIND_COCLASS = 5;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_ALIAS} {$ENDIF}
- TKIND_ALIAS = 6;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_UNION} {$ENDIF}
- TKIND_UNION = 7;
- {$IFDEF BCB} {$EXTERNALSYM TKIND_MAX} {$ENDIF}
- TKIND_MAX = 8;
- {$IFDEF BCB} {$EXTERNALSYM CC_CDECL} {$ENDIF}
- CC_CDECL = 1;
- {$IFDEF BCB} {$EXTERNALSYM CC_PASCAL} {$ENDIF}
- CC_PASCAL = 2;
- {$IFDEF BCB} {$EXTERNALSYM CC_MACPASCAL} {$ENDIF}
- CC_MACPASCAL = 3;
- {$IFDEF BCB} {$EXTERNALSYM CC_STDCALL} {$ENDIF}
- CC_STDCALL = 4;
- {$IFDEF BCB} {$EXTERNALSYM CC_RESERVED} {$ENDIF}
- CC_RESERVED = 5;
- {$IFDEF BCB} {$EXTERNALSYM CC_SYSCALL} {$ENDIF}
- CC_SYSCALL = 6;
- {$IFDEF BCB} {$EXTERNALSYM CC_MPWCDECL} {$ENDIF}
- CC_MPWCDECL = 7;
- {$IFDEF BCB} {$EXTERNALSYM CC_MPWPASCAL} {$ENDIF}
- CC_MPWPASCAL = 8;
- {$IFDEF BCB} {$EXTERNALSYM CC_MAX} {$ENDIF}
- CC_MAX = 9;
- {$IFDEF BCB} {$EXTERNALSYM FUNC_VIRTUAL} {$ENDIF}
- FUNC_VIRTUAL = 0;
- {$IFDEF BCB} {$EXTERNALSYM FUNC_PUREVIRTUAL} {$ENDIF}
- FUNC_PUREVIRTUAL = 1;
- {$IFDEF BCB} {$EXTERNALSYM FUNC_NONVIRTUAL} {$ENDIF}
- FUNC_NONVIRTUAL = 2;
- {$IFDEF BCB} {$EXTERNALSYM FUNC_STATIC} {$ENDIF}
- FUNC_STATIC = 3;
- {$IFDEF BCB} {$EXTERNALSYM FUNC_DISPATCH} {$ENDIF}
- FUNC_DISPATCH = 4;
- {$IFDEF BCB} {$EXTERNALSYM INVOKE_FUNC} {$ENDIF}
- INVOKE_FUNC = 1;
- {$IFDEF BCB} {$EXTERNALSYM INVOKE_PROPERTYGET} {$ENDIF}
- INVOKE_PROPERTYGET = 2;
- {$IFDEF BCB} {$EXTERNALSYM INVOKE_PROPERTYPUT} {$ENDIF}
- INVOKE_PROPERTYPUT = 4;
- {$IFDEF BCB} {$EXTERNALSYM INVOKE_PROPERTYPUTREF} {$ENDIF}
- INVOKE_PROPERTYPUTREF = 8;
- {$IFDEF BCB} {$EXTERNALSYM VAR_PERINSTANCE} {$ENDIF}
- VAR_PERINSTANCE = 0;
- {$IFDEF BCB} {$EXTERNALSYM VAR_STATIC} {$ENDIF}
- VAR_STATIC = 1;
- {$IFDEF BCB} {$EXTERNALSYM VAR_CONST} {$ENDIF}
- VAR_CONST = 2;
- {$IFDEF BCB} {$EXTERNALSYM VAR_DISPATCH} {$ENDIF}
- VAR_DISPATCH = 3;
- {$IFDEF BCB} {$EXTERNALSYM IMPLTYPEFLAG_FDEFAULT} {$ENDIF}
- IMPLTYPEFLAG_FDEFAULT = 1;
- {$IFDEF BCB} {$EXTERNALSYM IMPLTYPEFLAG_FSOURCE} {$ENDIF}
- IMPLTYPEFLAG_FSOURCE = 2;
- {$IFDEF BCB} {$EXTERNALSYM IMPLTYPEFLAG_FRESTRICTED} {$ENDIF}
- IMPLTYPEFLAG_FRESTRICTED = 4;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FAPPOBJECT} {$ENDIF}
- TYPEFLAG_FAPPOBJECT = $0001;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FCANCREATE} {$ENDIF}
- TYPEFLAG_FCANCREATE = $0002;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FLICENSED} {$ENDIF}
- TYPEFLAG_FLICENSED = $0004;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FPREDECLID} {$ENDIF}
- TYPEFLAG_FPREDECLID = $0008;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FHIDDEN} {$ENDIF}
- TYPEFLAG_FHIDDEN = $0010;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FCONTROL} {$ENDIF}
- TYPEFLAG_FCONTROL = $0020;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FDUAL} {$ENDIF}
- TYPEFLAG_FDUAL = $0040;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FNONEXTENSIBLE} {$ENDIF}
- TYPEFLAG_FNONEXTENSIBLE = $0080;
- {$IFDEF BCB} {$EXTERNALSYM TYPEFLAG_FOLEAUTOMATION} {$ENDIF}
- TYPEFLAG_FOLEAUTOMATION = $0100;
- {$IFDEF BCB} {$EXTERNALSYM FUNCFLAG_FRESTRICTED} {$ENDIF}
- FUNCFLAG_FRESTRICTED = $0001;
- {$IFDEF BCB} {$EXTERNALSYM FUNCFLAG_FSOURCE} {$ENDIF}
- FUNCFLAG_FSOURCE = $0002;
- {$IFDEF BCB} {$EXTERNALSYM FUNCFLAG_FBINDABLE} {$ENDIF}
- FUNCFLAG_FBINDABLE = $0004;
- {$IFDEF BCB} {$EXTERNALSYM FUNCFLAG_FREQUESTEDIT} {$ENDIF}
- FUNCFLAG_FREQUESTEDIT = $0008;
- {$IFDEF BCB} {$EXTERNALSYM FUNCFLAG_FDISPLAYBIND} {$ENDIF}
- FUNCFLAG_FDISPLAYBIND = $0010;
- {$IFDEF BCB} {$EXTERNALSYM FUNCFLAG_FDEFAULTBIND} {$ENDIF}
- FUNCFLAG_FDEFAULTBIND = $0020;
- {$IFDEF BCB} {$EXTERNALSYM FUNCFLAG_FHIDDEN} {$ENDIF}
- FUNCFLAG_FHIDDEN = $0040;
- {$IFDEF BCB} {$EXTERNALSYM VARFLAG_FREADONLY} {$ENDIF}
- VARFLAG_FREADONLY = $0001;
- {$IFDEF BCB} {$EXTERNALSYM VARFLAG_FSOURCE} {$ENDIF}
- VARFLAG_FSOURCE = $0002;
- {$IFDEF BCB} {$EXTERNALSYM VARFLAG_FBINDABLE} {$ENDIF}
- VARFLAG_FBINDABLE = $0004;
- {$IFDEF BCB} {$EXTERNALSYM VARFLAG_FREQUESTEDIT} {$ENDIF}
- VARFLAG_FREQUESTEDIT = $0008;
- {$IFDEF BCB} {$EXTERNALSYM VARFLAG_FDISPLAYBIND} {$ENDIF}
- VARFLAG_FDISPLAYBIND = $0010;
- {$IFDEF BCB} {$EXTERNALSYM VARFLAG_FDEFAULTBIND} {$ENDIF}
- VARFLAG_FDEFAULTBIND = $0020;
- {$IFDEF BCB} {$EXTERNALSYM VARFLAG_FHIDDEN} {$ENDIF}
- VARFLAG_FHIDDEN = $0040;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_VALUE} {$ENDIF}
- DISPID_VALUE = 0;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_UNKNOWN} {$ENDIF}
- DISPID_UNKNOWN = -1;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_PROPERTYPUT} {$ENDIF}
- DISPID_PROPERTYPUT = -3;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_NEWENUM} {$ENDIF}
- DISPID_NEWENUM = -4;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_EVALUATE} {$ENDIF}
- DISPID_EVALUATE = -5;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_CONSTRUCTOR} {$ENDIF}
- DISPID_CONSTRUCTOR = -6;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_DESTRUCTOR} {$ENDIF}
- DISPID_DESTRUCTOR = -7;
- {$IFDEF BCB} {$EXTERNALSYM DISPID_COLLECT} {$ENDIF}
- DISPID_COLLECT = -8;
- {$IFDEF BCB} {$EXTERNALSYM DESCKIND_NONE} {$ENDIF}
- DESCKIND_NONE = 0;
- {$IFDEF BCB} {$EXTERNALSYM DESCKIND_FUNCDESC} {$ENDIF}
- DESCKIND_FUNCDESC = 1;
- {$IFDEF BCB} {$EXTERNALSYM DESCKIND_VARDESC} {$ENDIF}
- DESCKIND_VARDESC = 2;
- {$IFDEF BCB} {$EXTERNALSYM DESCKIND_TYPECOMP} {$ENDIF}
- DESCKIND_TYPECOMP = 3;
- {$IFDEF BCB} {$EXTERNALSYM DESCKIND_IMPLICITAPPOBJ} {$ENDIF}
- DESCKIND_IMPLICITAPPOBJ = 4;
- {$IFDEF BCB} {$EXTERNALSYM DESCKIND_MAX} {$ENDIF}
- DESCKIND_MAX = 5;
- {$IFDEF BCB} {$EXTERNALSYM SYS_WIN16} {$ENDIF}
- SYS_WIN16 = 0;
- {$IFDEF BCB} {$EXTERNALSYM SYS_WIN32} {$ENDIF}
- SYS_WIN32 = 1;
- {$IFDEF BCB} {$EXTERNALSYM SYS_MAC} {$ENDIF}
- SYS_MAC = 2;
- {$IFDEF BCB} {$EXTERNALSYM LIBFLAG_FRESTRICTED} {$ENDIF}
- LIBFLAG_FRESTRICTED = 1;
- {$IFDEF BCB} {$EXTERNALSYM LIBFLAG_FCONTROL} {$ENDIF}
- LIBFLAG_FCONTROL = 2;
- {$IFDEF BCB} {$EXTERNALSYM LIBFLAG_FHIDDEN} {$ENDIF}
- LIBFLAG_FHIDDEN = 4;
- {$IFDEF BCB} {$EXTERNALSYM STDOLE_MAJORVERNUM} {$ENDIF}
- STDOLE_MAJORVERNUM = 1;
- {$IFDEF BCB} {$EXTERNALSYM STDOLE_MINORVERNUM} {$ENDIF}
- STDOLE_MINORVERNUM = 0;
- {$IFDEF BCB} {$EXTERNALSYM STDOLE_LCID} {$ENDIF}
- STDOLE_LCID = 0;
- {$IFDEF BCB} {$EXTERNALSYM VARIANT_NOVALUEPROP} {$ENDIF}
- VARIANT_NOVALUEPROP = 1;
- {$IFDEF BCB} {$EXTERNALSYM VAR_TIMEVALUEONLY} {$ENDIF}
- VAR_TIMEVALUEONLY = 1;
- {$IFDEF BCB} {$EXTERNALSYM VAR_DATEVALUEONLY} {$ENDIF}
- VAR_DATEVALUEONLY = 2;
- {$IFDEF BCB} {$EXTERNALSYM MEMBERID_NIL} {$ENDIF}
- MEMBERID_NIL = DISPID_UNKNOWN;
- {$IFDEF BCB} {$EXTERNALSYM ID_DEFAULTINST} {$ENDIF}
- ID_DEFAULTINST = -2;
- {$IFDEF BCB} {$EXTERNALSYM IDLFLAG_NONE} {$ENDIF}
- IDLFLAG_NONE = 0;
- {$IFDEF BCB} {$EXTERNALSYM IDLFLAG_FIN} {$ENDIF}
- IDLFLAG_FIN = 1;
- {$IFDEF BCB} {$EXTERNALSYM IDLFLAG_FOUT} {$ENDIF}
- IDLFLAG_FOUT = 2;
- {$IFDEF BCB} {$EXTERNALSYM IDLFLAG_FLCID} {$ENDIF}
- IDLFLAG_FLCID = 4;
- {$IFDEF BCB} {$EXTERNALSYM IDLFLAG_FRETVAL} {$ENDIF}
- IDLFLAG_FRETVAL = 8;
- {$IFDEF BCB} {$EXTERNALSYM DISPATCH_METHOD} {$ENDIF}
- DISPATCH_METHOD = 1;
- {$IFDEF BCB} {$EXTERNALSYM DISPATCH_PROPERTYGET} {$ENDIF}
- DISPATCH_PROPERTYGET = 2;
- {$IFDEF BCB} {$EXTERNALSYM DISPATCH_PROPERTYPUT} {$ENDIF}
- DISPATCH_PROPERTYPUT = 4;
- {$IFDEF BCB} {$EXTERNALSYM DISPATCH_PROPERTYPUTREF} {$ENDIF}
- DISPATCH_PROPERTYPUTREF = 8;
- {$IFDEF BCB} {$EXTERNALSYM OLEIVERB_PRIMARY} {$ENDIF}
- OLEIVERB_PRIMARY = 0;
- {$IFDEF BCB} {$EXTERNALSYM OLEIVERB_SHOW} {$ENDIF}
- OLEIVERB_SHOW = -1;
- {$IFDEF BCB} {$EXTERNALSYM OLEIVERB_OPEN} {$ENDIF}
- OLEIVERB_OPEN = -2;
- {$IFDEF BCB} {$EXTERNALSYM OLEIVERB_HIDE} {$ENDIF}
- OLEIVERB_HIDE = -3;
- {$IFDEF BCB} {$EXTERNALSYM OLEIVERB_UIACTIVATE} {$ENDIF}
- OLEIVERB_UIACTIVATE = -4;
- {$IFDEF BCB} {$EXTERNALSYM OLEIVERB_INPLACEACTIVATE} {$ENDIF}
- OLEIVERB_INPLACEACTIVATE = -5;
- {$IFDEF BCB} {$EXTERNALSYM OLEIVERB_DISCARDUNDOSTATE} {$ENDIF}
- OLEIVERB_DISCARDUNDOSTATE = -6;
- {$IFDEF BCB} {$EXTERNALSYM EMBDHLP_INPROC_HANDLER} {$ENDIF}
- EMBDHLP_INPROC_HANDLER = $00000000;
- {$IFDEF BCB} {$EXTERNALSYM EMBDHLP_INPROC_SERVER} {$ENDIF}
- EMBDHLP_INPROC_SERVER = $00000001;
- {$IFDEF BCB} {$EXTERNALSYM EMBDHLP_CREATENOW} {$ENDIF}
- EMBDHLP_CREATENOW = $00000000;
- {$IFDEF BCB} {$EXTERNALSYM EMBDHLP_DELAYCREATE} {$ENDIF}
- EMBDHLP_DELAYCREATE = $00010000;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_NODATACACHE} {$ENDIF}
- UPDFCACHE_NODATACACHE = 1;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_ONSAVECACHE} {$ENDIF}
- UPDFCACHE_ONSAVECACHE = 2;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_ONSTOPCACHE} {$ENDIF}
- UPDFCACHE_ONSTOPCACHE = 4;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_NORMALCACHE} {$ENDIF}
- UPDFCACHE_NORMALCACHE = 8;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_IFBLANK} {$ENDIF}
- UPDFCACHE_IFBLANK = $10;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_ONLYIFBLANK} {$ENDIF}
- UPDFCACHE_ONLYIFBLANK = $80000000;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_IFBLANKORONSAVECACHE} {$ENDIF}
- UPDFCACHE_IFBLANKORONSAVECACHE = UPDFCACHE_IFBLANK or UPDFCACHE_ONSAVECACHE;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_ALL} {$ENDIF}
- UPDFCACHE_ALL = not UPDFCACHE_ONLYIFBLANK;
- {$IFDEF BCB} {$EXTERNALSYM UPDFCACHE_ALLBUTNODATACACHE} {$ENDIF}
- UPDFCACHE_ALLBUTNODATACACHE = UPDFCACHE_ALL and not UPDFCACHE_NODATACACHE;
- {$IFDEF BCB} {$EXTERNALSYM DISCARDCACHE_SAVEIFDIRTY} {$ENDIF}
- DISCARDCACHE_SAVEIFDIRTY = 0;
- {$IFDEF BCB} {$EXTERNALSYM DISCARDCACHE_NOSAVE} {$ENDIF}
- DISCARDCACHE_NOSAVE = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLEGETMONIKER_ONLYIFTHERE} {$ENDIF}
- OLEGETMONIKER_ONLYIFTHERE = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLEGETMONIKER_FORCEASSIGN} {$ENDIF}
- OLEGETMONIKER_FORCEASSIGN = 2;
- {$IFDEF BCB} {$EXTERNALSYM OLEGETMONIKER_UNASSIGN} {$ENDIF}
- OLEGETMONIKER_UNASSIGN = 3;
- {$IFDEF BCB} {$EXTERNALSYM OLEGETMONIKER_TEMPFORUSER} {$ENDIF}
- OLEGETMONIKER_TEMPFORUSER = 4;
- {$IFDEF BCB} {$EXTERNALSYM OLEWHICHMK_CONTAINER} {$ENDIF}
- OLEWHICHMK_CONTAINER = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLEWHICHMK_OBJREL} {$ENDIF}
- OLEWHICHMK_OBJREL = 2;
- {$IFDEF BCB} {$EXTERNALSYM OLEWHICHMK_OBJFULL} {$ENDIF}
- OLEWHICHMK_OBJFULL = 3;
- {$IFDEF BCB} {$EXTERNALSYM USERCLASSTYPE_FULL} {$ENDIF}
- USERCLASSTYPE_FULL = 1;
- {$IFDEF BCB} {$EXTERNALSYM USERCLASSTYPE_SHORT} {$ENDIF}
- USERCLASSTYPE_SHORT = 2;
- {$IFDEF BCB} {$EXTERNALSYM USERCLASSTYPE_APPNAME} {$ENDIF}
- USERCLASSTYPE_APPNAME = 3;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_RECOMPOSEONRESIZE} {$ENDIF}
- OLEMISC_RECOMPOSEONRESIZE = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_ONLYICONIC} {$ENDIF}
- OLEMISC_ONLYICONIC = 2;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_INSERTNOTREPLACE} {$ENDIF}
- OLEMISC_INSERTNOTREPLACE = 4;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_STATIC} {$ENDIF}
- OLEMISC_STATIC = 8;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_CANTLINKINSIDE} {$ENDIF}
- OLEMISC_CANTLINKINSIDE = 16;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_CANLINKBYOLE1} {$ENDIF}
- OLEMISC_CANLINKBYOLE1 = 32;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_ISLINKOBJECT} {$ENDIF}
- OLEMISC_ISLINKOBJECT = 64;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_INSIDEOUT} {$ENDIF}
- OLEMISC_INSIDEOUT = 128;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_ACTIVATEWHENVISIBLE} {$ENDIF}
- OLEMISC_ACTIVATEWHENVISIBLE = 256;
- {$IFDEF BCB} {$EXTERNALSYM OLEMISC_RENDERINGISDEVICEINDEPENDENT} {$ENDIF}
- OLEMISC_RENDERINGISDEVICEINDEPENDENT = 512;
- {$IFDEF BCB} {$EXTERNALSYM OLECLOSE_SAVEIFDIRTY} {$ENDIF}
- OLECLOSE_SAVEIFDIRTY = 0;
- {$IFDEF BCB} {$EXTERNALSYM OLECLOSE_NOSAVE} {$ENDIF}
- OLECLOSE_NOSAVE = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLECLOSE_PROMPTSAVE} {$ENDIF}
- OLECLOSE_PROMPTSAVE = 2;
- {$IFDEF BCB} {$EXTERNALSYM OLERENDER_NONE} {$ENDIF}
- OLERENDER_NONE = 0;
- {$IFDEF BCB} {$EXTERNALSYM OLERENDER_DRAW} {$ENDIF}
- OLERENDER_DRAW = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLERENDER_FORMAT} {$ENDIF}
- OLERENDER_FORMAT = 2;
- {$IFDEF BCB} {$EXTERNALSYM OLERENDER_ASIS} {$ENDIF}
- OLERENDER_ASIS = 3;
- {$IFDEF BCB} {$EXTERNALSYM OLEUPDATE_ALWAYS} {$ENDIF}
- OLEUPDATE_ALWAYS = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLEUPDATE_ONCALL} {$ENDIF}
- OLEUPDATE_ONCALL = 3;
- {$IFDEF BCB} {$EXTERNALSYM OLELINKBIND_EVENIFCLASSDIFF} {$ENDIF}
- OLELINKBIND_EVENIFCLASSDIFF = 1;
- {$IFDEF BCB} {$EXTERNALSYM BINDSPEED_INDEFINITE} {$ENDIF}
- BINDSPEED_INDEFINITE = 1;
- {$IFDEF BCB} {$EXTERNALSYM BINDSPEED_MODERATE} {$ENDIF}
- BINDSPEED_MODERATE = 2;
- {$IFDEF BCB} {$EXTERNALSYM BINDSPEED_IMMEDIATE} {$ENDIF}
- BINDSPEED_IMMEDIATE = 3;
- {$IFDEF BCB} {$EXTERNALSYM OLECONTF_EMBEDDINGS} {$ENDIF}
- OLECONTF_EMBEDDINGS = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLECONTF_LINKS} {$ENDIF}
- OLECONTF_LINKS = 2;
- {$IFDEF BCB} {$EXTERNALSYM OLECONTF_OTHERS} {$ENDIF}
- OLECONTF_OTHERS = 4;
- {$IFDEF BCB} {$EXTERNALSYM OLECONTF_ONLYUSER} {$ENDIF}
- OLECONTF_ONLYUSER = 8;
- {$IFDEF BCB} {$EXTERNALSYM OLECONTF_ONLYIFRUNNING} {$ENDIF}
- OLECONTF_ONLYIFRUNNING = 16;
- {$IFDEF BCB} {$EXTERNALSYM DROPEFFECT_NONE} {$ENDIF}
- DROPEFFECT_NONE = 0;
- {$IFDEF BCB} {$EXTERNALSYM DROPEFFECT_COPY} {$ENDIF}
- DROPEFFECT_COPY = 1;
- {$IFDEF BCB} {$EXTERNALSYM DROPEFFECT_MOVE} {$ENDIF}
- DROPEFFECT_MOVE = 2;
- {$IFDEF BCB} {$EXTERNALSYM DROPEFFECT_LINK} {$ENDIF}
- DROPEFFECT_LINK = 4;
- {$IFDEF BCB} {$EXTERNALSYM DROPEFFECT_SCROLL} {$ENDIF}
- DROPEFFECT_SCROLL = $80000000;
- {$IFDEF BCB} {$EXTERNALSYM DD_DEFSCROLLINSET} {$ENDIF}
- DD_DEFSCROLLINSET = 11;
- {$IFDEF BCB} {$EXTERNALSYM DD_DEFSCROLLDELAY} {$ENDIF}
- DD_DEFSCROLLDELAY = 50;
- {$IFDEF BCB} {$EXTERNALSYM DD_DEFSCROLLINTERVAL} {$ENDIF}
- DD_DEFSCROLLINTERVAL = 50;
- {$IFDEF BCB} {$EXTERNALSYM DD_DEFDRAGDELAY} {$ENDIF}
- DD_DEFDRAGDELAY = 200;
- {$IFDEF BCB} {$EXTERNALSYM DD_DEFDRAGMINDIST} {$ENDIF}
- DD_DEFDRAGMINDIST = 2;
- {$IFDEF BCB} {$EXTERNALSYM OLEVERBATTRIB_NEVERDIRTIES} {$ENDIF}
- OLEVERBATTRIB_NEVERDIRTIES = 1;
- {$IFDEF BCB} {$EXTERNALSYM OLEVERBATTRIB_ONCONTAINERMENU} {$ENDIF}
- OLEVERBATTRIB_ONCONTAINERMENU = 2;
- type
- { Result code }
- HResult = Longint;
- PResultList = ^TResultList;
- TResultList = array[0..65535] of HResult;
- { OLE character and string types }
- TOleChar = WideChar;
- POleStr = PWideChar;
- POleStrList = ^TOleStrList;
- TOleStrList = array[0..65535] of POleStr;
- { 64-bit large integer }
- Largeint = Comp;
- { Globally unique ID }
- PGUID = ^TGUID;
- TGUID = record
- D1: Longint;
- D2: Word;
- D3: Word;
- D4: array[0..7] of Byte;
- end;
- { Interface ID }
- PIID = PGUID;
- TIID = TGUID;
- { Class ID }
- PCLSID = PGUID;
- TCLSID = TGUID;
- { Object ID }
- PObjectID = ^TObjectID;
- {$IFDEF BCB} {$EXTERNALSYM _OBJECTID} {$ENDIF}
- _OBJECTID = record
- Lineage: TGUID;
- Uniquifier: Longint;
- end;
- TObjectID = _OBJECTID;
- {$IFDEF BCB} {$EXTERNALSYM OBJECTID} {$ENDIF}
- OBJECTID = _OBJECTID;
- { Locale ID }
- TLCID = Longint;
- { Forward declarations }
- {$IFDEF BCB} {$EXTERNALSYM IStream} {$ENDIF}
- IStream = class;
- {$IFDEF BCB} {$EXTERNALSYM IRunningObjectTable } {$ENDIF}
- IRunningObjectTable = class;
- {$IFDEF BCB} {$EXTERNALSYM IEnumString } {$ENDIF}
- IEnumString = class;
- {$IFDEF BCB} {$EXTERNALSYM IMoniker} {$ENDIF}
- IMoniker = class;
- {$IFDEF BCB} {$EXTERNALSYM IAdviseSink} {$ENDIF}
- IAdviseSink = class;
- {$IFDEF BCB} {$EXTERNALSYM IDispatch } {$ENDIF}
- IDispatch = class;
- {$IFDEF BCB} {$EXTERNALSYM ITypeInfo} {$ENDIF}
- ITypeInfo = class;
- {$IFDEF BCB} {$EXTERNALSYM ITypeComp } {$ENDIF}
- ITypeComp = class;
- {$IFDEF BCB} {$EXTERNALSYM ITypeLib} {$ENDIF}
- ITypeLib = class;
- {$IFDEF BCB} {$EXTERNALSYM IEnumOleVerb } {$ENDIF}
- IEnumOleVerb = class;
- {$IFDEF BCB} {$EXTERNALSYM IOleInPlaceActiveObject} {$ENDIF}
- IOleInPlaceActiveObject = class;
- { IUnknown interface }
- //{$IFDEF BCB} {$EXTERNALSYM IUnknown } {$ENDIF}
- IUnknown = class
- public
- function QueryInterface(const iid: TIID; var obj): HResult; virtual; stdcall; abstract;
- function AddRef: Longint; virtual; stdcall; abstract;
- function Release: Longint; virtual; stdcall; abstract;
- end;
- { IClassFactory interface }
- {$IFDEF BCB} {$EXTERNALSYM IClassFactory } {$ENDIF}
- IClassFactory = class(IUnknown)
- public
- function CreateInstance(unkOuter: IUnknown; const iid: TIID;
- var obj): HResult; virtual; stdcall; abstract;
- function LockServer(fLock: BOOL): HResult; virtual; stdcall; abstract;
- end;
- { IMarshal interface }
- {$IFDEF BCB} {$EXTERNALSYM IMarshal } {$ENDIF}
- IMarshal = class(IUnknown)
- public
- function GetUnmarshalClass(const iid: TIID; pv: Pointer;
- dwDestContext: Longint; pvDestContext: Pointer; mshlflags: Longint;
- var cid: TCLSID): HResult; virtual; stdcall; abstract;
- function GetMarshalSizeMax(const iid: TIID; pv: Pointer;
- dwDestContext: Longint; pvDestContext: Pointer; mshlflags: Longint;
- var size: Longint): HResult; virtual; stdcall; abstract;
- function MarshalInterface(stm: IStream; const iid: TIID; pv: Pointer;
- dwDestContext: Longint; pvDestContext: Pointer;
- mshlflags: Longint): HResult; virtual; stdcall; abstract;
- function UnmarshalInterface(stm: IStream; const iid: TIID;
- var pv): HResult; virtual; stdcall; abstract;
- function ReleaseMarshalData(stm: IStream): HResult;
- virtual; stdcall; abstract;
- function DisconnectObject(dwReserved: Longint): HResult;
- virtual; stdcall; abstract;
- end;
- { IMalloc interface }
- {$IFDEF BCB} {$EXTERNALSYM IMalloc} {$ENDIF}
- IMalloc = class(IUnknown)
- public
- function Alloc(cb: Longint): Pointer; virtual; stdcall; abstract;
- function Realloc(pv: Pointer; cb: Longint): Pointer; virtual; stdcall; abstract;
- procedure Free(pv: Pointer); virtual; stdcall; abstract;
- function GetSize(pv: Pointer): Longint; virtual; stdcall; abstract;
- function DidAlloc(pv: Pointer): Integer; virtual; stdcall; abstract;
- procedure HeapMinimize; virtual; stdcall; abstract;
- end;
- { IMallocSpy interface }
- {$IFDEF BCB} {$EXTERNALSYM IMallocSpy } {$ENDIF}
- IMallocSpy = class(IUnknown)
- public
- function PreAlloc(cbRequest: Longint): Longint; virtual; stdcall; abstract;
- function PostAlloc(pActual: Pointer): Pointer; virtual; stdcall; abstract;
- function PreFree(pRequest: Pointer; fSpyed: BOOL): Pointer; virtual; stdcall; abstract;
- procedure PostFree(fSpyed: BOOL); virtual; stdcall; abstract;
- function PreRealloc(pRequest: Pointer; cbRequest: Longint;
- var ppNewRequest: Pointer; fSpyed: BOOL): Longint; virtual; stdcall; abstract;
- function PostRealloc(pActual: Pointer; fSpyed: BOOL): Pointer; virtual; stdcall; abstract;
- function PreGetSize(pRequest: Pointer; fSpyed: BOOL): Pointer; virtual; stdcall; abstract;
- function PostGetSize(pActual: Pointer; fSpyed: BOOL): Longint; virtual; stdcall; abstract;
- function PostDidAlloc(pRequest: Pointer; fSpyed: BOOL; fActual: Integer): Integer; virtual; stdcall; abstract;
- procedure PreHeapMinimize; virtual; stdcall; abstract;
- procedure PostHeapMinimize; virtual; stdcall; abstract;
- end;
- { IStdMarshalInfo interface }
- {$IFDEF BCB} {$EXTERNALSYM IStdMarshalInfo } {$ENDIF}
- IStdMarshalInfo = class(IUnknown)
- public
- function GetClassForHandler(dwDestContext: Longint; pvDestContext: Pointer;
- var clsid: TCLSID): HResult; virtual; stdcall; abstract;
- end;
- { IExternalConnection interface }
- {$IFDEF BCB} {$EXTERNALSYM IExternalConnection } {$ENDIF}
- IExternalConnection = class(IUnknown)
- public
- function AddConnection(extconn: Longint; reserved: Longint): Longint;
- virtual; stdcall; abstract;
- function ReleaseConnection(extconn: Longint; reserved: Longint;
- fLastReleaseCloses: BOOL): Longint; virtual; stdcall; abstract;
- end;
- { IWeakRef interface }
- {$IFDEF BCB} {$EXTERNALSYM IWeakRef } {$ENDIF}
- IWeakRef = class(IUnknown)
- public
- function ChangeWeakCount(delta: Longint): Longint; virtual; stdcall; abstract;
- function ReleaseKeepAlive(unkReleased: IUnknown;
- reserved: Longint): Longint; virtual; stdcall; abstract;
- end;
- { IEnumUnknown interface }
- {$IFDEF BCB} {$EXTERNALSYM IEnumUnknown } {$ENDIF}
- IEnumUnknown = class(IUnknown)
- public
- function Next(celt: Longint; var elt;
- pceltFetched: PLongint): HResult; virtual; stdcall; abstract;
- function Skip(celt: Longint): HResult; virtual; stdcall; abstract;
- function Reset: HResult; virtual; stdcall; abstract;
- function Clone(var enm: IEnumUnknown): HResult; virtual; stdcall; abstract;
- end;
- { IBindCtx interface }
- PBindOpts = ^TBindOpts;
- {$IFDEF BCB} {$EXTERNALSYM tagBIND_OPTS} {$ENDIF}
- tagBIND_OPTS = record
- cbStruct: Longint;
- grfFlags: Longint;
- grfMode: Longint;
- dwTickCountDeadline: Longint;
- end;
- TBindOpts = tagBIND_OPTS;
- {$IFDEF BCB} {$EXTERNALSYM BIND_OPTS} {$ENDIF}
- BIND_OPTS = tagBIND_OPTS;
- {$IFDEF BCB} {$EXTERNALSYM IBindCtx } {$ENDIF}
- IBindCtx = class(IUnknown)
- public
- function RegisterObjectBound(unk: IUnknown): HResult; virtual; stdcall; abstract;
- function RevokeObjectBound(unk: IUnknown): HResult; virtual; stdcall; abstract;
- function ReleaseBoundObjects: HResult; virtual; stdcall; abstract;
- function SetBindOptions(var bindopts: TBindOpts): HResult; virtual; stdcall; abstract;
- function GetBindOptions(var bindopts: TBindOpts): HResult; virtual; stdcall; abstract;
- function GetRunningObjectTable(var rot: IRunningObjectTable): HResult;
- virtual; stdcall; abstract;
- function RegisterObjectParam(pszKey: POleStr; unk: IUnknown): HResult;
- virtual; stdcall; abstract;
- function GetObjectParam(pszKey: POleStr; var unk: IUnknown): HResult;
- virtual; stdcall; abstract;
- function EnumObjectParam(var Enum: IEnumString): HResult; virtual; stdcall; abstract;
- function RevokeObjectParam(pszKey: POleStr): HResult; virtual; stdcall; abstract;
- end;
- { IEnumMoniker interface }
- {$IFDEF BCB} {$EXTERNALSYM IEnumMoniker } {$ENDIF}
- IEnumMoniker = class(IUnknown)
- public
- function Next(celt: Longint; var elt;
- pceltFetched: PLongint): HResult; virtual; stdcall; abstract;
- function Skip(celt: Longint): HResult; virtual; stdcall; abstract;
- function Reset: HResult; virtual; stdcall; abstract;
- function Clone(var enm: IEnumMoniker): HResult; virtual; stdcall; abstract;
- end;
- { IRunnableObject interface }
- {$IFDEF BCB} {$EXTERNALSYM IRunnableObject } {$ENDIF}
- IRunnableObject = class(IUnknown)
- public
- function GetRunningClass(var clsid: TCLSID): HResult; virtual; stdcall; abstract;
- function Run(bc: IBindCtx): HResult; virtual; stdcall; abstract;
- function IsRunning: BOOL; virtual; stdcall; abstract;
- function LockRunning(fLock: BOOL; fLastUnlockCloses: BOOL): HResult;
- virtual; stdcall; abstract;
- function SetContainedObject(fContained: BOOL): HResult; virtual; stdcall; abstract;
- end;
- { IRunningObjectTable interface }
- {$IFDEF BCB} {$EXTERNALSYM IRunningObjectTable } {$ENDIF}
- IRunningObjectTable = class(IUnknown)
- public
- function Register(grfFlags: Longint; var unkObject: IUnknown;
- mkObjectName: IMoniker; var dwRegister: Longint): HResult; virtual; stdcall; abstract;
- function Revoke(dwRegister: Longint): HResult; virtual; stdcall; abstract;
- function IsRunning(mkObjectName: IMoniker): HResult; virtual; stdcall; abstract;
- function GetObject(mkObjectName: IMoniker;
- var unkObject: IUnknown): HResult; virtual; stdcall; abstract;
- function NoteChangeTime(dwRegister: Longint;
- var filetime: TFileTime): HResult; virtual; stdcall; abstract;
- function GetTimeOfLastChange(mkObjectName: IMoniker;
- var filetime: TFileTime): HResult; virtual; stdcall; abstract;
- function EnumRunning(var enumMoniker: IEnumMoniker): HResult; virtual; stdcall; abstract;
- end;
- { IPersist interface }
- {$IFDEF BCB} {$EXTERNALSYM IPersist } {$ENDIF}
- IPersist = class(IUnknown)
- public
- function GetClassID(var classID: TCLSID): HResult; virtual; stdcall; abstract;
- end;
- { IPersistStream interface }
- {$IFDEF BCB} {$EXTERNALSYM IPersistStream } {$ENDIF}
- IPersistStream = class(IPersist)
- public
- function IsDirty: HResult; virtual; stdcall; abstract;
- function Load(stm: IStream): HResult; virtual; stdcall; abstract;
- function Save(stm: IStream; fClearDirty: BOOL): HResult; virtual; stdcall; abstract;
- function GetSizeMax(var cbSize: Largeint): HResult; virtual; stdcall; abstract;
- end;
- { IMoniker interface }
- {$IFDEF BCB} {$EXTERNALSYM IMoniker} {$ENDIF}
- IMoniker = class(IPersistStream)
- public
- function BindToObject(bc: IBindCtx; mkToLeft: IMoniker;
- const iidResult: TIID; var vResult): HResult; virtual; stdcall; abstract;
- function BindToStorage(bc: IBindCtx; mkToLeft: IMoniker;
- const iid: TIID; var vObj): HResult; virtual; stdcall; abstract;
- function Reduce(bc: IBindCtx; dwReduceHowFar: Longint;
- var mkToLeft: IMoniker; var mkReduced: IMoniker): HResult; virtual; stdcall; abstract;
- function ComposeWith(mkRight: IMoniker; fOnlyIfNotGeneric: BOOL;
- var mkComposite: IMoniker): HResult; virtual; stdcall; abstract;
- function Enum(fForward: BOOL; var enumMoniker: IEnumMoniker): HResult;
- virtual; stdcall; abstract;
- function IsEqual(mkOtherMoniker: IMoniker): HResult; virtual; stdcall; abstract;
- function Hash(var dwHash: Longint): HResult; virtual; stdcall; abstract;
- function IsRunning(bc: IBindCtx; mkToLeft: IMoniker;
- mkNewlyRunning: IMoniker): HResult; virtual; stdcall; abstract;
- function GetTimeOfLastChange(bc: IBindCtx; mkToLeft: IMoniker;
- var filetime: TFileTime): HResult; virtual; stdcall; abstract;
- function Inverse(var mk: IMoniker): HResult; virtual; stdcall; abstract;
- function CommonPrefixWith(mkOther: IMoniker;
- var mkPrefix: IMoniker): HResult; virtual; stdcall; abstract;
- function RelativePathTo(mkOther: IMoniker;
- var mkRelPath: IMoniker): HResult; virtual; stdcall; abstract;
- function GetDisplayName(bc: IBindCtx; mkToLeft: IMoniker;
- var pszDisplayName: POleStr): HResult; virtual; stdcall; abstract;
- function ParseDisplayName(bc: IBindCtx; mkToLeft: IMoniker;
- pszDisplayName: POleStr; var chEaten: Longint;
- var mkOut: IMoniker): HResult; virtual; stdcall; abstract;
- function IsSystemMoniker(var dwMksys: Longint): HResult; virtual; stdcall; abstract;
- end;
- { IEnumString interface }
- {$IFDEF BCB} {$EXTERNALSYM IEnumString } {$ENDIF}
- IEnumString = class(IUnknown)
- public
- function Next(celt: Longint; var elt;
- pceltFetched: PLongint): HResult; virtual; stdcall; abstract;
- function Skip(celt: Longint): HResult; virtual; stdcall; abstract;
- function Reset: HResult; virtual; stdcall; abstract;
- function Clone(var enm: IEnumString): HResult; virtual; stdcall; abstract;
- end;
- { IStream interface }
- PStatStg = ^TStatStg;
- {$IFDEF BCB} {$EXTERNALSYM tagSTATSTG} {$ENDIF}
- tagSTATSTG = record
- pwcsName: POleStr;
- dwType: Longint;
- cbSize: Largeint;
- mtime: TFileTime;
- ctime: TFileTime;
- atime: TFileTime;
- grfMode: Longint;
- grfLocksSupported: Longint;
- clsid: TCLSID;
- grfStateBits: Longint;
- reserved: Longint;
- end;
- TStatStg = tagSTATSTG;
- {$IFDEF BCB} {$EXTERNALSYM STATSTG} {$ENDIF}
- STATSTG = tagSTATSTG;
- {$IFDEF BCB} {$EXTERNALSYM IStream} {$ENDIF}
- IStream = class(IUnknown)
- public
- function Read(pv: Pointer; cb: Longint; pcbRead: PLongint): HResult;
- virtual; stdcall; abstract;
- function Write(pv: Pointer; cb: Longint; pcbWritten: PLongint): HResult;
- virtual; stdcall; abstract;
- function Seek(dlibMove: Largeint; dwOrigin: Longint;
- var libNewPosition: Largeint): HResult; virtual; stdcall; abstract;
- function SetSize(libNewSize: Largeint): HResult; virtual; stdcall; abstract;
- function CopyTo(stm: IStream; cb: Largeint; var cbRead: Largeint;
- var cbWritten: Largeint): HResult; virtual; stdcall; abstract;
- function Commit(grfCommitFlags: Longint): HResult; virtual; stdcall; abstract;
- function Revert: HResult; virtual; stdcall; abstract;
- function LockRegion(libOffset: Largeint; cb: Largeint;
- dwLockType: Longint): HResult; virtual; stdcall; abstract;
- function UnlockRegion(libOffset: Largeint; cb: Largeint;
- dwLockType: Longint): HResult; virtual; stdcall; abstract;
- function Stat(var statstg: TStatStg; grfStatFlag: Longint): HResult;
- virtual; stdcall; abstract;
- function Clone(var stm: IStream): HResult; virtual; stdcall; abstract;
- end;
- { IEnumStatStg interface }
- {$IFDEF BCB} {$EXTERNALSYM IEnumStatStg } {$ENDIF}
- IEnumStatStg = class(IUnknown)
- public
- function Next(celt: Longint; var elt;
- pceltFetched: PLongint): HResult; virtual; stdcall; abstract;
- function Skip(celt: Longint): HResult; virtual; stdcall; abstract;
- function Reset: HResult; virtual; stdcall; abstract;
- function Clone(var enm: IEnumStatStg): HResult; virtual; stdcall; abstract;
- end;
- { IStorage interface }
- TSNB = ^POleStr;
- {$IFDEF BCB} {$EXTERNALSYM IStorage} {$ENDIF}
- IStorage = class(IUnknown)
- public
- function CreateStream(pwcsName: POleStr; grfMode: Longint; reserved1: Longint;
- reserved2: Longint; var stm: IStream): HResult; virtual; stdcall; abstract;
- function OpenStream(pwcsName: POleStr; reserved1: Pointer; grfMode: Longint;
- reserved2: Longint; var stm: IStream): HResult; virtual; stdcall; abstract;
- function CreateStorage(pwcsName: POleStr; grfMode: Longint;
- dwStgFmt: Longint; reserved2: Longint; var stg: IStorage): HResult;
- virtual; stdcall; abstract;
- function OpenStorage(pwcsName: POleStr; stgPriority: IStorage;
- grfMode: Longint; snbExclude: TSNB; reserved: Longint;
- var stg: IStorage): HResult; virtual; stdcall; abstract;
- function CopyTo(ciidExclude: Longint; rgiidExclude: PIID;
- snbExclude: TSNB; stgDest: IStorage): HResult; virtual; stdcall; abstract;
- function MoveElementTo(pwcsName: POleStr; stgDest: IStorage;
- pwcsNewName: POleStr; grfFlags: Longint): HResult; virtual; stdcall; abstract;
- function Commit(grfCommitFlags: Longint): HResult; virtual; stdcall; abstract;
- function Revert: HResult; virtual; stdcall; abstract;
- function EnumElements(reserved1: Longint; reserved2: Pointer; reserved3: Longint;
- var enm: IEnumStatStg): HResult; virtual; stdcall; abstract;
- function DestroyElement(pwcsName: POleStr): HResult; virtual; stdcall; abstract;
- function RenameElement(pwcsOldName: POleStr;
- pwcsNewName: POleStr): HResult; virtual; stdcall; abstract;
- function SetElementTimes(pwcsName: POleStr; const ctime: TFileTime;
- const atime: TFileTime; const mtime: TFileTime): HResult;
- virtual; stdcall; abstract;
- function SetClass(const clsid: TCLSID): HResult; virtual; stdcall; abstract;
- function SetStateBits(grfStateBits: Longint; grfMask: Longint): HResult;
- virtual; stdcall; abstract;
- function Stat(var statstg: TStatStg; grfStatFlag: Longint): HResult;
- virtual; stdcall; abstract;
- end;
- { IPersistFile interface }
- {$IFDEF BCB} {$EXTERNALSYM IPersistFile } {$ENDIF}
- IPersistFile = class(IPersist)
- public
- function IsDirty: HResult; virtual; stdcall; abstract;
- function Load(pszFileName: POleStr; dwMode: Longint): HResult;
- virtual; stdcall; abstract;
- function Save(pszFileName: POleStr; fRemember: BOOL): HResult;
- virtual; stdcall; abstract;
- function SaveCompleted(pszFileName: POleStr): HResult;
- virtual; stdcall; abstract;
- function GetCurFile(var pszFileName: POleStr): HResult;
- virtual; stdcall; abstract;
- end;
- { IPersistStorage interface }
- {$IFDEF BCB} {$EXTERNALSYM IPersistStorage } {$ENDIF}
- IPersistStorage = class(IPersist)
- public
- function IsDirty: HResult; virtual; stdcall; abstract;
- function InitNew(stg: IStorage): HResult; virtual; stdcall; abstract;
- function Load(stg: IStorage): HResult; virtual; stdcall; abstract;
- function Save(stgSave: IStorage; fSameAsLoad: BOOL): HResult;
- virtual; stdcall; abstract;
- function SaveCompleted(stgNew: IStorage): HResult; virtual; stdcall; abstract;
- function HandsOffStorage: HResult; virtual; stdcall; abstract;
- end;
- { ILockBytes interface }
- {$IFDEF BCB} {$EXTERNALSYM ILockBytes} {$ENDIF}
- ILockBytes = class(IUnknown)
- public
- function ReadAt(ulOffset: Largeint; pv: Pointer; cb: Longint;
- pcbRead: PLongint): HResult; virtual; stdcall; abstract;
- function WriteAt(ulOffset: Largeint; pv: Pointer; cb: Longint;
- pcbWritten: PLongint): HResult; virtual; stdcall; abstract;
- function Flush: HResult; virtual; stdcall; abstract;
- function SetSize(cb: Largeint): HResult; virtual; stdcall; abstract;
- function LockRegion(libOffset: Largeint; cb: Largeint;
- dwLockType: Longint): HResult; virtual; stdcall; abstract;
- function UnlockRegion(libOffset: Largeint; cb: Largeint;
- dwLockType: Longint): HResult; virtual; stdcall; abstract;
- function Stat(var statstg: TStatStg; grfStatFlag: Longint): HResult;
- virtual; stdcall; abstract;
- end;
- { IEnumFormatEtc interface }
- PDVTargetDevice = ^TDVTargetDevice;
- {$IFDEF BCB} {$EXTERNALSYM tagDVTARGETDEVICE} {$ENDIF}
- tagDVTARGETDEVICE = record
- tdSize: Longint;
- tdDriverNameOffset: Word;
- tdDeviceNameOffset: Word;
- tdPortNameOffset: Word;
- tdExtDevmodeOffset: Word;
- tdData: record end;
- end;
- TDVTargetDevice = tagDVTARGETDEVICE;
- {$IFDEF BCB} {$EXTERNALSYM DVTARGETDEVICE} {$ENDIF}
- DVTARGETDEVICE = tagDVTARGETDEVICE;
- PClipFormat = ^TClipFormat;
- TClipFormat = Word;
- PFormatEtc = ^TFormatEtc;
- {$IFDEF BCB} {$EXTERNALSYM tagFORMATETC} {$ENDIF}
- tagFORMATETC = record
- cfFormat: TClipFormat;
- ptd: PDVTargetDevice;
- dwAspect: Longint;
- lindex: Longint;
- tymed: Longint;
- end;
- TFormatEtc = tagFORMATETC;
- {$IFDEF BCB} {$EXTERNALSYM FORMATETC} {$ENDIF}
- FORMATETC = tagFORMATETC;
- {$IFDEF BCB} {$EXTERNALSYM IEnumFormatEtc } {$ENDIF}
- IEnumFormatEtc = class(IUnknown)
- public
- function Next(celt: Longint; var elt;
- pceltFetched: PLongint): HResult; virtual; stdcall; abstract;
- function Skip(celt: Longint): HResult; virtual; stdcall; abstract;
- function Reset: HResult; virtual; stdcall; abstract;
- function Clone(var Enum: IEnumFormatEtc): HResult; virtual; stdcall; abstract;
- end;
- { IEnumStatData interface }
- PStatData = ^TStatData;
- {$IFDEF BCB} {$EXTERNALSYM tagSTATDATA} {$ENDIF}
- tagSTATDATA = record
- formatetc: TFormatEtc;
- advf: Longint;
- advSink: IAdviseSink;
- dwConnection: Longint;
- end;
- TStatData = tagSTATDATA;
- {$IFDEF BCB} {$EXTERNALSYM STATDATA} {$ENDIF}
- STATDATA = tagSTATDATA;
- {$IFDEF BCB} {$EXTERNALSYM IEnumStatData } {$ENDIF}
- IEnumStatData = class(IUnknown)
- public
- function Next(celt: Longint; var elt;
- pceltFetched: PLongint): HResult; virtual; stdcall; abstract;
- function Skip(celt: Longint): HResult; virtual; stdcall; abstract;
- function Reset: HResult; virtual; stdcall; abstract;
- function Clone(var Enum: IEnumStatData): HResult; virtual; stdcall; abstract;
- end;
- { IRootStorage interface }
- {$IFDEF BCB} {$EXTERNALSYM IRootStorage } {$ENDIF}
- IRootStorage = class(IUnknown)
- public
- function SwitchToFile(pszFile: POleStr): HResult; virtual; stdcall; abstract;
- end;
- { IAdviseSink interface }
- PRemStgMedium = ^TRemStgMedium;
- {$IFDEF BCB} {$EXTERNALSYM tagRemSTGMEDIUM} {$ENDIF}
- tagRemSTGMEDIUM = record
- tymed: Longint;
- dwHandleType: Longint;
- pData: Longint;
- pUnkForRelease: Longint;
- cbData: Longint;
- data: record end;
- end;
- TRemStgMedium = tagRemSTGMEDIUM;
- {$IFDEF BCB} {$EXTERNALSYM RemSTGMEDIUM} {$ENDIF}
- RemSTGMEDIUM = tagRemSTGMEDIUM;
- PStgMedium = ^TStgMedium;
- {$IFDEF BCB} {$EXTERNALSYM tagSTGMEDIUM} {$ENDIF}
- tagSTGMEDIUM = record
- tymed: Longint;
- case Integer of
- 0: (hBitmap: HBitmap; unkForRelease: IUnknown);
- 1: (hMetaFilePict: THandle);
- 2: (hEnhMetaFile: THandle);
- 3: (hGlobal: HGlobal);
- 4: (lpszFileName: POleStr);
- 5: (stm: IStream);
- 6: (stg: IStorage);
- end;
- TStgMedium = tagSTGMEDIUM;
- {$IFDEF BCB} {$EXTERNALSYM STGMEDIUM} {$ENDIF}
- STGMEDIUM = tagSTGMEDIUM;
- {$IFDEF BCB} {$EXTERNALSYM IAdviseSink} {$ENDIF}
- IAdviseSink = class(IUnknown)
- public
- procedure OnDataChange(var formatetc: TFormatEtc; var stgmed: TStgMedium);
- virtual; stdcall; abstract;
- procedure OnViewChange(dwAspect: Longint; lindex: Longint);
- virtual; stdcall; abstract;
- procedure OnRename(mk: IMoniker); virtual; stdcall; abstract;
- procedure OnSave; virtual; stdcall; abstract;
- procedure OnClose; virtual; stdcall; abstract;
- end;
- { IAdviseSink2 interface }
- {$IFDEF BCB} {$EXTERNALSYM IAdviseSink2 } {$ENDIF}
- IAdviseSink2 = class(IAdviseSink)
- public
- procedure OnLinkSrcChange(mk: IMoniker); virtual; stdcall; abstract;
- end;
- { IDataObject interface }
- {$IFDEF BCB} {$EXTERNALSYM IDataObject} {$ENDIF}
- IDataObject = class(IUnknown)
- public
- function GetData(var formatetcIn: TFormatEtc; var medium: TStgMedium):
- HResult; virtual; stdcall; abstract;
- function GetDataHere(var formatetc: TFormatEtc; var medium: TStgMedium):
- HResult; virtual; stdcall; abstract;
- function QueryGetData(var formatetc: TFormatEtc): HResult;
- virtual; stdcall; abstract;
- function GetCanonicalFormatEtc(var formatetc: TFormatEtc;
- var formatetcOut: TFormatEtc): HResult; virtual; stdcall; abstract;
- function SetData(var formatetc: TFormatEtc; var medium: TStgMedium;
- fRelease: BOOL): HResult; virtual; stdcall; abstract;
- function EnumFormatEtc(dwDirection: Longint; var enumFormatEtc:
- IEnumFormatEtc): HResult; virtual; stdcall; abstract;
- function DAdvise(var formatetc: TFormatEtc; advf: Longint;
- advSink: IAdviseSink; var dwConnection: Longint): HResult; virtual; stdcall; abstract;
- function DUnadvise(dwConnection: Longint): HResult; virtual; stdcall; abstract;
- function EnumDAdvise(var enumAdvise: IEnumStatData): HResult;
- virtual; stdcall; abstract;
- end;
- { IDataAdviseHolder interface }
- {$IFDEF BCB} {$EXTERNALSYM IDataAdviseHolder } {$ENDIF}
- IDataAdviseHolder = class(IUnknown)
- public
- function Advise(dataObject: IDataObject; var fetc: TFormatEtc;
- advf: Longint; advise: IAdviseSink; var pdwConnection: Longint): HResult;
- virtual; stdcall; abstract;
- function Unadvise(dwConnection: Longint): HResult; virtual; stdcall; abstract;
- function EnumAdvise(var enumAdvise: IEnumStatData): HResult; virtual; stdcall; abstract;
- function SendOnDataChange(dataObject: IDataObject; dwReserved: Longint;
- advf: Longint): HResult; virtual; stdcall; abstract;
- end;
- { IMessageFilter interface }
- PInterfaceInfo = ^TInterfaceInfo;
- {$IFDEF BCB} {$EXTERNALSYM tagINTERFACEINFO} {$ENDIF}
- tagINTERFACEINFO = record
- unk: IUnknown;
- iid: TIID;
- wMethod: Word;
- end;
- TInterfaceInfo = tagINTERFACEINFO;
- {$IFDEF BCB} {$EXTERNALSYM INTERFACEINFO} {$ENDIF}
- INTERFACEINFO = tagINTERFACEINFO;
- {$IFDEF BCB} {$EXTERNALSYM IMessageFilter } {$ENDIF}
- IMessageFilter = class(IUnknown)
- public
- function HandleInComingCall(dwCallType: Longint; htaskCaller: HTask;
- dwTickCount: Longint; lpInterfaceInfo: PInterfaceInfo): Longint;
- virtual; stdcall; abstract;
- function RetryRejectedCall(htaskCallee: HTask; dwTickCount: Longint;
- dwRejectType: Longint): Longint; virtual; stdcall; abstract;
- function MessagePending(htaskCallee: HTask; dwTickCount: Longint;
- dwPendingType: Longint): Longint; virtual; stdcall; abstract;
- end;
- { IRpcChannelBuffer interface }
- TRpcOleDataRep = Longint;
- PRpcOleMessage = ^TRpcOleMessage;
- {$IFDEF BCB} {$EXTERNALSYM tagRPCOLEMESSAGE} {$ENDIF}
- tagRPCOLEMESSAGE = record
- reserved1: Pointer;
- dataRepresentation: TRpcOleDataRep;
- Buffer: Pointer;
- cbBuffer: Longint;
- iMethod: Longint;
- reserved2: array[0..4] of Pointer;
- rpcFlags: Longint;
- end;
- TRpcOleMessage = tagRPCOLEMESSAGE;
- {$IFDEF BCB} {$EXTERNALSYM RPCOLEMESSAGE} {$ENDIF}
- RPCOLEMESSAGE = tagRPCOLEMESSAGE;
- {$IFDEF BCB} {$EXTERNALSYM IRpcChannelBuffer } {$ENDIF}
- IRpcChannelBuffer = class(IUnknown)
- public
- function GetBuffer(var message: TRpcOleMessage; iid: TIID): HResult;
- virtual; stdcall; abstract;
- function SendReceive(var message: TRpcOleMessage;
- var status: Longint): HResult; virtual; stdcall; abstract;
- function FreeBuffer(var message: TRpcOleMessage): HResult;
- virtual; stdcall; abstract;
- function GetDestCtx(var dwDestContext: Longint;
- var pvDestContext): HResult; virtual; stdcall; abstract;
- function IsConnected: HResult; virtual; stdcall; abstract;
- end;
- { IRpcProxyBuffer interface }
- {$IFDEF BCB} {$EXTERNALSYM IRpcProxyBuffer } {$ENDIF}
- IRpcProxyBuffer = class(IUnknown)
- public
- function Connect(rpcChannelBuffer: IRpcChannelBuffer): HResult;
- virtual; stdcall; abstract;
- procedure Disconnect; virtual; stdcall; abstract;
- end;
- { IRpcStubBuffer interface }
- {$IFDEF BCB} {$EXTERNALSYM IRpcStubBuffer } {$ENDIF}
- IRpcStubBuffer = class(IUnknown)
- public
- function Connect(unkServer: IUnknown): HResult; virtual; stdcall; abstract;
- procedure Disconnect; virtual; stdcall; abstract;
- function Invoke(var rpcmsg: TRpcOleMessage; rpcChannelBuffer:
- IRpcChannelBuffer): HResult; virtual; stdcall; abstract;
- function IsIIDSupported(const iid: TIID): IRpcStubBuffer;
- virtual; stdcall; abstract;
- function CountRefs: Longint; virtual; stdcall; abstract;
- function DebugServerQueryInterface(var pv): HResult;
- virtual; stdcall; abstract;
- procedure DebugServerRelease(pv: Pointer); virtual; stdcall; abstract;
- end;
- { IPSFactoryBuffer interface }
- {$IFDEF BCB} {$EXTERNALSYM IPSFactoryBuffer } {$ENDIF}
- IPSFactoryBuffer = class(IUnknown)
- public
- function CreateProxy(unkOuter: IUnknown; const iid: TIID;
- var proxy: IRpcProxyBuffer; var pv): HResult; virtual; stdcall; abstract;
- function CreateStub(const iid: TIID; unkServer: IUnknown;
- var stub: IRpcStubBuffer): HResult; virtual; stdcall; abstract;
- end;
- { Automation types }
- PBStr = ^TBStr;
- TBStr = POleStr;
- PBStrList = ^TBStrList;
- TBStrList = array[0..65535] of TBStr;
- PBlob = ^TBlob;
- {$IFDEF BCB} {$EXTERNALSYM tagBLOB} {$ENDIF}
- tagBLOB = record
- cbSize: Longint;
- pBlobData: Pointer;
- end;
- {$IFDEF BCB} {$EXTERNALSYM TBlob} {$ENDIF}
- TBlob = tagBLOB;
- {$IFDEF BCB} {$EXTERNALSYM BLOB} {$ENDIF}
- BLOB = tagBLOB;
- PClipData = ^TClipData;
- {$IFDEF BCB} {$EXTERNALSYM tagCLIPDATA} {$ENDIF}
- tagCLIPDATA = record
- cbSize: Longint;
- ulClipFmt: Longint;
- pClipData: Pointer;
- end;
- TClipData = tagCLIPDATA;
- {$IFDEF BCB} {$EXTERNALSYM CLIPDATA} {$ENDIF}
- CLIPDATA = tagCLIPDATA;
- PSafeArrayBound = ^TSafeArrayBound;
- {$IFDEF BCB} {$EXTERNALSYM tagSAFEARRAYBOUND} {$ENDIF}
- tagSAFEARRAYBOUND = record
- cElements: Longint;
- lLbound: Longint;
- end;
- TSafeArrayBound = tagSAFEARRAYBOUND;
- {$IFDEF BCB} {$EXTERNALSYM SAFEARRAYBOUND} {$ENDIF}
- SAFEARRAYBOUND = tagSAFEARRAYBOUND;
- PSafeArray = ^TSafeArray;
- {$IFDEF BCB} {$EXTERNALSYM tagSAFEARRAY} {$ENDIF}
- tagSAFEARRAY = record
- cDims: Word;
- fFeatures: Word;
- cbElements: Longint;
- cLocks: Longint;
- pvData: Pointer;
- rgsabound: array[0..0] of TSafeArrayBound;
- end;
- TSafeArray = tagSAFEARRAY;
- {$IFDEF BCB} {$EXTERNALSYM SAFEARRAY} {$ENDIF}
- SAFEARRAY = tagSAFEARRAY;
- TOleDate = Double;
- TCurrency = Comp;
- TOleBool = WordBool;
- TVarType = Word;
- PVariantArg = ^TVariantArg;
- {$IFDEF BCB} {$EXTERNALSYM tagVARIANT} {$ENDIF}
- tagVARIANT = record
- vt: TVarType;
- wReserved1: Word;
- wReserved2: Word;
- wReserved3: Word;
- case Integer of
- VT_UI1: (bVal: Byte);
- VT_I2: (iVal: Smallint);
- VT_I4: (lVal: Longint);
- VT_R4: (fltVal: Single);
- VT_R8: (dblVal: Double);
- VT_BOOL: (vbool: TOleBool);
- VT_ERROR: (scode: HResult);
- VT_CY: (cyVal: TCurrency);
- VT_DATE: (date: TOleDate);
- VT_BSTR: (bstrVal: TBStr);
- VT_UNKNOWN: (unkVal: IUnknown);
- VT_DISPATCH: (dispVal: IDispatch);
- VT_ARRAY: (parray: PSafeArray);
- VT_BYREF or VT_UI1: (pbVal: ^Byte);
- VT_BYREF or VT_I2: (piVal: ^Smallint);
- VT_BYREF or VT_I4: (plVal: ^Longint);
- VT_BYREF or VT_R4: (pfltVal: ^Single);
- VT_BYREF or VT_R8: (pdblVal: ^Double);
- VT_BYREF or VT_BOOL: (pbool: ^TOleBool);
- VT_BYREF or VT_ERROR: (pscode: ^HResult);
- VT_BYREF or VT_CY: (pcyVal: ^TCurrency);
- VT_BYREF or VT_DATE: (pdate: ^TOleDate);
- VT_BYREF or VT_BSTR: (pbstrVal: PBStr);
- VT_BYREF or VT_UNKNOWN: (punkVal: ^IUnknown);
- VT_BYREF or VT_DISPATCH: (pdispVal: ^IDispatch);
- VT_BYREF or VT_ARRAY: (pparray: ^PSafeArray);
- VT_BYREF or VT_VARIANT: (pvarVal: PVariant);
- VT_BYREF: (byRef: Pointer);
- end;
- TVariantArg = tagVARIANT;
- {$IFDEF BCB} {$EXTERNALSYM VARIANTARG} {$ENDIF}
- VARIANTARG = tagVARIANT;
- PVariantArgList = ^TVariantArgList;
- TVariantArgList = array[0..65535] of TVariantArg;
- TDispID = Longint;
- PDispIDList = ^TDispIDList;
- TDispIDList = array[0..65535] of TDispID;
- TMemberID = Longint;
- PMemberIDList = ^TMemberIDList;
- TMemberIDList = array[0..65535] of TMemberID;
- TPropID = Longint;
- HRefType = Longint;
- TTypeKind = Longint;
- PArrayDesc = ^TArrayDesc;
- PTypeDesc= ^TTypeDesc;
- {$IFDEF BCB} {$EXTERNALSYM tagTYPEDESC} {$ENDIF}
- tagTYPEDESC = record
- case Integer of
- VT_PTR: (ptdesc: PTypeDesc; vt: TVarType);
- VT_CARRAY: (padesc: PArrayDesc);
- VT_USERDEFINED: (hreftype: HRefType);
- end;
- TTypeDesc = tagTYPEDESC;
- {$IFDEF BCB} {$EXTERNALSYM TYPEDESC} {$ENDIF}
- TYPEDESC = tagTYPEDESC;
- {$IFDEF BCB} {$EXTERNALSYM tagARRAYDESC} {$ENDIF}
- tagARRAYDESC = record
- tdescElem: TTypeDesc;
- cDims: Word;
- rgbounds: array[0..0] of TSafeArrayBound;
- end;
- TArrayDesc = tagARRAYDESC;
- {$IFDEF BCB} {$EXTERNALSYM ARRAYDESC} {$ENDIF}
- ARRAYDESC = tagARRAYDESC;
- PIDLDesc = ^TIDLDesc;
- {$IFDEF BCB} {$EXTERNALSYM tagIDLDESC} {$ENDIF}
- tagIDLDESC = record
- dwReserved: Longint;
- wIDLFlags: Word;
- end;
- TIDLDesc = tagIDLDESC;
- {$IFDEF BCB} {$EXTERNALSYM IDLDESC} {$ENDIF}
- IDLDESC = tagIDLDESC;
- PElemDesc = ^TElemDesc;
- {$IFDEF BCB} {$EXTERNALSYM tagELEMDESC} {$ENDIF}
- tagELEMDESC = record
- tdesc: TTypeDesc;
- idldesc: TIDLDesc;
- end;
- TElemDesc = tagELEMDESC;
- {$IFDEF BCB} {$EXTERNALSYM ELEMDESC} {$ENDIF}
- ELEMDESC = tagELEMDESC;
- PElemDescList = ^TElemDescList;
- TElemDescList = array[0..65535] of TElemDesc;
- PTypeAttr = ^TTypeAttr;
- {$IFDEF BCB} {$EXTERNALSYM tagTYPEATTR} {$ENDIF}
- tagTYPEATTR = record
- guid: TGUID;
- lcid: TLCID;
- dwReserved: Longint;
- memidConstructor: TMemberID;
- memidDestructor: TMemberID;
- lpstrSchema: POleStr;
- cbSizeInstance: Longint;
- typekind: TTypeKind;
- cFuncs: Word;
- cVars: Word;
- cImplTypes: Word;
- cbSizeVft: Word;
- cbAlignment: Word;
- wTypeFlags: Word;
- wMajorVerNum: Word;
- wMinorVerNum: Word;
- tdescAlias: TTypeDesc;
- idldescType: TIDLDesc;
- end;
- TTypeAttr = tagTYPEATTR;
- {$IFDEF BCB} {$EXTERNALSYM TYPEATTR} {$ENDIF}
- TYPEATTR = tagTYPEATTR;
- PDispParams = ^TDispParams;
- {$IFDEF BCB} {$EXTERNALSYM tagDISPPARAMS} {$ENDIF}
- tagDISPPARAMS = record
- rgvarg: PVariantArgList;
- rgdispidNamedArgs: PDispIDList;
- cArgs: Longint;
- cNamedArgs: Longint;
- end;
- TDispParams = tagDISPPARAMS;
- {$IFDEF BCB} {$EXTERNALSYM DISPPARAMS} {$ENDIF}
- DISPPARAMS = tagDISPPARAMS;
- PExcepInfo = ^TExcepInfo;
- TFNDeferredFillIn = function(ExInfo: PExcepInfo): HResult stdcall;
- {$IFDEF BCB} {$EXTERNALSYM tagEXCEPINFO} {$ENDIF}
- tagEXCEPINFO = record
- wCode: Word;
- wReserved: Word;
- bstrSource: TBStr;
- bstrDescription: TBStr;
- bstrHelpFile: TBStr;
- dwHelpContext: Longint;
- pvReserved: Pointer;
- pfnDeferredFillIn: TFNDeferredFillIn;
- scode: HResult;
- end;
- TExcepInfo = tagEXCEPINFO;
- {$IFDEF BCB} {$EXTERNALSYM EXCEPINFO} {$ENDIF}
- EXCEPINFO = tagEXCEPINFO;
- TFuncKind = Longint;
- TInvokeKind = Longint;
- TCallConv = Longint;
- PFuncDesc = ^TFuncDesc;
- {$IFDEF BCB} {$EXTERNALSYM tagFUNCDESC} {$ENDIF}
- tagFUNCDESC = record
- memid: TMemberID;
- lprgscode: PResultList;
- lprgelemdescParam: PElemDescList;
- funckind: TFuncKind;
- invkind: TInvokeKind;
- callconv: TCallConv;
- cParams: Smallint;
- cParamsOpt: Smallint;
- oVft: Smallint;
- cScodes: Smallint;
- elemdescFunc: TElemDesc;
- wFuncFlags: Word;
- end;
- TFuncDesc = tagFUNCDESC;
- {$IFDEF BCB} {$EXTERNALSYM FUNCDESC} {$ENDIF}
- FUNCDESC = tagFUNCDESC;
- TVarKind = Longint;
- PVarDesc = ^TVarDesc;
- {$IFDEF BCB} {$EXTERNALSYM tagVARDESC} {$ENDIF}
- tagVARDESC = record
- memid: TMemberID;
- lpstrSchema: POleStr;
- case Integer of
- VAR_PERINSTANCE: (
- oInst: Longint;
- elemdescVar: TElemDesc;
- wVarFlags: Word;
- varkind: TVarKind);
- VAR_CONST: (
- lpvarValue: PVariant);
- end;
- TVarDesc = tagVARDESC;
- {$IFDEF BCB} {$EXTERNALSYM VARDESC} {$ENDIF}
- VARDESC = tagVARDESC;
- { ICreateTypeInfo interface }
- {$IFDEF BCB} {$EXTERNALSYM ICreateTypeInfo } {$ENDIF}
- ICreateTypeInfo = class(IUnknown)
- public
- function SetGuid(const guid: TGUID): HResult; virtual; stdcall; abstract;
- function SetTypeFlags(uTypeFlags: Integer): HResult; virtual; stdcall; abstract;
- function SetDocString(pstrDoc: POleStr): HResult; virtual; stdcall; abstract;
- function SetHelpContext(dwHelpContext: Longint): HResult; virtual; stdcall; abstract;
- function SetVersion(wMajorVerNum: Word; wMinorVerNum: Word): HResult;
- virtual; stdcall; abstract;
- function AddRefTypeInfo(tinfo: ITypeInfo; var reftype: HRefType): HResult;
- virtual; stdcall; abstract;
- function AddFuncDesc(index: Integer; var funcdesc: TFuncDesc): HResult;
- virtual; stdcall; abstract;
- function AddImplType(index: Integer; reftype: HRefType): HResult;
- virtual; stdcall; abstract;
- function SetImplTypeFlags(index: Integer; impltypeflags: Integer): HResult;
- virtual; stdcall; abstract;
- function SetAlignment(cbAlignment: Word): HResult; virtual; stdcall; abstract;
- function SetSchema(lpstrSchema: POleStr): HResult; virtual; stdcall; abstract;
- function AddVarDesc(index: Integer; var vardesc: TVarDesc): HResult;
- virtual; stdcall; abstract;
- function SetFuncAndParamNames(index: Integer; rgszNames: POleStrList;
- cNames: Integer): HResult; virtual; stdcall; abstract;
- function SetVarName(index: Integer; szName: POleStr): HResult; virtual; stdcall; abstract;
- function SetTypeDescAlias(var descAlias: TTypeDesc): HResult; virtual; stdcall; abstract;
- function DefineFuncAsDllEntry(index: Integer; szDllName: POleStr;
- szProcName: POleStr): HResult; virtual; stdcall; abstract;
- function SetFuncDocString(index: Integer; szDocString: POleStr): HResult;
- virtual; stdcall; abstract;
- function SetVarDocString(index: Integer; szDocString: POleStr): HResult;
- virtual; stdcall; abstract;
- function SetFuncHelpContext(index: Integer; dwHelpContext: Longint): HResult;
- virtual; stdcall; abstract;
- function SetVarHelpContext(index: Integer; dwHelpContext: Longint): HResult;
- virtual; stdcall; abstract;
- function SetMops(index: Integer; bstrMops: TBStr): HResult; virtual; stdcall; abstract;
- function SetTypeIdldesc(var idldesc: TIDLDesc): HResult; virtual; stdcall; abstract;
- function LayOut: HResult; virtual; stdcall; abstract;
- end;
- { ICreateTypeLib interface }
- {$IFDEF BCB} {$EXTERNALSYM ICreateTypeLib } {$ENDIF}
- ICreateTypeLib = class(IUnknown)
- public
- function CreateTypeInfo(szName: POleStr; tkind: TTypeKind;
- var ictinfo: ICreateTypeInfo): HResult; virtual; stdcall; abstract;
- function SetName(szName: POleStr): HResult; virtual; stdcall; abstract;
- function SetVersion(wMajorVerNum: Word; wMinorVerNum: Word): HResult; virtual; stdcall; abstract;
- function SetGuid(const guid: TGUID): HResult; virtual; stdcall; abstract;
- function SetDocString(szDoc: POleStr): HResult; virtual; stdcall; abstract;
- function SetHelpFileName(szHelpFileName: POleStr): HResult; virtual; stdcall; abstract;
- function SetHelpContext(dwHelpContext: Longint): HResult; virtual; stdcall; abstract;
- function SetLcid(lcid: TLCID): HResult; virtual; stdcall; abstract;
- function SetLibFlags(uLibFlags: Integer): HResult; virtual; stdcall; abstract;
- function SaveAllChanges: HResult; virtual; stdcall; abstract;
- end;
- { IDispatch interface }
- {$IFDEF BCB} {$EXTERNALSYM IDispatch } {$ENDIF}
- IDispatch = class(IUnknown)
- public
- function GetTypeInfoCount(var ctinfo: Integer): HResult; virtual; stdcall; abstract;
- function GetTypeInfo(itinfo: Integer; lcid: TLCID; var tinfo: ITypeInfo): HResult; virtual; stdcall; abstract;
- function GetIDsOfNames(const iid: TIID; rgszNames: POleStrList;
- cNames: Integer; lcid: TLCID; rgdispid: PDispIDList): HResult; virtual; stdcall; abstract;
- function Invoke(dispIDMember: TDispID; const iid: TIID; lcid: TLCID;
- flags: Word; var dispParams: TDispParams; varResult: PVariant;
- excepInfo: PExcepInfo; argErr: PInteger): HResult; virtual; stdcall; abstract;
- end;
- { IEnumVariant interface }
- {$IFDEF BCB} {$EXTERNALSYM IEnumVariant } {$ENDIF}
- IEnumVariant = class(IUnknown)
- public
- function Next(celt: Longint; var elt;
- var pceltFetched: Longint): HResult; virtual; stdcall; abstract;
- function Skip(celt: Longint): HResult; virtual; stdcall; abstract;
- function Reset: HResult; virtual; stdcall; abstract;
- function Clone(var Enum: IEnumVariant): HResult; virtual; stdcall; abstract;
- end;
- { ITypeComp interface }
- TDescKind = Longint;
- PBindPtr = ^TBindPtr;
- {$IFDEF BCB} {$EXTERNALSYM tagBINDPTR} {$ENDIF}
- tagBINDPTR = record
- case Integer of
- 0: (lpfuncdesc: PFuncDesc);
- 1: (lpvardesc: PVarDesc);
- 2: (lptcomp: ITypeComp);
- end;
- TBindPtr = tagBINDPTR;
- {$IFDEF BCB} {$EXTERNALSYM BINDPTR} {$ENDIF}
- BINDPTR = tagBINDPTR;
- {$IFDEF BCB} {$EXTERNALSYM ITypeComp } {$ENDIF}
- ITypeComp = class(IUnknown)
- public
- function Bind(szName: POleStr; lHashVal: Longint; wflags: Word;
- var tinfo: ITypeInfo; var desckind: TDescKind;
- var bindptr: TBindPtr): HResult; virtual; stdcall; abstract;
- function BindType(szName: POleStr; lHashVal: Longint;
- var tinfo: ITypeInfo; var tcomp: ITypeComp): HResult;
- virtual; stdcall; abstract;
- end;
- { ITypeInfo interface }
- {$IFDEF BCB} {$EXTERNALSYM ITypeInfo} {$ENDIF}
- ITypeInfo = class(IUnknown)
- public
- function GetTypeAttr(var ptypeattr: PTypeAttr): HResult; virtual; stdcall; abstract;
- function GetTypeComp(var tcomp: ITypeComp): HResult; virtual; stdcall; abstract;
- function GetFuncDesc(index: Integer; var pfuncdesc: PFuncDesc): HResult;
- virtual; stdcall; abstract;
- function GetVarDesc(index: Integer; var pvardesc: PVarDesc): HResult;
- virtual; stdcall; abstract;
- function GetNames(memid: TMemberID; rgbstrNames: PBStrList;
- cMaxNames: Integer; var cNames: Integer): HResult; virtual; stdcall; abstract;
- function GetRefTypeOfImplType(index: Integer; var reftype: HRefType): HResult;
- virtual; stdcall; abstract;
- function GetImplTypeFlags(index: Integer; var impltypeflags: Integer): HResult;
- virtual; stdcall; abstract;
- function GetIDsOfNames(rgpszNames: POleStrList; cNames: Integer;
- rgmemid: PMemberIDList): HResult; virtual; stdcall; abstract;
- function Invoke(pvInstance: Pointer; memid: TMemberID; flags: Word;
- var dispParams: TDispParams; varResult: PVariant;
- excepInfo: PExcepInfo; argErr: PInteger): HResult; virtual; stdcall; abstract;
- function GetDocumentation(memid: TMemberID; pbstrName: PBStr;
- pbstrDocString: PBStr; pdwHelpContext: PLongint;
- pbstrHelpFile: PBStr): HResult; virtual; stdcall; abstract;
- function GetDllEntry(memid: TMemberID; invkind: TInvokeKind;
- var bstrDllName: TBStr; var bstrName: TBStr; var wOrdinal: Word): HResult;
- virtual; stdcall; abstract;
- function GetRefTypeInfo(reftype: HRefType; var tinfo: ITypeInfo): HResult;
- virtual; stdcall; abstract;
- function AddressOfMember(memid: TMemberID; invkind: TInvokeKind;
- var ppv: Pointer): HResult; virtual; stdcall; abstract;
- function CreateInstance(unkOuter: IUnknown; const iid: TIID;
- var vObj): HResult; virtual; stdcall; abstract;
- function GetMops(memid: TMemberID; var bstrMops: TBStr): HResult;
- virtual; stdcall; abstract;
- function GetContainingTypeLib(var tlib: ITypeLib; var pindex: Integer): HResult;
- virtual; stdcall; abstract;
- procedure ReleaseTypeAttr(ptypeattr: PTypeAttr); virtual; stdcall; abstract;
- procedure ReleaseFuncDesc(pfuncdesc: PFuncDesc); virtual; stdcall; abstract;
- procedure ReleaseVarDesc(pvardesc: PVarDesc); virtual; stdcall; abstract;
- end;
- { ITypeLib interface }
- TSysKind = Longint;
- PTLibAttr = ^TTLibAttr;
- {$IFDEF BCB} {$EXTERNALSYM tagTLIBATTR} {$ENDIF}
- tagTLIBATTR = record
- guid: TGUID;
- lcid: TLCID;
- syskind: TSysKind;
- wMajorVerNum: Word;
- wMinorVerNum: Word;
- wLibFlags: Word;
- end;
- TTLibAttr = tagTLIBATTR;
- {$IFDEF BCB} {$EXTERNALSYM TLIBATTR} {$ENDIF}
- TLIBATTR = tagTLIBATTR;
- PTypeInfoList = ^TTypeInfoList;
- TTypeInfoList = array[0..65535] of ITypeInfo;
- {$IFDEF BCB} {$EXTERNALSYM ITypeLib} {$ENDIF}
- ITypeLib = class(IUnknown)
- public
- function GetTypeInfoCount: Integer; virtual; stdcall; abstract;
- function GetTypeInfo(index: Integer; var tinfo: ITypeInfo): HResult; virtual; stdcall; abstract;
- function GetTypeInfoType(index: Integer; var tkind: TTypeKind): HResult;
- virtual; stdcall; abstract;
- function GetTypeInfoOfGuid(const guid: TGUID; var tinfo: ITypeInfo): HResult;
- virtual; stdcall; abstract;
- function GetLibAttr(var ptlibattr: PTLibAttr): HResult; virtual; stdcall; abstract;
- function GetTypeComp(var tcomp: ITypeComp): HResult; virtual; stdcall; abstract;
- function GetDocumentation(index: Integer; pbstrName: PBStr;
- pbstrDocString: PBStr; pdwHelpContext: PLongint;
- pbstrHelpFile: PBStr): HResult; virtual; stdcall; abstract;
- function IsName(szNameBuf: POleStr; lHashVal: Longint; var fName: BOOL): HResult;
- virtual; stdcall; abstract;
- function FindName(szNameBuf: POleStr; lHashVal: Longint;
- rgptinfo: PTypeInfoList; rgmemid: PMemberIDList;
- var pcFound: Word): HResult; virtual; stdcall; abstract;
- procedure ReleaseTLibAttr(ptlibattr: PTLibAttr); virtual; stdcall; abstract;
- end;
- { IErrorInfo interface }
- {$IFDEF BCB} {$EXTERNALSYM IErrorInfo } {$ENDIF}
- IErrorInfo = class(IUnknown)
- public
- function GetGUID(var guid: TGUID): HResult; virtual; stdcall; abstract;
- function GetSource(var bstrSource: TBStr): HResult; virtual; stdcall; abstract;
- function GetDescription(var bstrDescription: TBStr): HResult; virtual; stdcall; abstract;
- function GetHelpFile(var bstrHelpFile: TBStr): HResult; virtual; stdcall; abstract;
- function GetHelpContext(var dwHelpContext: Longint): HResult; virtual; stdcall; abstract;
- end;
- { ICreateErrorInfo interface }
- {$IFDEF BCB} {$EXTERNALSYM ICreateErrorInfo } {$ENDIF}
- ICreateErrorInfo = class(IUnknown)
- public
- function SetGUID(const guid: TGUID): HResult; virtual; stdcall; abstract;
- function SetSource(szSource: POleStr): HResult; virtual; stdcall; abstract;
- function SetDescription(szDescription: POleStr): HResult; virtual; stdcall; abstract;
- function SetHelpFile(szHelpFile: POleStr): HResult; virtual; stdcall; abstract;
- function SetHelpContext(dwHelpContext: Longint): HResult; virtual; stdcall; abstract;
- end;
- { ISupportErrorInfo interface }
- {$IFDEF BCB} {$EXTERNALSYM ISupportErrorInfo } {$ENDIF}
- ISupportErrorInfo = class(IUnknown)
- public
- function InterfaceSupportsErrorInfo(const iid: TIID): HResult; virtual; stdcall; abstract;
- end;
- { IDispatch implementation support }
- PParamData = ^TParamData;
- {$IFDEF BCB} {$EXTERNALSYM tagPARAMDATA} {$ENDIF}
- tagPARAMDATA = record
- szName: POleStr;
- vt: TVarType;
- end;
- TParamData = tagPARAMDATA;
- {$IFDEF BCB} {$EXTERNALSYM PARAMDATA} {$ENDIF}
- PARAMDATA = tagPARAMDATA;
- PParamDataList = ^TParamDataList;
- TParamDataList = array[0..65535] of TParamData;
- PMethodData = ^TMethodData;
- {$IFDEF BCB} {$EXTERNALSYM tagMETHODDATA} {$ENDIF}
- tagMETHODDATA = record
- szName: POleStr;
- ppdata: PParamDataList;
- dispid: TDispID;
- iMeth: Integer;
- cc: TCallConv;
- cArgs: Integer;
- wFlags: Word;
- vtReturn: TVarType;
- end;
- TMethodData = tagMETHODDATA;
- {$IFDEF BCB} {$EXTERNALSYM METHODDATA} {$ENDIF}
- METHODDATA = tagMETHODDATA;
- PMethodDataList = ^TMethodDataList;
- TMethodDataList = array[0..65535] of TMethodData;
- PInterfaceData = ^TInterfaceData;
- {$IFDEF BCB} {$EXTERNALSYM tagINTERFACEDATA} {$ENDIF}
- tagINTERFACEDATA = record
- pmethdata: PMethodDataList;
- cMembers: Integer;
- end;
- TInterfaceData = tagINTERFACEDATA;
- {$IFDEF BCB} {$EXTERNALSYM INTERFACEDATA} {$ENDIF}
- INTERFACEDATA = tagINTERFACEDATA;
- { IOleAdviseHolder interface }
- {$IFDEF BCB} {$EXTERNALSYM IOleAdviseHolder} {$ENDIF}
- IOleAdviseHolder = class(IUnknown)
- public
- function Advise(advise: IAdviseSink; var dwConnection: Longint): HResult;
- virtual; stdcall; abstract;
- function Unadvise(dwConnection: Longint): HResult; virtual; stdcall; abstract;
- function EnumAdvise(var enumAdvise: IEnumStatData): HResult; virtual; stdcall; abstract;
- function SendOnRename(mk: IMoniker): HResult; virtual; stdcall; abstract;
- function SendOnSave: HResult; virtual; stdcall; abstract;
- function SendOnClose: HResult; virtual; stdcall; abstract;
- end;
- { IOleCache interface }
- {$IFDEF BCB} {$EXTERNALSYM IOleCache } {$ENDIF}
- IOleCache = class(IUnknown)
- public