source: trunk/include/win/ole2.h@ 6811

Last change on this file since 6811 was 6811, checked in by sandervl, 24 years ago

header updates

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