Bug fixes.
[wine/multimedia.git] / include / ole2.h
blob3f9511f61be5ca3441046f14820ac7f14f15323a
1 /*
2 * ole2.h - Declarations for OLE2
3 */
5 #ifndef __WINE_OLE2_H
6 #define __WINE_OLE2_H
8 #include "windef.h"
9 #include "winerror.h"
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 #ifndef __WINE__
17 #include "oleidl.h"
18 #include "oleauto.h"
19 #endif
20 struct tagMSG;
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* defined(__cplusplus) */
26 #define OLEIVERB_PRIMARY (0L)
27 #define OLEIVERB_SHOW (-1L)
28 #define OLEIVERB_OPEN (-2L)
29 #define OLEIVERB_HIDE (-3L)
30 #define OLEIVERB_UIACTIVATE (-4L)
31 #define OLEIVERB_INPLACEACTIVATE (-5L)
32 #define OLEIVERB_DISCARDUNDOSTATE (-6L)
33 #define OLEIVERB_PROPERTIES (-7L)
36 * API declarations
38 HRESULT WINAPI RegisterDragDrop16(HWND16,LPDROPTARGET);
39 HRESULT WINAPI RegisterDragDrop(HWND,LPDROPTARGET);
40 HRESULT WINAPI RevokeDragDrop16(HWND16);
41 HRESULT WINAPI RevokeDragDrop(HWND);
42 HRESULT WINAPI DoDragDrop16(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
43 HRESULT WINAPI DoDragDrop(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
44 HRESULT WINAPI OleLoadFromStream(IStream *pStm,REFIID iidInterface,void** ppvObj);
45 HRESULT WINAPI OleSaveToStream(IPersistStream *pPStm,IStream *pStm);
46 HOLEMENU WINAPI OleCreateMenuDescriptor(HMENU hmenuCombined,LPOLEMENUGROUPWIDTHS lpMenuWidths);
47 HRESULT WINAPI OleDestroyMenuDescriptor(HOLEMENU hmenuDescriptor);
48 HRESULT WINAPI OleSetMenuDescriptor(HOLEMENU hmenuDescriptor,HWND hwndFrame,HWND hwndActiveObject,LPOLEINPLACEFRAME lpFrame,LPOLEINPLACEACTIVEOBJECT lpActiveObject);
50 HRESULT WINAPI ReadClassStg(IStorage *pstg,CLSID *pclsid);
51 HRESULT WINAPI WriteClassStm(IStream *pStm,REFCLSID rclsid);
52 HRESULT WINAPI ReadClassStm(IStream *pStm,CLSID *pclsid);
55 HRESULT WINAPI OleSave(LPPERSISTSTORAGE pPS, LPSTORAGE pStg, BOOL fSameAsLoad);
56 HRESULT WINAPI OleRegGetUserType(REFCLSID clsid,
57 DWORD dwFormOfType,
58 LPOLESTR* pszUserType);
59 HRESULT WINAPI OleRegGetMiscStatus (REFCLSID clsid, DWORD dwAspect, DWORD* pdwStatus);
60 HRESULT WINAPI OleRegEnumFormatEtc (REFCLSID clsid,
61 DWORD dwDirection,
62 LPENUMFORMATETC* ppenumFormatetc);
63 HRESULT WINAPI CreateStreamOnHGlobal (HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM* ppstm);
64 HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum);
65 BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject);
66 HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
67 DWORD renderopt, LPFORMATETC pFormatEtc,
68 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
69 LPVOID* ppvObj);
70 HRESULT WINAPI OleSetContainedObject(LPUNKNOWN pUnknown, BOOL fContained);
71 HRESULT WINAPI OleQueryLinkFromData(IDataObject* pSrcDataObject);
72 HRESULT WINAPI OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject);
73 HRESULT WINAPI OleRun(LPUNKNOWN pUnknown);
74 VOID WINAPI ReleaseStgMedium(LPSTGMEDIUM);
75 HRESULT WINAPI OleGetClipboard(IDataObject** ppDataObj);
76 HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
77 DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
78 LPSTORAGE pStg, LPVOID* ppvObj);
79 HRESULT WINAPI ReadFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lplpszUserType);
80 HRESULT WINAPI OleLoad(LPSTORAGE pStg, REFIID riid, LPOLECLIENTSITE pClientSite, LPVOID* ppvObj);
81 HRESULT WINAPI GetHGlobalFromILockBytes(LPLOCKBYTES plkbyt, HGLOBAL* phglobal);
82 HRESULT WINAPI CreateILockBytesOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPLOCKBYTES* pplkbyt);
83 HRESULT WINAPI CreateDataAdviseHolder(LPDATAADVISEHOLDER* ppDAHolder);
84 HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel);
85 HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses);
86 HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
87 DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
88 HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
89 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
90 HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
91 LPSTORAGE pStg, LPVOID* ppvObj);
92 HRESULT WINAPI OleFlushClipboard(void);
93 HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert);
94 BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, struct tagMSG* lpMsg, WORD* lpwCmd);
95 HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
96 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
97 HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat, UINT uiFlags);
98 HRESULT WINAPI WriteFmtUserTypeStg(LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType);
99 HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame, LPOLEINPLACEFRAMEINFO lpFrameInfo, struct tagMSG* lpmsg);
100 HRESULT WINAPI OleCreateFromData(LPDATAOBJECT pSrcDataObj, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc,
101 LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj);
102 HRESULT WINAPI OleCreateDefaultHandler(REFCLSID clsid,
103 LPUNKNOWN pUnkOuter,
104 REFIID riid,
105 LPVOID* ppvObj);
106 HRESULT WINAPI CreateOleAdviseHolder (LPOLEADVISEHOLDER *ppOAHolder);
108 #ifdef __cplusplus
109 } /* extern "C" */
110 #endif /* defined(__cplusplus) */
112 #endif /* __WINE_OLE2_H */