2 * ole2.h - Declarations for OLE2
13 #define OLEIVERB_PRIMARY (0L)
14 #define OLEIVERB_SHOW (-1L)
15 #define OLEIVERB_OPEN (-2L)
16 #define OLEIVERB_HIDE (-3L)
17 #define OLEIVERB_UIACTIVATE (-4L)
18 #define OLEIVERB_INPLACEACTIVATE (-5L)
19 #define OLEIVERB_DISCARDUNDOSTATE (-6L)
20 #define OLEIVERB_PROPERTIES (-7L)
25 HRESULT WINAPI RegisterDragDrop16(HWND16,LPDROPTARGET);
26 HRESULT WINAPI RegisterDragDrop(HWND,LPDROPTARGET);
27 HRESULT WINAPI RevokeDragDrop16(HWND16);
28 HRESULT WINAPI RevokeDragDrop(HWND);
29 HRESULT WINAPI DoDragDrop16(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
30 HRESULT WINAPI DoDragDrop(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
31 HRESULT WINAPI OleLoadFromStream(IStream *pStm,REFIID iidInterface,void** ppvObj);
32 HRESULT WINAPI OleSaveToStream(IPersistStream *pPStm,IStream *pStm);
33 HOLEMENU WINAPI OleCreateMenuDescriptor(HMENU hmenuCombined,LPOLEMENUGROUPWIDTHS lpMenuWidths);
34 HRESULT WINAPI OleDestroyMenuDescriptor(HOLEMENU hmenuDescriptor);
35 HRESULT WINAPI OleSetMenuDescriptor(HOLEMENU hmenuDescriptor,HWND hwndFrame,HWND hwndActiveObject,LPOLEINPLACEFRAME lpFrame,LPOLEINPLACEACTIVEOBJECT lpActiveObject);
37 HRESULT WINAPI ReadClassStg(IStorage *pstg,CLSID *pclsid);
38 HRESULT WINAPI WriteClassStm(IStream *pStm,REFCLSID rclsid);
39 HRESULT WINAPI ReadClassStm(IStream *pStm,REFCLSID pclsid);
42 HRESULT WINAPI OleSave(LPPERSISTSTORAGE pPS, LPSTORAGE pStg, BOOL fSameAsLoad);
43 HRESULT WINAPI OleRegGetMiscStatus (REFCLSID clsid, DWORD dwAspect, DWORD* pdwStatus);
44 HRESULT WINAPI CreateStreamOnHGlobal (HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM* ppstm);
45 HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum);
46 BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject);
47 HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
48 DWORD renderopt, LPFORMATETC pFormatEtc,
49 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
51 HRESULT WINAPI OleSetContainedObject(LPUNKNOWN pUnknown, BOOL fContained);
52 HRESULT WINAPI OleQueryLinkFromData(IDataObject* pSrcDataObject);
53 HRESULT WINAPI OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject);
54 HRESULT WINAPI OleRun(LPUNKNOWN pUnknown);
55 HRESULT WINAPI OleGetClipboard(IDataObject** ppDataObj);
56 HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
57 DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
58 LPSTORAGE pStg, LPVOID* ppvObj);
59 HRESULT WINAPI ReadFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lplpszUserType);
60 HRESULT WINAPI OleLoad(LPSTORAGE pStg, REFIID riid, LPOLECLIENTSITE pClientSite, LPVOID* ppvObj);
61 HRESULT WINAPI GetHGlobalFromILockBytes(LPLOCKBYTES plkbyt, HGLOBAL* phglobal);
62 HRESULT WINAPI CreateILockBytesOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPLOCKBYTES* pplkbyt);
63 HRESULT WINAPI CreateDataAdviseHolder(LPDATAADVISEHOLDER* ppDAHolder);
64 HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel);
65 HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses);
66 HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
67 DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
68 HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
69 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
70 HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
71 LPSTORAGE pStg, LPVOID* ppvObj);
72 HRESULT WINAPI OleFlushClipboard();
73 HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert);
74 BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* lpwCmd);
75 HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
76 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
77 HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat, UINT uiFlags);
78 HRESULT WINAPI WriteFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType);
79 HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame, LPOLEINPLACEFRAMEINFO lpFrameInfo, LPMSG lpmsg);
80 HRESULT WINAPI OleCreateFromData(LPDATAOBJECT pSrcDataObj, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc,
81 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
83 #endif /* __WINE_OLE2_H */