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,CLSID *pclsid);
42 HRESULT WINAPI OleSave(LPPERSISTSTORAGE pPS, LPSTORAGE pStg, BOOL fSameAsLoad);
43 HRESULT WINAPI OleRegGetUserType(REFCLSID clsid,
45 LPOLESTR* pszUserType);
46 HRESULT WINAPI OleRegGetMiscStatus (REFCLSID clsid, DWORD dwAspect, DWORD* pdwStatus);
47 HRESULT WINAPI OleRegEnumFormatEtc (REFCLSID clsid,
49 LPENUMFORMATETC* ppenumFormatetc);
50 HRESULT WINAPI CreateStreamOnHGlobal (HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM* ppstm);
51 HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum);
52 BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject);
53 HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
54 DWORD renderopt, LPFORMATETC pFormatEtc,
55 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
57 HRESULT WINAPI OleSetContainedObject(LPUNKNOWN pUnknown, BOOL fContained);
58 HRESULT WINAPI OleQueryLinkFromData(IDataObject* pSrcDataObject);
59 HRESULT WINAPI OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject);
60 HRESULT WINAPI OleRun(LPUNKNOWN pUnknown);
61 HRESULT WINAPI OleGetClipboard(IDataObject** ppDataObj);
62 HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
63 DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
64 LPSTORAGE pStg, LPVOID* ppvObj);
65 HRESULT WINAPI ReadFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lplpszUserType);
66 HRESULT WINAPI OleLoad(LPSTORAGE pStg, REFIID riid, LPOLECLIENTSITE pClientSite, LPVOID* ppvObj);
67 HRESULT WINAPI GetHGlobalFromILockBytes(LPLOCKBYTES plkbyt, HGLOBAL* phglobal);
68 HRESULT WINAPI CreateILockBytesOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPLOCKBYTES* pplkbyt);
69 HRESULT WINAPI CreateDataAdviseHolder(LPDATAADVISEHOLDER* ppDAHolder);
70 HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel);
71 HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses);
72 HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
73 DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
74 HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
75 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
76 HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
77 LPSTORAGE pStg, LPVOID* ppvObj);
78 HRESULT WINAPI OleFlushClipboard();
79 HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert);
80 BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* lpwCmd);
81 HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
82 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
83 HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat, UINT uiFlags);
84 HRESULT WINAPI WriteFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType);
85 HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame, LPOLEINPLACEFRAMEINFO lpFrameInfo, LPMSG lpmsg);
86 HRESULT WINAPI OleCreateFromData(LPDATAOBJECT pSrcDataObj, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc,
87 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
88 HRESULT WINAPI OleCreateDefaultHandler(REFCLSID clsid,
92 HRESULT WINAPI CreateOleAdviseHolder (LPOLEADVISEHOLDER *ppOAHolder);
94 #endif /* __WINE_OLE2_H */