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