2 * ole2.h - Declarations for OLE2
10 #include "wine/obj_storage.h"
11 #include "wine/obj_moniker.h"
12 #include "wine/obj_base.h"
13 #include "wine/obj_dragdrop.h"
14 #include "wine/obj_inplace.h"
15 #include "wine/obj_oleobj.h"
16 #include "wine/obj_oleview.h"
25 #endif /* defined(__cplusplus) */
27 #define OLEIVERB_PRIMARY (0L)
28 #define OLEIVERB_SHOW (-1L)
29 #define OLEIVERB_OPEN (-2L)
30 #define OLEIVERB_HIDE (-3L)
31 #define OLEIVERB_UIACTIVATE (-4L)
32 #define OLEIVERB_INPLACEACTIVATE (-5L)
33 #define OLEIVERB_DISCARDUNDOSTATE (-6L)
34 #define OLEIVERB_PROPERTIES (-7L)
39 HRESULT WINAPI
RegisterDragDrop16(HWND16
,LPDROPTARGET
);
40 HRESULT WINAPI
RegisterDragDrop(HWND
,LPDROPTARGET
);
41 HRESULT WINAPI
RevokeDragDrop16(HWND16
);
42 HRESULT WINAPI
RevokeDragDrop(HWND
);
43 HRESULT WINAPI
DoDragDrop16(LPDATAOBJECT
,LPDROPSOURCE
,DWORD
,DWORD
*);
44 HRESULT WINAPI
DoDragDrop(LPDATAOBJECT
,LPDROPSOURCE
,DWORD
,DWORD
*);
45 HRESULT WINAPI
OleLoadFromStream(IStream
*pStm
,REFIID iidInterface
,void** ppvObj
);
46 HRESULT WINAPI
OleSaveToStream(IPersistStream
*pPStm
,IStream
*pStm
);
47 HOLEMENU WINAPI
OleCreateMenuDescriptor(HMENU hmenuCombined
,LPOLEMENUGROUPWIDTHS lpMenuWidths
);
48 HRESULT WINAPI
OleDestroyMenuDescriptor(HOLEMENU hmenuDescriptor
);
49 HRESULT WINAPI
OleSetMenuDescriptor(HOLEMENU hmenuDescriptor
,HWND hwndFrame
,HWND hwndActiveObject
,LPOLEINPLACEFRAME lpFrame
,LPOLEINPLACEACTIVEOBJECT lpActiveObject
);
51 HRESULT WINAPI
ReadClassStg(IStorage
*pstg
,CLSID
*pclsid
);
52 HRESULT WINAPI
WriteClassStm(IStream
*pStm
,REFCLSID rclsid
);
53 HRESULT WINAPI
ReadClassStm(IStream
*pStm
,CLSID
*pclsid
);
56 HRESULT WINAPI
OleSave(LPPERSISTSTORAGE pPS
, LPSTORAGE pStg
, BOOL fSameAsLoad
);
57 HRESULT WINAPI
OleRegGetUserType(REFCLSID clsid
,
59 LPOLESTR
* pszUserType
);
60 HRESULT WINAPI
OleRegGetMiscStatus (REFCLSID clsid
, DWORD dwAspect
, DWORD
* pdwStatus
);
61 HRESULT WINAPI
OleRegEnumFormatEtc (REFCLSID clsid
,
63 LPENUMFORMATETC
* ppenumFormatetc
);
64 HRESULT WINAPI
CreateStreamOnHGlobal (HGLOBAL hGlobal
, BOOL fDeleteOnRelease
, LPSTREAM
* ppstm
);
65 HRESULT WINAPI
OleRegEnumVerbs (REFCLSID clsid
, LPENUMOLEVERB
* ppenum
);
66 BOOL WINAPI
OleIsRunning(LPOLEOBJECT pObject
);
67 HRESULT WINAPI
OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj
, REFIID riid
,
68 DWORD renderopt
, LPFORMATETC pFormatEtc
,
69 LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
,
71 HRESULT WINAPI
OleSetContainedObject(LPUNKNOWN pUnknown
, BOOL fContained
);
72 HRESULT WINAPI
OleQueryLinkFromData(IDataObject
* pSrcDataObject
);
73 HRESULT WINAPI
OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject
);
74 HRESULT WINAPI
OleRun(LPUNKNOWN pUnknown
);
75 VOID WINAPI
ReleaseStgMedium(LPSTGMEDIUM
);
76 HRESULT WINAPI
OleGetClipboard(IDataObject
** ppDataObj
);
77 HRESULT WINAPI
OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj
, REFIID iid
,
78 DWORD renderopt
, LPFORMATETC pFormatEtc
, LPOLECLIENTSITE pClientSite
,
79 LPSTORAGE pStg
, LPVOID
* ppvObj
);
80 HRESULT WINAPI
ReadFmtUserTypeStg(LPSTORAGE pstg
, CLIPFORMAT
* pcf
, LPOLESTR
* lplpszUserType
);
81 HRESULT WINAPI
OleLoad(LPSTORAGE pStg
, REFIID riid
, LPOLECLIENTSITE pClientSite
, LPVOID
* ppvObj
);
82 HRESULT WINAPI
GetHGlobalFromILockBytes(LPLOCKBYTES plkbyt
, HGLOBAL
* phglobal
);
83 HRESULT WINAPI
CreateILockBytesOnHGlobal(HGLOBAL hGlobal
, BOOL fDeleteOnRelease
, LPLOCKBYTES
* pplkbyt
);
84 HRESULT WINAPI
CreateDataAdviseHolder(LPDATAADVISEHOLDER
* ppDAHolder
);
85 HGLOBAL WINAPI
OleGetIconOfClass(REFCLSID rclsid
, LPOLESTR lpszLabel
, BOOL fUseTypeAsLabel
);
86 HRESULT WINAPI
OleLockRunning(LPUNKNOWN pUnknown
, BOOL fLock
, BOOL fLastUnlockCloses
);
87 HRESULT WINAPI
OleCreateFromFile(REFCLSID rclsid
, LPCOLESTR lpszFileName
, REFIID riid
,
88 DWORD renderopt
, LPFORMATETC lpFormatEtc
, LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
, LPVOID
* ppvObj
);
89 HRESULT WINAPI
OleCreateLink(LPMONIKER pmkLinkSrc
, REFIID riid
, DWORD renderopt
, LPFORMATETC lpFormatEtc
,
90 LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
, LPVOID
* ppvObj
);
91 HRESULT WINAPI
OleCreate(REFCLSID rclsid
, REFIID riid
, DWORD renderopt
, LPFORMATETC pFormatEtc
, LPOLECLIENTSITE pClientSite
,
92 LPSTORAGE pStg
, LPVOID
* ppvObj
);
93 HRESULT WINAPI
OleFlushClipboard(void);
94 HRESULT WINAPI
SetConvertStg(LPSTORAGE pStg
, BOOL fConvert
);
95 BOOL WINAPI
IsAccelerator(HACCEL hAccel
, int cAccelEntries
, struct tagMSG
* lpMsg
, WORD
* lpwCmd
);
96 HRESULT WINAPI
OleCreateLinkToFile(LPCOLESTR lpszFileName
, REFIID riid
, DWORD renderopt
, LPFORMATETC lpFormatEtc
,
97 LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
, LPVOID
* ppvObj
);
98 HRESULT WINAPI
OleDuplicateData(HANDLE hSrc
, CLIPFORMAT cfFormat
, UINT uiFlags
);
99 HRESULT WINAPI
WriteFmtUserTypeStg(LPSTORAGE pstg
, CLIPFORMAT cf
, LPOLESTR lpszUserType
);
100 HRESULT WINAPI
OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame
, LPOLEINPLACEFRAMEINFO lpFrameInfo
, struct tagMSG
* lpmsg
);
101 HRESULT WINAPI
OleCreateFromData(LPDATAOBJECT pSrcDataObj
, REFIID riid
, DWORD renderopt
, LPFORMATETC pFormatEtc
,
102 LPOLECLIENTSITE pClientSite
, LPSTORAGE pStg
, LPVOID
* ppvObj
);
103 HRESULT WINAPI
OleCreateDefaultHandler(REFCLSID clsid
,
107 HRESULT WINAPI
CreateOleAdviseHolder (LPOLEADVISEHOLDER
*ppOAHolder
);
108 HRESULT WINAPI
OleInitialize(LPVOID pvReserved
);
109 void WINAPI
OleUninitialize(void);
110 BOOL WINAPI
IsValidInterface(LPUNKNOWN punk
);
113 * OLE version conversion declarations
117 typedef struct _OLESTREAM
* LPOLESTREAM
;
118 typedef struct _OLESTREAMVTBL
{
119 DWORD (CALLBACK
*Get
)(LPOLESTREAM
,LPSTR
,DWORD
);
120 DWORD (CALLBACK
*Put
)(LPOLESTREAM
,LPSTR
,DWORD
);
122 typedef OLESTREAMVTBL
* LPOLESTREAMVTBL
;
123 typedef struct _OLESTREAM
{
124 LPOLESTREAMVTBL lpstbl
;
127 HRESULT WINAPI
OleConvertOLESTREAMToIStorage( LPOLESTREAM lpolestream
, LPSTORAGE pstg
, const DVTARGETDEVICE
* ptd
);
128 HRESULT WINAPI
OleConvertIStorageToOLESTREAM( LPSTORAGE pstg
, LPOLESTREAM lpolestream
);
132 #endif /* defined(__cplusplus) */
134 #endif /* __WINE_OLE2_H */