home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
OLE2.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
58KB
|
1,603 lines
//----------------------------------------------------------------------------
// OLE2.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: OLE2.pas
//----------------------------------------------------------------------------
#ifndef OLE2HPP
#define OLE2HPP
#ifndef WindowsHPP
#include <windows.hpp>
#endif
#include <ole2.h>
#include <oleauto.h>
#include <olectl.h>
#include <oledlg.h>
#define OLE2HPP
//----------------------------------------------------------------------------
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Ole2
{
//-- type declarations -------------------------------------------------------
typedef long HResult;
typedef long TResultList[65536];
typedef TResultList *PResultList;
typedef wchar_t TOleChar;
typedef wchar_t *POleStr;
typedef wchar_t *TOleStrList[65536];
typedef TOleStrList *POleStrList;
typedef System::Comp Largeint;
typedef _GUID *PGUID;
typedef _GUID TGUID;
typedef _GUID *PIID;
typedef _GUID TIID;
typedef _GUID *PCLSID;
typedef _GUID TCLSID;
typedef _OBJECTID *PObjectID;
typedef _OBJECTID TObjectID;
typedef long TLCID;
class __declspec(delphiclass) IUnknown;
class __declspec(pascalimplementation) IUnknown : public System::TObject
{
typedef System::TObject inherited;
public:
virtual long __stdcall QueryInterface(const GUID &iid, void *obj) = 0;
virtual long __stdcall AddRef(void) = 0;
virtual long __stdcall Release(void) = 0;
public:
/* TObject.Create */ __fastcall IUnknown(void) : System::TObject() { }
/* TObject.Destroy */ __fastcall virtual ~IUnknown(void) { }
};
class __declspec(delphiclass) IClassFactory;
class __declspec(pascalimplementation) IClassFactory : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall CreateInstance(IUnknown* unkOuter, const GUID &iid, void *obj) = 0;
virtual long __stdcall LockServer(DWord fLock) = 0;
public:
/* TObject.Create */ __fastcall IClassFactory(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IClassFactory(void) { }
};
class __declspec(delphiclass) IMarshal;
class __declspec(delphiclass) IStream;
class __declspec(pascalimplementation) IMarshal : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetUnmarshalClass(const GUID &iid, void * pv, long dwDestContext, void * pvDestContext
, long mshlflags, GUID &cid) = 0;
virtual long __stdcall GetMarshalSizeMax(const GUID &iid, void * pv, long dwDestContext, void * pvDestContext
, long mshlflags, long &size) = 0;
virtual long __stdcall MarshalInterface(IStream* stm, const GUID &iid, void * pv, long dwDestContext
, void * pvDestContext, long mshlflags) = 0;
virtual long __stdcall UnmarshalInterface(IStream* stm, const GUID &iid, void *pv) = 0;
virtual long __stdcall ReleaseMarshalData(IStream* stm) = 0;
virtual long __stdcall DisconnectObject(long dwReserved) = 0;
public:
/* TObject.Create */ __fastcall IMarshal(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IMarshal(void) { }
};
class __declspec(delphiclass) IMalloc;
class __declspec(pascalimplementation) IMalloc : public IUnknown
{
typedef IUnknown inherited;
public:
virtual void * __stdcall Alloc(long cb) = 0;
virtual void * __stdcall Realloc(void * pv, long cb) = 0;
HIDESBASE virtual void __stdcall Free(void * pv) = 0;
virtual long __stdcall GetSize(void * pv) = 0;
virtual int __stdcall DidAlloc(void * pv) = 0;
virtual void __stdcall HeapMinimize(void) = 0;
public:
/* TObject.Create */ __fastcall IMalloc(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IMalloc(void) { }
};
class __declspec(delphiclass) IMallocSpy;
class __declspec(pascalimplementation) IMallocSpy : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall PreAlloc(long cbRequest) = 0;
virtual void * __stdcall PostAlloc(void * pActual) = 0;
virtual void * __stdcall PreFree(void * pRequest, DWord fSpyed) = 0;
virtual void __stdcall PostFree(DWord fSpyed) = 0;
virtual long __stdcall PreRealloc(void * pRequest, long cbRequest, void * &ppNewRequest, DWord fSpyed
) = 0;
virtual void * __stdcall PostRealloc(void * pActual, DWord fSpyed) = 0;
virtual void * __stdcall PreGetSize(void * pRequest, DWord fSpyed) = 0;
virtual long __stdcall PostGetSize(void * pActual, DWord fSpyed) = 0;
virtual int __stdcall PostDidAlloc(void * pRequest, DWord fSpyed, int fActual) = 0;
virtual void __stdcall PreHeapMinimize(void) = 0;
virtual void __stdcall PostHeapMinimize(void) = 0;
public:
/* TObject.Create */ __fastcall IMallocSpy(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IMallocSpy(void) { }
};
class __declspec(delphiclass) IStdMarshalInfo;
class __declspec(pascalimplementation) IStdMarshalInfo : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetClassForHandler(long dwDestContext, void * pvDestContext, GUID &clsid) = 0
;
public:
/* TObject.Create */ __fastcall IStdMarshalInfo(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IStdMarshalInfo(void) { }
};
class __declspec(delphiclass) IExternalConnection;
class __declspec(pascalimplementation) IExternalConnection : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall AddConnection(long extconn, long reserved) = 0;
virtual long __stdcall ReleaseConnection(long extconn, long reserved, DWord fLastReleaseCloses) = 0
;
public:
/* TObject.Create */ __fastcall IExternalConnection(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IExternalConnection(void) { }
};
class __declspec(delphiclass) IWeakRef;
class __declspec(pascalimplementation) IWeakRef : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall ChangeWeakCount(long delta) = 0;
virtual long __stdcall ReleaseKeepAlive(IUnknown* unkReleased, long reserved) = 0;
public:
/* TObject.Create */ __fastcall IWeakRef(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IWeakRef(void) { }
};
class __declspec(delphiclass) IEnumUnknown;
class __declspec(pascalimplementation) IEnumUnknown : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumUnknown* &enm) = 0;
public:
/* TObject.Create */ __fastcall IEnumUnknown(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumUnknown(void) { }
};
typedef tagBIND_OPTS *PBindOpts;
typedef tagBIND_OPTS TBindOpts;
class __declspec(delphiclass) IBindCtx;
class __declspec(delphiclass) IRunningObjectTable;
class __declspec(delphiclass) IEnumString;
class __declspec(pascalimplementation) IBindCtx : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall RegisterObjectBound(IUnknown* unk) = 0;
virtual long __stdcall RevokeObjectBound(IUnknown* unk) = 0;
virtual long __stdcall ReleaseBoundObjects(void) = 0;
virtual long __stdcall SetBindOptions(BIND_OPTS &bindopts) = 0;
virtual long __stdcall GetBindOptions(BIND_OPTS &bindopts) = 0;
virtual long __stdcall GetRunningObjectTable(IRunningObjectTable* &rot) = 0;
virtual long __stdcall RegisterObjectParam(wchar_t * pszKey, IUnknown* unk) = 0;
virtual long __stdcall GetObjectParam(wchar_t * pszKey, IUnknown* &unk) = 0;
virtual long __stdcall EnumObjectParam(IEnumString* &Enum) = 0;
virtual long __stdcall RevokeObjectParam(wchar_t * pszKey) = 0;
public:
/* TObject.Create */ __fastcall IBindCtx(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IBindCtx(void) { }
};
class __declspec(delphiclass) IEnumMoniker;
class __declspec(pascalimplementation) IEnumMoniker : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumMoniker* &enm) = 0;
public:
/* TObject.Create */ __fastcall IEnumMoniker(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumMoniker(void) { }
};
class __declspec(delphiclass) IRunnableObject;
class __declspec(pascalimplementation) IRunnableObject : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetRunningClass(GUID &clsid) = 0;
virtual long __stdcall Run(IBindCtx* bc) = 0;
virtual DWord __stdcall IsRunning(void) = 0;
virtual long __stdcall LockRunning(DWord fLock, DWord fLastUnlockCloses) = 0;
virtual long __stdcall SetContainedObject(DWord fContained) = 0;
public:
/* TObject.Create */ __fastcall IRunnableObject(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IRunnableObject(void) { }
};
class __declspec(delphiclass) IMoniker;
class __declspec(pascalimplementation) IRunningObjectTable : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Register(long grfFlags, IUnknown* &unkObject, IMoniker* mkObjectName, long &
dwRegister) = 0;
virtual long __stdcall Revoke(long dwRegister) = 0;
virtual long __stdcall IsRunning(IMoniker* mkObjectName) = 0;
virtual long __stdcall GetObject(IMoniker* mkObjectName, IUnknown* &unkObject) = 0;
virtual long __stdcall NoteChangeTime(long dwRegister, FILETIME &filetime) = 0;
virtual long __stdcall GetTimeOfLastChange(IMoniker* mkObjectName, FILETIME &filetime) = 0;
virtual long __stdcall EnumRunning(IEnumMoniker* &enumMoniker) = 0;
public:
/* TObject.Create */ __fastcall IRunningObjectTable(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IRunningObjectTable(void) { }
};
class __declspec(delphiclass) IPersist;
class __declspec(pascalimplementation) IPersist : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetClassID(GUID &classID) = 0;
public:
/* TObject.Create */ __fastcall IPersist(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IPersist(void) { }
};
class __declspec(delphiclass) IPersistStream;
class __declspec(pascalimplementation) IPersistStream : public IPersist
{
typedef IPersist inherited;
public:
virtual long __stdcall IsDirty(void) = 0;
virtual long __stdcall Load(IStream* stm) = 0;
virtual long __stdcall Save(IStream* stm, DWord fClearDirty) = 0;
virtual long __stdcall GetSizeMax(System::Comp &cbSize) = 0;
public:
/* TObject.Create */ __fastcall IPersistStream(void) : Ole2::IPersist() { }
/* TObject.Destroy */ __fastcall virtual ~IPersistStream(void) { }
};
class __declspec(pascalimplementation) IMoniker : public IPersistStream
{
typedef IPersistStream inherited;
public:
virtual long __stdcall BindToObject(IBindCtx* bc, IMoniker* mkToLeft, const GUID &iidResult, void
*vResult) = 0;
virtual long __stdcall BindToStorage(IBindCtx* bc, IMoniker* mkToLeft, const GUID &iid, void *vObj
) = 0;
virtual long __stdcall Reduce(IBindCtx* bc, long dwReduceHowFar, IMoniker* &mkToLeft, IMoniker* &mkReduced
) = 0;
virtual long __stdcall ComposeWith(IMoniker* mkRight, DWord fOnlyIfNotGeneric, IMoniker* &mkComposite
) = 0;
virtual long __stdcall Enum(DWord fForward, IEnumMoniker* &enumMoniker) = 0;
virtual long __stdcall IsEqual(IMoniker* mkOtherMoniker) = 0;
virtual long __stdcall Hash(long &dwHash) = 0;
virtual long __stdcall IsRunning(IBindCtx* bc, IMoniker* mkToLeft, IMoniker* mkNewlyRunning) = 0;
virtual long __stdcall GetTimeOfLastChange(IBindCtx* bc, IMoniker* mkToLeft, FILETIME &filetime) = 0
;
virtual long __stdcall Inverse(IMoniker* &mk) = 0;
virtual long __stdcall CommonPrefixWith(IMoniker* mkOther, IMoniker* &mkPrefix) = 0;
virtual long __stdcall RelativePathTo(IMoniker* mkOther, IMoniker* &mkRelPath) = 0;
virtual long __stdcall GetDisplayName(IBindCtx* bc, IMoniker* mkToLeft, wchar_t * &pszDisplayName) = 0
;
virtual long __stdcall ParseDisplayName(IBindCtx* bc, IMoniker* mkToLeft, wchar_t * pszDisplayName,
long &chEaten, IMoniker* &mkOut) = 0;
virtual long __stdcall IsSystemMoniker(long &dwMksys) = 0;
public:
/* TObject.Create */ __fastcall IMoniker(void) : Ole2::IPersistStream() { }
/* TObject.Destroy */ __fastcall virtual ~IMoniker(void) { }
};
class __declspec(pascalimplementation) IEnumString : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumString* &enm) = 0;
public:
/* TObject.Create */ __fastcall IEnumString(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumString(void) { }
};
typedef tagSTATSTG *PStatStg;
typedef tagSTATSTG TStatStg;
class __declspec(pascalimplementation) IStream : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Read(void * pv, long cb, Windows::PLongint pcbRead) = 0;
virtual long __stdcall Write(void * pv, long cb, Windows::PLongint pcbWritten) = 0;
virtual long __stdcall Seek(System::Comp dlibMove, long dwOrigin, System::Comp &libNewPosition) = 0
;
virtual long __stdcall SetSize(System::Comp libNewSize) = 0;
virtual long __stdcall CopyTo(IStream* stm, System::Comp cb, System::Comp &cbRead, System::Comp &cbWritten
) = 0;
virtual long __stdcall Commit(long grfCommitFlags) = 0;
virtual long __stdcall Revert(void) = 0;
virtual long __stdcall LockRegion(System::Comp libOffset, System::Comp cb, long dwLockType) = 0;
virtual long __stdcall UnlockRegion(System::Comp libOffset, System::Comp cb, long dwLockType) = 0;
virtual long __stdcall Stat(STATSTG &statstg, long grfStatFlag) = 0;
virtual long __stdcall Clone(IStream* &stm) = 0;
public:
/* TObject.Create */ __fastcall IStream(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IStream(void) { }
};
class __declspec(delphiclass) IEnumStatStg;
class __declspec(pascalimplementation) IEnumStatStg : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumStatStg* &enm) = 0;
public:
/* TObject.Create */ __fastcall IEnumStatStg(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumStatStg(void) { }
};
typedef wchar_t * *TSNB;
class __declspec(delphiclass) IStorage;
class __declspec(pascalimplementation) IStorage : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall CreateStream(wchar_t * pwcsName, long grfMode, long reserved1, long reserved2
, IStream* &stm) = 0;
virtual long __stdcall OpenStream(wchar_t * pwcsName, void * reserved1, long grfMode, long reserved2
, IStream* &stm) = 0;
virtual long __stdcall CreateStorage(wchar_t * pwcsName, long grfMode, long dwStgFmt, long reserved2
, IStorage* &stg) = 0;
virtual long __stdcall OpenStorage(wchar_t * pwcsName, IStorage* stgPriority, long grfMode, TSNB snbExclude
, long reserved, IStorage* &stg) = 0;
virtual long __stdcall CopyTo(long ciidExclude, PGUID rgiidExclude, TSNB snbExclude, IStorage* stgDest
) = 0;
virtual long __stdcall MoveElementTo(wchar_t * pwcsName, IStorage* stgDest, wchar_t * pwcsNewName,
long grfFlags) = 0;
virtual long __stdcall Commit(long grfCommitFlags) = 0;
virtual long __stdcall Revert(void) = 0;
virtual long __stdcall EnumElements(long reserved1, void * reserved2, long reserved3, IEnumStatStg*
&enm) = 0;
virtual long __stdcall DestroyElement(wchar_t * pwcsName) = 0;
virtual long __stdcall RenameElement(wchar_t * pwcsOldName, wchar_t * pwcsNewName) = 0;
virtual long __stdcall SetElementTimes(wchar_t * pwcsName, const FILETIME &ctime, const FILETIME
&atime, const FILETIME &mtime) = 0;
virtual long __stdcall SetClass(const GUID &clsid) = 0;
virtual long __stdcall SetStateBits(long grfStateBits, long grfMask) = 0;
virtual long __stdcall Stat(STATSTG &statstg, long grfStatFlag) = 0;
public:
/* TObject.Create */ __fastcall IStorage(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IStorage(void) { }
};
class __declspec(delphiclass) IPersistFile;
class __declspec(pascalimplementation) IPersistFile : public IPersist
{
typedef IPersist inherited;
public:
virtual long __stdcall IsDirty(void) = 0;
virtual long __stdcall Load(wchar_t * pszFileName, long dwMode) = 0;
virtual long __stdcall Save(wchar_t * pszFileName, DWord fRemember) = 0;
virtual long __stdcall SaveCompleted(wchar_t * pszFileName) = 0;
virtual long __stdcall GetCurFile(wchar_t * &pszFileName) = 0;
public:
/* TObject.Create */ __fastcall IPersistFile(void) : Ole2::IPersist() { }
/* TObject.Destroy */ __fastcall virtual ~IPersistFile(void) { }
};
class __declspec(delphiclass) IPersistStorage;
class __declspec(pascalimplementation) IPersistStorage : public IPersist
{
typedef IPersist inherited;
public:
virtual long __stdcall IsDirty(void) = 0;
virtual long __stdcall InitNew(IStorage* stg) = 0;
virtual long __stdcall Load(IStorage* stg) = 0;
virtual long __stdcall Save(IStorage* stgSave, DWord fSameAsLoad) = 0;
virtual long __stdcall SaveCompleted(IStorage* stgNew) = 0;
virtual long __stdcall HandsOffStorage(void) = 0;
public:
/* TObject.Create */ __fastcall IPersistStorage(void) : Ole2::IPersist() { }
/* TObject.Destroy */ __fastcall virtual ~IPersistStorage(void) { }
};
class __declspec(delphiclass) ILockBytes;
class __declspec(pascalimplementation) ILockBytes : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall ReadAt(System::Comp ulOffset, void * pv, long cb, Windows::PLongint pcbRead)
= 0;
virtual long __stdcall WriteAt(System::Comp ulOffset, void * pv, long cb, Windows::PLongint pcbWritten
) = 0;
virtual long __stdcall Flush(void) = 0;
virtual long __stdcall SetSize(System::Comp cb) = 0;
virtual long __stdcall LockRegion(System::Comp libOffset, System::Comp cb, long dwLockType) = 0;
virtual long __stdcall UnlockRegion(System::Comp libOffset, System::Comp cb, long dwLockType) = 0;
virtual long __stdcall Stat(STATSTG &statstg, long grfStatFlag) = 0;
public:
/* TObject.Create */ __fastcall ILockBytes(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ILockBytes(void) { }
};
typedef tagDVTARGETDEVICE *PDVTargetDevice;
typedef tagDVTARGETDEVICE TDVTargetDevice;
typedef Word *PClipFormat;
typedef Word TClipFormat;
typedef tagFORMATETC *PFormatEtc;
typedef tagFORMATETC TFormatEtc;
class __declspec(delphiclass) IEnumFormatEtc;
class __declspec(pascalimplementation) IEnumFormatEtc : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumFormatEtc* &Enum) = 0;
public:
/* TObject.Create */ __fastcall IEnumFormatEtc(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumFormatEtc(void) { }
};
typedef tagSTATDATA *PStatData;
class __declspec(delphiclass) IAdviseSink;
class __declspec(pascalimplementation) IAdviseSink : public IUnknown
{
typedef IUnknown inherited;
public:
virtual void __stdcall OnDataChange(FORMATETC &formatetc, STGMEDIUM &stgmed) = 0;
virtual void __stdcall OnViewChange(long dwAspect, long lindex) = 0;
virtual void __stdcall OnRename(IMoniker* mk) = 0;
virtual void __stdcall OnSave(void) = 0;
virtual void __stdcall OnClose(void) = 0;
public:
/* TObject.Create */ __fastcall IAdviseSink(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IAdviseSink(void) { }
};
typedef tagSTATDATA TStatData;
class __declspec(delphiclass) IEnumStatData;
class __declspec(pascalimplementation) IEnumStatData : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumStatData* &Enum) = 0;
public:
/* TObject.Create */ __fastcall IEnumStatData(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumStatData(void) { }
};
class __declspec(delphiclass) IRootStorage;
class __declspec(pascalimplementation) IRootStorage : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall SwitchToFile(wchar_t * pszFile) = 0;
public:
/* TObject.Create */ __fastcall IRootStorage(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IRootStorage(void) { }
};
typedef tagRemSTGMEDIUM *PRemStgMedium;
typedef tagRemSTGMEDIUM TRemStgMedium;
typedef tagSTGMEDIUM *PStgMedium;
typedef tagSTGMEDIUM TStgMedium;
class __declspec(delphiclass) IAdviseSink2;
class __declspec(pascalimplementation) IAdviseSink2 : public IAdviseSink
{
typedef IAdviseSink inherited;
public:
virtual void __stdcall OnLinkSrcChange(IMoniker* mk) = 0;
public:
/* TObject.Create */ __fastcall IAdviseSink2(void) : Ole2::IAdviseSink() { }
/* TObject.Destroy */ __fastcall virtual ~IAdviseSink2(void) { }
};
class __declspec(delphiclass) IDataObject;
class __declspec(pascalimplementation) IDataObject : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetData(FORMATETC &formatetcIn, STGMEDIUM &medium) = 0;
virtual long __stdcall GetDataHere(FORMATETC &formatetc, STGMEDIUM &medium) = 0;
virtual long __stdcall QueryGetData(FORMATETC &formatetc) = 0;
virtual long __stdcall GetCanonicalFormatEtc(FORMATETC &formatetc, FORMATETC &formatetcOut) = 0
;
virtual long __stdcall SetData(FORMATETC &formatetc, STGMEDIUM &medium, DWord fRelease) = 0;
virtual long __stdcall EnumFormatEtc(long dwDirection, IEnumFormatEtc* &enumFormatEtc) = 0;
virtual long __stdcall DAdvise(FORMATETC &formatetc, long advf, IAdviseSink* advSink, long &dwConnection
) = 0;
virtual long __stdcall DUnadvise(long dwConnection) = 0;
virtual long __stdcall EnumDAdvise(IEnumStatData* &enumAdvise) = 0;
public:
/* TObject.Create */ __fastcall IDataObject(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IDataObject(void) { }
};
class __declspec(delphiclass) IDataAdviseHolder;
class __declspec(pascalimplementation) IDataAdviseHolder : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Advise(IDataObject* dataObject, FORMATETC &fetc, long advf, IAdviseSink*
advise, long &pdwConnection) = 0;
virtual long __stdcall Unadvise(long dwConnection) = 0;
virtual long __stdcall EnumAdvise(IEnumStatData* &enumAdvise) = 0;
virtual long __stdcall SendOnDataChange(IDataObject* dataObject, long dwReserved, long advf) = 0;
public:
/* TObject.Create */ __fastcall IDataAdviseHolder(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IDataAdviseHolder(void) { }
};
typedef tagINTERFACEINFO *PInterfaceInfo;
typedef tagINTERFACEINFO TInterfaceInfo;
class __declspec(delphiclass) IMessageFilter;
class __declspec(pascalimplementation) IMessageFilter : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall HandleInComingCall(long dwCallType, HTASK htaskCaller, long dwTickCount, PInterfaceInfo
lpInterfaceInfo) = 0;
virtual long __stdcall RetryRejectedCall(HTASK htaskCallee, long dwTickCount, long dwRejectType) = 0
;
virtual long __stdcall MessagePending(HTASK htaskCallee, long dwTickCount, long dwPendingType) = 0;
public:
/* TObject.Create */ __fastcall IMessageFilter(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IMessageFilter(void) { }
};
typedef long TRpcOleDataRep;
typedef tagRPCOLEMESSAGE *PRpcOleMessage;
typedef tagRPCOLEMESSAGE TRpcOleMessage;
class __declspec(delphiclass) IRpcChannelBuffer;
class __declspec(pascalimplementation) IRpcChannelBuffer : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetBuffer(RPCOLEMESSAGE &message, const GUID &iid) = 0;
virtual long __stdcall SendReceive(RPCOLEMESSAGE &message, long &status) = 0;
virtual long __stdcall FreeBuffer(RPCOLEMESSAGE &message) = 0;
virtual long __stdcall GetDestCtx(long &dwDestContext, void *pvDestContext) = 0;
virtual long __stdcall IsConnected(void) = 0;
public:
/* TObject.Create */ __fastcall IRpcChannelBuffer(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IRpcChannelBuffer(void) { }
};
class __declspec(delphiclass) IRpcProxyBuffer;
class __declspec(pascalimplementation) IRpcProxyBuffer : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Connect(IRpcChannelBuffer* rpcChannelBuffer) = 0;
virtual void __stdcall Disconnect(void) = 0;
public:
/* TObject.Create */ __fastcall IRpcProxyBuffer(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IRpcProxyBuffer(void) { }
};
class __declspec(delphiclass) IRpcStubBuffer;
class __declspec(pascalimplementation) IRpcStubBuffer : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Connect(IUnknown* unkServer) = 0;
virtual void __stdcall Disconnect(void) = 0;
virtual long __stdcall Invoke(RPCOLEMESSAGE &rpcmsg, IRpcChannelBuffer* rpcChannelBuffer) = 0;
virtual IRpcStubBuffer* __stdcall IsIIDSupported(const GUID &iid) = 0;
virtual long __stdcall CountRefs(void) = 0;
virtual long __stdcall DebugServerQueryInterface(void *pv) = 0;
virtual void __stdcall DebugServerRelease(void * pv) = 0;
public:
/* TObject.Create */ __fastcall IRpcStubBuffer(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IRpcStubBuffer(void) { }
};
class __declspec(delphiclass) IPSFactoryBuffer;
class __declspec(pascalimplementation) IPSFactoryBuffer : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall CreateProxy(IUnknown* unkOuter, const GUID &iid, IRpcProxyBuffer* &proxy, void
*pv) = 0;
virtual long __stdcall CreateStub(const GUID &iid, IUnknown* unkServer, IRpcStubBuffer* &stub) = 0
;
public:
/* TObject.Create */ __fastcall IPSFactoryBuffer(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IPSFactoryBuffer(void) { }
};
typedef wchar_t * *PBStr;
typedef wchar_t *TBStr;
typedef wchar_t *TBStrList[65536];
typedef TBStrList *PBStrList;
typedef tagBLOB *PBlob;
typedef tagBLOB TBlob;
typedef tagCLIPDATA *PClipData;
typedef tagCLIPDATA TClipData;
typedef tagSAFEARRAYBOUND *PSafeArrayBound;
typedef tagSAFEARRAYBOUND TSafeArrayBound;
typedef tagSAFEARRAY *PSafeArray;
typedef tagSAFEARRAY TSafeArray;
typedef double TOleDate;
typedef System::Comp TCurrency;
typedef Word TOleBool;
typedef Word TVarType;
typedef tagVARIANT *PVariantArg;
class __declspec(delphiclass) IDispatch;
class __declspec(delphiclass) ITypeInfo;
typedef long TDispIDList[65536];
typedef TDispIDList *PDispIDList;
typedef tagEXCEPINFO *PExcepInfo;
class __declspec(pascalimplementation) IDispatch : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetTypeInfoCount(int &ctinfo) = 0;
virtual long __stdcall GetTypeInfo(int itinfo, long lcid, ITypeInfo* &tinfo) = 0;
virtual long __stdcall GetIDsOfNames(const GUID &iid, POleStrList rgszNames, int cNames, long lcid
, PDispIDList rgdispid) = 0;
virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS
&dispParams, System::PVariant varResult, PExcepInfo excepInfo, Windows::PInteger argErr) = 0;
public:
/* TObject.Create */ __fastcall IDispatch(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IDispatch(void) { }
};
typedef tagVARIANT TVariantArg;
typedef tagVARIANT TVariantArgList[65536];
typedef TVariantArgList *PVariantArgList;
typedef long TDispID;
typedef long TMemberID;
typedef long TMemberIDList[65536];
typedef TMemberIDList *PMemberIDList;
typedef long TPropID;
typedef long HRefType;
typedef long TTypeKind;
typedef tagARRAYDESC *PArrayDesc;
typedef tagTYPEDESC *PTypeDesc;
typedef tagTYPEDESC TTypeDesc;
typedef tagARRAYDESC TArrayDesc;
typedef tagIDLDESC *PIDLDesc;
typedef tagIDLDESC TIDLDesc;
typedef tagELEMDESC *PElemDesc;
typedef tagELEMDESC TElemDesc;
typedef tagELEMDESC TElemDescList[65536];
typedef TElemDescList *PElemDescList;
typedef tagTYPEATTR *PTypeAttr;
typedef tagTYPEATTR TTypeAttr;
typedef tagDISPPARAMS *PDispParams;
typedef tagDISPPARAMS TDispParams;
typedef long __stdcall (*TFNDeferredFillIn)(PExcepInfo ExInfo);
typedef tagEXCEPINFO TExcepInfo;
typedef long TFuncKind;
typedef long TInvokeKind;
typedef long TCallConv;
typedef tagFUNCDESC *PFuncDesc;
typedef tagFUNCDESC TFuncDesc;
typedef long TVarKind;
typedef tagVARDESC *PVarDesc;
typedef tagVARDESC TVarDesc;
class __declspec(delphiclass) ICreateTypeInfo;
class __declspec(pascalimplementation) ICreateTypeInfo : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall SetGuid(const GUID &guid) = 0;
virtual long __stdcall SetTypeFlags(int uTypeFlags) = 0;
virtual long __stdcall SetDocString(wchar_t * pstrDoc) = 0;
virtual long __stdcall SetHelpContext(long dwHelpContext) = 0;
virtual long __stdcall SetVersion(Word wMajorVerNum, Word wMinorVerNum) = 0;
virtual long __stdcall AddRefTypeInfo(ITypeInfo* tinfo, long &reftype) = 0;
virtual long __stdcall AddFuncDesc(int index, FUNCDESC &funcdesc) = 0;
virtual long __stdcall AddImplType(int index, long reftype) = 0;
virtual long __stdcall SetImplTypeFlags(int index, int impltypeflags) = 0;
virtual long __stdcall SetAlignment(Word cbAlignment) = 0;
virtual long __stdcall SetSchema(wchar_t * lpstrSchema) = 0;
virtual long __stdcall AddVarDesc(int index, VARDESC &vardesc) = 0;
virtual long __stdcall SetFuncAndParamNames(int index, POleStrList rgszNames, int cNames) = 0;
virtual long __stdcall SetVarName(int index, wchar_t * szName) = 0;
virtual long __stdcall SetTypeDescAlias(TYPEDESC &descAlias) = 0;
virtual long __stdcall DefineFuncAsDllEntry(int index, wchar_t * szDllName, wchar_t * szProcName) = 0
;
virtual long __stdcall SetFuncDocString(int index, wchar_t * szDocString) = 0;
virtual long __stdcall SetVarDocString(int index, wchar_t * szDocString) = 0;
virtual long __stdcall SetFuncHelpContext(int index, long dwHelpContext) = 0;
virtual long __stdcall SetVarHelpContext(int index, long dwHelpContext) = 0;
virtual long __stdcall SetMops(int index, wchar_t * bstrMops) = 0;
virtual long __stdcall SetTypeIdldesc(IDLDESC &idldesc) = 0;
virtual long __stdcall LayOut(void) = 0;
public:
/* TObject.Create */ __fastcall ICreateTypeInfo(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ICreateTypeInfo(void) { }
};
class __declspec(delphiclass) ICreateTypeLib;
class __declspec(pascalimplementation) ICreateTypeLib : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall CreateTypeInfo(wchar_t * szName, long tkind, ICreateTypeInfo* &ictinfo) = 0;
virtual long __stdcall SetName(wchar_t * szName) = 0;
virtual long __stdcall SetVersion(Word wMajorVerNum, Word wMinorVerNum) = 0;
virtual long __stdcall SetGuid(const GUID &guid) = 0;
virtual long __stdcall SetDocString(wchar_t * szDoc) = 0;
virtual long __stdcall SetHelpFileName(wchar_t * szHelpFileName) = 0;
virtual long __stdcall SetHelpContext(long dwHelpContext) = 0;
virtual long __stdcall SetLcid(long lcid) = 0;
virtual long __stdcall SetLibFlags(int uLibFlags) = 0;
virtual long __stdcall SaveAllChanges(void) = 0;
public:
/* TObject.Create */ __fastcall ICreateTypeLib(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ICreateTypeLib(void) { }
};
class __declspec(delphiclass) IEnumVariant;
class __declspec(pascalimplementation) IEnumVariant : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, long &pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumVariant* &Enum) = 0;
public:
/* TObject.Create */ __fastcall IEnumVariant(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumVariant(void) { }
};
typedef long TDescKind;
typedef tagBINDPTR *PBindPtr;
class __declspec(delphiclass) ITypeComp;
class __declspec(pascalimplementation) ITypeComp : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Bind(wchar_t * szName, long lHashVal, Word wflags, ITypeInfo* &tinfo, long &
desckind, BINDPTR &bindptr) = 0;
virtual long __stdcall BindType(wchar_t * szName, long lHashVal, ITypeInfo* &tinfo, ITypeComp* &tcomp
) = 0;
public:
/* TObject.Create */ __fastcall ITypeComp(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ITypeComp(void) { }
};
typedef tagBINDPTR TBindPtr;
class __declspec(delphiclass) ITypeLib;
class __declspec(pascalimplementation) ITypeInfo : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetTypeAttr(PTypeAttr &ptypeattr) = 0;
virtual long __stdcall GetTypeComp(ITypeComp* &tcomp) = 0;
virtual long __stdcall GetFuncDesc(int index, PFuncDesc &pfuncdesc) = 0;
virtual long __stdcall GetVarDesc(int index, PVarDesc &pvardesc) = 0;
virtual long __stdcall GetNames(long memid, PBStrList rgbstrNames, int cMaxNames, int &cNames) = 0;
virtual long __stdcall GetRefTypeOfImplType(int index, long &reftype) = 0;
virtual long __stdcall GetImplTypeFlags(int index, int &impltypeflags) = 0;
virtual long __stdcall GetIDsOfNames(POleStrList rgpszNames, int cNames, PMemberIDList rgmemid) = 0
;
virtual long __stdcall Invoke(void * pvInstance, long memid, Word flags, DISPPARAMS &dispParams,
System::PVariant varResult, PExcepInfo excepInfo, Windows::PInteger argErr) = 0;
virtual long __stdcall GetDocumentation(long memid, PBStr pbstrName, PBStr pbstrDocString, Windows::PLongint
pdwHelpContext, PBStr pbstrHelpFile) = 0;
virtual long __stdcall GetDllEntry(long memid, long invkind, wchar_t * &bstrDllName, wchar_t * &bstrName
, Word &wOrdinal) = 0;
virtual long __stdcall GetRefTypeInfo(long reftype, ITypeInfo* &tinfo) = 0;
virtual long __stdcall AddressOfMember(long memid, long invkind, void * &ppv) = 0;
virtual long __stdcall CreateInstance(IUnknown* unkOuter, const GUID &iid, void *vObj) = 0;
virtual long __stdcall GetMops(long memid, wchar_t * &bstrMops) = 0;
virtual long __stdcall GetContainingTypeLib(ITypeLib* &tlib, int &pindex) = 0;
virtual void __stdcall ReleaseTypeAttr(PTypeAttr ptypeattr) = 0;
virtual void __stdcall ReleaseFuncDesc(PFuncDesc pfuncdesc) = 0;
virtual void __stdcall ReleaseVarDesc(PVarDesc pvardesc) = 0;
public:
/* TObject.Create */ __fastcall ITypeInfo(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ITypeInfo(void) { }
};
typedef long TSysKind;
typedef tagTLIBATTR *PTLibAttr;
typedef tagTLIBATTR TTLibAttr;
typedef ITypeInfo* TTypeInfoList[65536];
typedef TTypeInfoList *PTypeInfoList;
class __declspec(pascalimplementation) ITypeLib : public IUnknown
{
typedef IUnknown inherited;
public:
virtual int __stdcall GetTypeInfoCount(void) = 0;
virtual long __stdcall GetTypeInfo(int index, ITypeInfo* &tinfo) = 0;
virtual long __stdcall GetTypeInfoType(int index, long &tkind) = 0;
virtual long __stdcall GetTypeInfoOfGuid(const GUID &guid, ITypeInfo* &tinfo) = 0;
virtual long __stdcall GetLibAttr(PTLibAttr &ptlibattr) = 0;
virtual long __stdcall GetTypeComp(ITypeComp* &tcomp) = 0;
virtual long __stdcall GetDocumentation(int index, PBStr pbstrName, PBStr pbstrDocString, Windows::PLongint
pdwHelpContext, PBStr pbstrHelpFile) = 0;
virtual long __stdcall IsName(wchar_t * szNameBuf, long lHashVal, DWord &fName) = 0;
virtual long __stdcall FindName(wchar_t * szNameBuf, long lHashVal, PTypeInfoList rgptinfo, PMemberIDList
rgmemid, Word &pcFound) = 0;
virtual void __stdcall ReleaseTLibAttr(PTLibAttr ptlibattr) = 0;
public:
/* TObject.Create */ __fastcall ITypeLib(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ITypeLib(void) { }
};
class __declspec(delphiclass) IErrorInfo;
class __declspec(pascalimplementation) IErrorInfo : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetGUID(GUID &guid) = 0;
virtual long __stdcall GetSource(wchar_t * &bstrSource) = 0;
virtual long __stdcall GetDescription(wchar_t * &bstrDescription) = 0;
virtual long __stdcall GetHelpFile(wchar_t * &bstrHelpFile) = 0;
virtual long __stdcall GetHelpContext(long &dwHelpContext) = 0;
public:
/* TObject.Create */ __fastcall IErrorInfo(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IErrorInfo(void) { }
};
class __declspec(delphiclass) ICreateErrorInfo;
class __declspec(pascalimplementation) ICreateErrorInfo : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall SetGUID(const GUID &guid) = 0;
virtual long __stdcall SetSource(wchar_t * szSource) = 0;
virtual long __stdcall SetDescription(wchar_t * szDescription) = 0;
virtual long __stdcall SetHelpFile(wchar_t * szHelpFile) = 0;
virtual long __stdcall SetHelpContext(long dwHelpContext) = 0;
public:
/* TObject.Create */ __fastcall ICreateErrorInfo(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ICreateErrorInfo(void) { }
};
class __declspec(delphiclass) ISupportErrorInfo;
class __declspec(pascalimplementation) ISupportErrorInfo : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall InterfaceSupportsErrorInfo(const GUID &iid) = 0;
public:
/* TObject.Create */ __fastcall ISupportErrorInfo(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ISupportErrorInfo(void) { }
};
typedef tagPARAMDATA *PParamData;
typedef tagPARAMDATA TParamData;
typedef tagPARAMDATA TParamDataList[65536];
typedef TParamDataList *PParamDataList;
typedef tagMETHODDATA *PMethodData;
typedef tagMETHODDATA TMethodData;
typedef tagMETHODDATA TMethodDataList[65536];
typedef TMethodDataList *PMethodDataList;
typedef tagINTERFACEDATA *PInterfaceData;
typedef tagINTERFACEDATA TInterfaceData;
class __declspec(delphiclass) IOleAdviseHolder;
class __declspec(pascalimplementation) IOleAdviseHolder : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Advise(IAdviseSink* advise, long &dwConnection) = 0;
virtual long __stdcall Unadvise(long dwConnection) = 0;
virtual long __stdcall EnumAdvise(IEnumStatData* &enumAdvise) = 0;
virtual long __stdcall SendOnRename(IMoniker* mk) = 0;
virtual long __stdcall SendOnSave(void) = 0;
virtual long __stdcall SendOnClose(void) = 0;
public:
/* TObject.Create */ __fastcall IOleAdviseHolder(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleAdviseHolder(void) { }
};
class __declspec(delphiclass) IOleCache;
class __declspec(pascalimplementation) IOleCache : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Cache(FORMATETC &formatetc, long advf, long &dwConnection) = 0;
virtual long __stdcall Uncache(long dwConnection) = 0;
virtual long __stdcall EnumCache(IEnumStatData* &enumStatData) = 0;
virtual long __stdcall InitCache(IDataObject* dataObject) = 0;
virtual long __stdcall SetData(FORMATETC &formatetc, STGMEDIUM &medium, DWord fRelease) = 0;
public:
/* TObject.Create */ __fastcall IOleCache(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleCache(void) { }
};
class __declspec(delphiclass) IOleCache2;
class __declspec(pascalimplementation) IOleCache2 : public IOleCache
{
typedef IOleCache inherited;
public:
virtual long __stdcall UpdateCache(IDataObject* dataObject, long grfUpdf, void * pReserved) = 0;
virtual long __stdcall DiscardCache(long dwDiscardOptions) = 0;
public:
/* TObject.Create */ __fastcall IOleCache2(void) : Ole2::IOleCache() { }
/* TObject.Destroy */ __fastcall virtual ~IOleCache2(void) { }
};
class __declspec(delphiclass) IOleCacheControl;
class __declspec(pascalimplementation) IOleCacheControl : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall OnRun(IDataObject* dataObject) = 0;
virtual long __stdcall OnStop(void) = 0;
public:
/* TObject.Create */ __fastcall IOleCacheControl(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleCacheControl(void) { }
};
class __declspec(delphiclass) IParseDisplayName;
class __declspec(pascalimplementation) IParseDisplayName : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall ParseDisplayName(IBindCtx* bc, wchar_t * pszDisplayName, long &chEaten, IMoniker*
&mkOut) = 0;
public:
/* TObject.Create */ __fastcall IParseDisplayName(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IParseDisplayName(void) { }
};
class __declspec(delphiclass) IOleContainer;
class __declspec(pascalimplementation) IOleContainer : public IParseDisplayName
{
typedef IParseDisplayName inherited;
public:
virtual long __stdcall EnumObjects(long grfFlags, IEnumUnknown* &Enum) = 0;
virtual long __stdcall LockContainer(DWord fLock) = 0;
public:
/* TObject.Create */ __fastcall IOleContainer(void) : Ole2::IParseDisplayName() { }
/* TObject.Destroy */ __fastcall virtual ~IOleContainer(void) { }
};
class __declspec(delphiclass) IOleClientSite;
class __declspec(pascalimplementation) IOleClientSite : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall SaveObject(void) = 0;
virtual long __stdcall GetMoniker(long dwAssign, long dwWhichMoniker, IMoniker* &mk) = 0;
virtual long __stdcall GetContainer(IOleContainer* &container) = 0;
virtual long __stdcall ShowObject(void) = 0;
virtual long __stdcall OnShowWindow(DWord fShow) = 0;
virtual long __stdcall RequestNewObjectLayout(void) = 0;
public:
/* TObject.Create */ __fastcall IOleClientSite(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleClientSite(void) { }
};
class __declspec(delphiclass) IOleObject;
class __declspec(delphiclass) IEnumOleVerb;
class __declspec(pascalimplementation) IOleObject : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall SetClientSite(IOleClientSite* clientSite) = 0;
virtual long __stdcall GetClientSite(IOleClientSite* &clientSite) = 0;
virtual long __stdcall SetHostNames(wchar_t * szContainerApp, wchar_t * szContainerObj) = 0;
virtual long __stdcall Close(long dwSaveOption) = 0;
virtual long __stdcall SetMoniker(long dwWhichMoniker, IMoniker* mk) = 0;
virtual long __stdcall GetMoniker(long dwAssign, long dwWhichMoniker, IMoniker* &mk) = 0;
virtual long __stdcall InitFromData(IDataObject* dataObject, DWord fCreation, long dwReserved) = 0;
virtual long __stdcall GetClipboardData(long dwReserved, IDataObject* &dataObject) = 0;
virtual long __stdcall DoVerb(long iVerb, Windows::PMsg msg, IOleClientSite* activeSite, long lindex
, HWND hwndParent, const Windows::TRect &posRect) = 0;
virtual long __stdcall EnumVerbs(IEnumOleVerb* &enumOleVerb) = 0;
virtual long __stdcall Update(void) = 0;
virtual long __stdcall IsUpToDate(void) = 0;
virtual long __stdcall GetUserClassID(GUID &clsid) = 0;
virtual long __stdcall GetUserType(long dwFormOfType, wchar_t * &pszUserType) = 0;
virtual long __stdcall SetExtent(long dwDrawAspect, const POINT &size) = 0;
virtual long __stdcall GetExtent(long dwDrawAspect, POINT &size) = 0;
virtual long __stdcall Advise(IAdviseSink* advSink, long &dwConnection) = 0;
virtual long __stdcall Unadvise(long dwConnection) = 0;
virtual long __stdcall EnumAdvise(IEnumStatData* &enumAdvise) = 0;
virtual long __stdcall GetMiscStatus(long dwAspect, long &dwStatus) = 0;
virtual long __stdcall SetColorScheme(LOGPALETTE &logpal) = 0;
public:
/* TObject.Create */ __fastcall IOleObject(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleObject(void) { }
};
typedef tagOBJECTDESCRIPTOR *PObjectDescriptor;
typedef tagOBJECTDESCRIPTOR TObjectDescriptor;
typedef tagOBJECTDESCRIPTOR *PLinkSrcDescriptor;
typedef tagOBJECTDESCRIPTOR TLinkSrcDescriptor;
class __declspec(delphiclass) IOleWindow;
class __declspec(pascalimplementation) IOleWindow : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall GetWindow(HWND &wnd) = 0;
virtual long __stdcall ContextSensitiveHelp(DWord fEnterMode) = 0;
public:
/* TObject.Create */ __fastcall IOleWindow(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleWindow(void) { }
};
class __declspec(delphiclass) IOleLink;
class __declspec(pascalimplementation) IOleLink : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall SetUpdateOptions(long dwUpdateOpt) = 0;
virtual long __stdcall GetUpdateOptions(long &dwUpdateOpt) = 0;
virtual long __stdcall SetSourceMoniker(IMoniker* mk, const GUID &clsid) = 0;
virtual long __stdcall GetSourceMoniker(IMoniker* &mk) = 0;
virtual long __stdcall SetSourceDisplayName(wchar_t * pszDisplayName) = 0;
virtual long __stdcall GetSourceDisplayName(wchar_t * &pszDisplayName) = 0;
virtual long __stdcall BindToSource(long bindflags, IBindCtx* bc) = 0;
virtual long __stdcall BindIfRunning(void) = 0;
virtual long __stdcall GetBoundSource(IUnknown* &unk) = 0;
virtual long __stdcall UnbindSource(void) = 0;
virtual long __stdcall Update(IBindCtx* bc) = 0;
public:
/* TObject.Create */ __fastcall IOleLink(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleLink(void) { }
};
class __declspec(delphiclass) IOleItemContainer;
class __declspec(pascalimplementation) IOleItemContainer : public IOleContainer
{
typedef IOleContainer inherited;
public:
virtual long __stdcall GetObject(wchar_t * pszItem, long dwSpeedNeeded, IBindCtx* bc, const GUID &iid
, void *vObject) = 0;
virtual long __stdcall GetObjectStorage(wchar_t * pszItem, IBindCtx* bc, const GUID &iid, void *vStorage
) = 0;
virtual long __stdcall IsRunning(wchar_t * pszItem) = 0;
public:
/* TObject.Create */ __fastcall IOleItemContainer(void) : Ole2::IOleContainer() { }
/* TObject.Destroy */ __fastcall virtual ~IOleItemContainer(void) { }
};
class __declspec(delphiclass) IOleInPlaceUIWindow;
class __declspec(delphiclass) IOleInPlaceActiveObject;
class __declspec(pascalimplementation) IOleInPlaceUIWindow : public IOleWindow
{
typedef IOleWindow inherited;
public:
virtual long __stdcall GetBorder(Windows::TRect &rectBorder) = 0;
virtual long __stdcall RequestBorderSpace(const Windows::TRect &borderwidths) = 0;
virtual long __stdcall SetBorderSpace(Windows::PRect pborderwidths) = 0;
virtual long __stdcall SetActiveObject(IOleInPlaceActiveObject* activeObject, wchar_t * pszObjName)
= 0;
public:
/* TObject.Create */ __fastcall IOleInPlaceUIWindow(void) : Ole2::IOleWindow() { }
/* TObject.Destroy */ __fastcall virtual ~IOleInPlaceUIWindow(void) { }
};
class __declspec(pascalimplementation) IOleInPlaceActiveObject : public IOleWindow
{
typedef IOleWindow inherited;
public:
virtual long __stdcall TranslateAccelerator(MSG &msg) = 0;
virtual long __stdcall OnFrameWindowActivate(DWord fActivate) = 0;
virtual long __stdcall OnDocWindowActivate(DWord fActivate) = 0;
virtual long __stdcall ResizeBorder(const Windows::TRect &rcBorder, IOleInPlaceUIWindow* uiWindow,
DWord fFrameWindow) = 0;
virtual long __stdcall EnableModeless(DWord fEnable) = 0;
public:
/* TObject.Create */ __fastcall IOleInPlaceActiveObject(void) : Ole2::IOleWindow() { }
/* TObject.Destroy */ __fastcall virtual ~IOleInPlaceActiveObject(void) { }
};
typedef tagOIFI *POleInPlaceFrameInfo;
typedef tagOIFI TOleInPlaceFrameInfo;
typedef tagOleMenuGroupWidths *POleMenuGroupWidths;
typedef tagOleMenuGroupWidths TOleMenuGroupWidths;
class __declspec(delphiclass) IOleInPlaceFrame;
class __declspec(pascalimplementation) IOleInPlaceFrame : public IOleInPlaceUIWindow
{
typedef IOleInPlaceUIWindow inherited;
public:
virtual long __stdcall InsertMenus(HMENU hmenuShared, OLEMENUGROUPWIDTHS &menuWidths) = 0;
virtual long __stdcall SetMenu(HMENU hmenuShared, HMENU holemenu, HWND hwndActiveObject) = 0;
virtual long __stdcall RemoveMenus(HMENU hmenuShared) = 0;
virtual long __stdcall SetStatusText(wchar_t * pszStatusText) = 0;
virtual long __stdcall EnableModeless(DWord fEnable) = 0;
virtual long __stdcall TranslateAccelerator(MSG &msg, Word wID) = 0;
public:
/* TObject.Create */ __fastcall IOleInPlaceFrame(void) : Ole2::IOleInPlaceUIWindow() { }
/* TObject.Destroy */ __fastcall virtual ~IOleInPlaceFrame(void) { }
};
class __declspec(delphiclass) IOleInPlaceObject;
class __declspec(pascalimplementation) IOleInPlaceObject : public IOleWindow
{
typedef IOleWindow inherited;
public:
virtual long __stdcall InPlaceDeactivate(void) = 0;
virtual long __stdcall UIDeactivate(void) = 0;
virtual long __stdcall SetObjectRects(const Windows::TRect &rcPosRect, const Windows::TRect &rcClipRect
) = 0;
virtual long __stdcall ReactivateAndUndo(void) = 0;
public:
/* TObject.Create */ __fastcall IOleInPlaceObject(void) : Ole2::IOleWindow() { }
/* TObject.Destroy */ __fastcall virtual ~IOleInPlaceObject(void) { }
};
class __declspec(delphiclass) IOleInPlaceSite;
class __declspec(pascalimplementation) IOleInPlaceSite : public IOleWindow
{
typedef IOleWindow inherited;
public:
virtual long __stdcall CanInPlaceActivate(void) = 0;
virtual long __stdcall OnInPlaceActivate(void) = 0;
virtual long __stdcall OnUIActivate(void) = 0;
virtual long __stdcall GetWindowContext(IOleInPlaceFrame* &frame, IOleInPlaceUIWindow* &doc, Windows::TRect
&rcPosRect, Windows::TRect &rcClipRect, OLEINPLACEFRAMEINFO &frameInfo) = 0;
virtual long __stdcall Scroll(const POINT &scrollExtent) = 0;
virtual long __stdcall OnUIDeactivate(DWord fUndoable) = 0;
virtual long __stdcall OnInPlaceDeactivate(void) = 0;
virtual long __stdcall DiscardUndoState(void) = 0;
virtual long __stdcall DeactivateAndUndo(void) = 0;
virtual long __stdcall OnPosRectChange(const Windows::TRect &rcPosRect) = 0;
public:
/* TObject.Create */ __fastcall IOleInPlaceSite(void) : Ole2::IOleWindow() { }
/* TObject.Destroy */ __fastcall virtual ~IOleInPlaceSite(void) { }
};
typedef DWord __stdcall (*TContinueFunc)(long dwContinue);
class __declspec(delphiclass) IViewObject;
class __declspec(pascalimplementation) IViewObject : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Draw(long dwDrawAspect, long lindex, void * pvAspect, PDVTargetDevice ptd, HDC
hicTargetDev, HDC hdcDraw, Windows::PRect prcBounds, Windows::PRect prcWBounds, TContinueFunc fnContinue
, long dwContinue) = 0;
virtual long __stdcall GetColorSet(long dwDrawAspect, long lindex, void * pvAspect, PDVTargetDevice
ptd, HDC hicTargetDev, Windows::PLogPalette &colorSet) = 0;
virtual long __stdcall Freeze(long dwDrawAspect, long lindex, void * pvAspect, long &dwFreeze) = 0;
virtual long __stdcall Unfreeze(long dwFreeze) = 0;
virtual long __stdcall SetAdvise(long aspects, long advf, IAdviseSink* advSink) = 0;
virtual long __stdcall GetAdvise(Windows::PLongint pAspects, Windows::PLongint pAdvf, IAdviseSink*
&advSink) = 0;
public:
/* TObject.Create */ __fastcall IViewObject(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IViewObject(void) { }
};
class __declspec(delphiclass) IViewObject2;
class __declspec(pascalimplementation) IViewObject2 : public IViewObject
{
typedef IViewObject inherited;
public:
virtual long __stdcall GetExtent(long dwDrawAspect, long lindex, PDVTargetDevice ptd, POINT &size
) = 0;
public:
/* TObject.Create */ __fastcall IViewObject2(void) : Ole2::IViewObject() { }
/* TObject.Destroy */ __fastcall virtual ~IViewObject2(void) { }
};
class __declspec(delphiclass) IDropSource;
class __declspec(pascalimplementation) IDropSource : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall QueryContinueDrag(DWord fEscapePressed, long grfKeyState) = 0;
virtual long __stdcall GiveFeedback(long dwEffect) = 0;
public:
/* TObject.Create */ __fastcall IDropSource(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IDropSource(void) { }
};
class __declspec(delphiclass) IDropTarget;
class __declspec(pascalimplementation) IDropTarget : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall DragEnter(IDataObject* dataObj, long grfKeyState, const POINT &pt, long &
dwEffect) = 0;
virtual long __stdcall DragOver(long grfKeyState, const POINT &pt, long &dwEffect) = 0;
virtual long __stdcall DragLeave(void) = 0;
virtual long __stdcall Drop(IDataObject* dataObj, long grfKeyState, const POINT &pt, long &dwEffect
) = 0;
public:
/* TObject.Create */ __fastcall IDropTarget(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IDropTarget(void) { }
};
typedef tagOLEVERB *POleVerb;
typedef tagOLEVERB TOleVerb;
class __declspec(pascalimplementation) IEnumOleVerb : public IUnknown
{
typedef IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumOleVerb* &enm) = 0;
public:
/* TObject.Create */ __fastcall IEnumOleVerb(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumOleVerb(void) { }
};
typedef long __stdcall (*TDLLGetClassObject)(const _GUID &clsid, const _GUID &iid, void *pv);
typedef long __stdcall (*TDLLCanUnloadNow)(void);
//-- var, const, procedure ---------------------------------------------------
extern GUID GUID_NULL;
extern GUID IID_IUnknown;
extern GUID IID_IClassFactory;
extern GUID IID_IMarshal;
extern GUID IID_IMalloc;
extern GUID IID_IStdMarshalInfo;
extern GUID IID_IExternalConnection;
extern GUID IID_IEnumUnknown;
extern GUID IID_IBindCtx;
extern GUID IID_IEnumMoniker;
extern GUID IID_IRunnableObject;
extern GUID IID_IRunningObjectTable;
extern GUID IID_IPersist;
extern GUID IID_IPersistStream;
extern GUID IID_IMoniker;
extern GUID IID_IEnumString;
extern GUID IID_IStream;
extern GUID IID_IEnumStatStg;
extern GUID IID_IStorage;
extern GUID IID_IPersistFile;
extern GUID IID_IPersistStorage;
extern GUID IID_ILockBytes;
extern GUID IID_IEnumFormatEtc;
extern GUID IID_IEnumStatData;
extern GUID IID_IRootStorage;
extern GUID IID_IAdviseSink;
extern GUID IID_IAdviseSink2;
extern GUID IID_IDataObject;
extern GUID IID_IDataAdviseHolder;
extern GUID IID_IMessageFilter;
extern GUID IID_IRpcChannelBuffer;
extern GUID IID_IRpcProxyBuffer;
extern GUID IID_IRpcStubBuffer;
extern GUID IID_IPSFactoryBuffer;
extern GUID IID_ICreateTypeInfo;
extern GUID IID_ICreateTypeLib;
extern GUID IID_IDispatch;
extern GUID IID_IEnumVariant;
extern GUID IID_ITypeComp;
extern GUID IID_ITypeInfo;
extern GUID IID_ITypeLib;
extern GUID IID_IErrorInfo;
extern GUID IID_ICreateErrorInfo;
extern GUID IID_ISupportErrorInfo;
extern GUID IID_IOleAdviseHolder;
extern GUID IID_IOleCache;
extern GUID IID_IOleCache2;
extern GUID IID_IOleCacheControl;
extern GUID IID_IParseDisplayName;
extern GUID IID_IOleContainer;
extern GUID IID_IOleClientSite;
extern GUID IID_IOleObject;
extern GUID IID_IOleWindow;
extern GUID IID_IOleLink;
extern GUID IID_IOleItemContainer;
extern GUID IID_IOleInPlaceUIWindow;
extern GUID IID_IOleInPlaceActiveObject;
extern GUID IID_IOleInPlaceFrame;
extern GUID IID_IOleInPlaceObject;
extern GUID IID_IOleInPlaceSite;
extern GUID IID_IViewObject;
extern GUID IID_IViewObject2;
extern GUID IID_IDropSource;
extern GUID IID_IDropTarget;
extern GUID IID_IEnumOleVerb;
extern GUID IID_IRpcChannel;
extern GUID IID_IRpcStub;
extern GUID IID_IStubManager;
extern GUID IID_IRpcProxy;
extern GUID IID_IProxyManager;
extern GUID IID_IPSFactory;
extern GUID IID_IInternalMoniker;
extern GUID CLSID_StdMarshal;
extern GUID IID_IEnumGeneric;
extern GUID IID_IEnumHolder;
extern GUID IID_IEnumCallback;
extern GUID IID_IOleManager;
extern GUID IID_IOlePresObj;
extern GUID IID_IDebug;
extern GUID IID_IDebugStream;
extern bool __fastcall Succeeded(long Res);
extern bool __fastcall Failed(long Res);
extern int __fastcall ResultCode(long Res);
extern int __fastcall ResultFacility(long Res);
extern int __fastcall ResultSeverity(long Res);
} /* namespace Ole2 */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ole2;
#endif
//-- end unit ----------------------------------------------------------------
#endif // OLE2