source: Daodan/MinGW/include/ole2.h@ 1054

Last change on this file since 1054 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 4.9 KB
Line 
1#ifndef _OLE2_H
2#define _OLE2_H
3#if __GNUC__ >=3
4#pragma GCC system_header
5#endif
6
7#pragma pack(push,8)
8#include <winerror.h>
9#include <objbase.h>
10#include <olectlid.h>
11#include <oleauto.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16#define E_DRAW VIEW_E_DRAW
17#define DATA_E_FORMATETC DV_E_FORMATETC
18#define OLEIVERB_PRIMARY (0L)
19#define OLEIVERB_SHOW (-1L)
20#define OLEIVERB_OPEN (-2L)
21#define OLEIVERB_HIDE (-3L)
22#define OLEIVERB_UIACTIVATE (-4L)
23#define OLEIVERB_INPLACEACTIVATE (-5L)
24#define OLEIVERB_DISCARDUNDOSTATE (-6L)
25#define EMBDHLP_INPROC_HANDLER 0x0000L
26#define EMBDHLP_INPROC_SERVER 0x0001L
27#define EMBDHLP_CREATENOW 0x00000000L
28#define EMBDHLP_DELAYCREATE 0x00010000L
29#include <oleidl.h>
30
31typedef struct _OLESTREAMVTBL *LPOLESTREAMVTBL;
32typedef struct _OLESTREAM {
33 LPOLESTREAMVTBL lpstbl;
34} OLESTREAM,*LPOLESTREAM;
35typedef struct _OLESTREAMVTBL {
36 DWORD (CALLBACK* Get)(LPOLESTREAM,void*,DWORD);
37 DWORD (CALLBACK* Put)(LPOLESTREAM,const void*,DWORD);
38} OLESTREAMVTBL;
39
40WINOLEAPI CreateDataAdviseHolder(LPDATAADVISEHOLDER*);
41WINOLEAPI_(DWORD) OleBuildVersion(void);
42WINOLEAPI ReadClassStg(LPSTORAGE,CLSID*);
43WINOLEAPI WriteClassStg(LPSTORAGE,REFCLSID);
44WINOLEAPI ReadClassStm(LPSTREAM,CLSID*);
45WINOLEAPI WriteClassStm(LPSTREAM,REFCLSID);
46WINOLEAPI WriteFmtUserTypeStg(LPSTORAGE,CLIPFORMAT,LPOLESTR);
47WINOLEAPI ReadFmtUserTypeStg(LPSTORAGE,CLIPFORMAT*,LPOLESTR*);
48WINOLEAPI OleInitialize(PVOID);
49WINOLEAPI_(void) OleUninitialize(void);
50WINOLEAPI OleQueryLinkFromData(LPDATAOBJECT);
51WINOLEAPI OleQueryCreateFromData(LPDATAOBJECT);
52WINOLEAPI OleCreate(REFCLSID,REFIID,DWORD,LPFORMATETC,LPOLECLIENTSITE,LPSTORAGE,PVOID*);
53WINOLEAPI OleCreateFromData(LPDATAOBJECT,REFIID,DWORD,LPFORMATETC,LPOLECLIENTSITE,LPSTORAGE,PVOID*);
54WINOLEAPI OleCreateLinkFromData(LPDATAOBJECT,REFIID,DWORD,LPFORMATETC,LPOLECLIENTSITE,LPSTORAGE,PVOID*);
55WINOLEAPI OleCreateStaticFromData(LPDATAOBJECT,REFIID,DWORD,LPFORMATETC,LPOLECLIENTSITE,LPSTORAGE,PVOID*);
56WINOLEAPI OleCreateLink(LPMONIKER,REFIID,DWORD,LPFORMATETC,LPOLECLIENTSITE,LPSTORAGE,PVOID*);
57WINOLEAPI OleCreateLinkToFile(LPCOLESTR,REFIID,DWORD,LPFORMATETC,LPOLECLIENTSITE,LPSTORAGE,PVOID*);
58WINOLEAPI OleCreateFromFile(REFCLSID,LPCOLESTR,REFIID,DWORD,LPFORMATETC,LPOLECLIENTSITE,LPSTORAGE,PVOID*);
59WINOLEAPI OleLoad(LPSTORAGE,REFIID,LPOLECLIENTSITE,PVOID*);
60WINOLEAPI OleSave(LPPERSISTSTORAGE,LPSTORAGE,BOOL);
61WINOLEAPI OleLoadFromStream(LPSTREAM,REFIID,PVOID*);
62WINOLEAPI OleSaveToStream(LPPERSISTSTREAM,LPSTREAM);
63WINOLEAPI OleSetContainedObject(LPUNKNOWN,BOOL);
64WINOLEAPI OleNoteObjectVisible(LPUNKNOWN,BOOL);
65WINOLEAPI RegisterDragDrop(HWND,LPDROPTARGET);
66WINOLEAPI RevokeDragDrop(HWND);
67WINOLEAPI DoDragDrop(LPDATAOBJECT,LPDROPSOURCE,DWORD,PDWORD);
68WINOLEAPI OleSetClipboard(LPDATAOBJECT);
69WINOLEAPI OleGetClipboard(LPDATAOBJECT*);
70WINOLEAPI OleFlushClipboard(void);
71WINOLEAPI OleIsCurrentClipboard(LPDATAOBJECT);
72WINOLEAPI_(HOLEMENU) OleCreateMenuDescriptor(HMENU,LPOLEMENUGROUPWIDTHS);
73WINOLEAPI OleSetMenuDescriptor(HOLEMENU,HWND,HWND,LPOLEINPLACEFRAME,LPOLEINPLACEACTIVEOBJECT);
74WINOLEAPI OleDestroyMenuDescriptor(HOLEMENU);
75WINOLEAPI OleTranslateAccelerator(LPOLEINPLACEFRAME,LPOLEINPLACEFRAMEINFO,LPMSG);
76WINOLEAPI_(HANDLE) OleDuplicateData(HANDLE,CLIPFORMAT,UINT);
77WINOLEAPI OleDraw(LPUNKNOWN,DWORD,HDC,LPCRECT);
78WINOLEAPI OleRun(LPUNKNOWN);
79WINOLEAPI_(BOOL) OleIsRunning(LPOLEOBJECT);
80WINOLEAPI OleLockRunning(LPUNKNOWN,BOOL,BOOL);
81WINOLEAPI_(void) ReleaseStgMedium(LPSTGMEDIUM);
82WINOLEAPI CreateOleAdviseHolder(LPOLEADVISEHOLDER*);
83WINOLEAPI OleCreateDefaultHandler(REFCLSID,LPUNKNOWN,REFIID,PVOID*);
84WINOLEAPI OleCreateEmbeddingHelper(REFCLSID,LPUNKNOWN,DWORD,LPCLASSFACTORY,REFIID,PVOID*);
85WINOLEAPI_(BOOL) IsAccelerator(HACCEL,int,LPMSG,WORD*);
86WINOLEAPI_(HGLOBAL) OleGetIconOfFile(LPOLESTR,BOOL);
87WINOLEAPI_(HGLOBAL) OleGetIconOfClass(REFCLSID,LPOLESTR,BOOL);
88WINOLEAPI_(HGLOBAL) OleMetafilePictFromIconAndLabel(HICON,LPOLESTR,LPOLESTR,UINT);
89WINOLEAPI OleRegGetUserType(REFCLSID,DWORD,LPOLESTR*);
90WINOLEAPI OleRegGetMiscStatus(REFCLSID,DWORD,DWORD*);
91WINOLEAPI OleRegEnumFormatEtc (REFCLSID,DWORD,LPENUMFORMATETC*);
92WINOLEAPI OleRegEnumVerbs (REFCLSID,LPENUMOLEVERB*);
93WINOLEAPI OleConvertOLESTREAMToIStorage(LPOLESTREAM,LPSTORAGE,const DVTARGETDEVICE*);
94WINOLEAPI OleConvertIStorageToOLESTREAM(LPSTORAGE,LPOLESTREAM);
95WINOLEAPI GetHGlobalFromILockBytes(LPLOCKBYTES,HGLOBAL*);
96WINOLEAPI CreateILockBytesOnHGlobal(HGLOBAL,BOOL,LPLOCKBYTES*);
97WINOLEAPI GetHGlobalFromStream(LPSTREAM,HGLOBAL*);
98WINOLEAPI CreateStreamOnHGlobal(HGLOBAL,BOOL,LPSTREAM*);
99WINOLEAPI OleDoAutoConvert(LPSTORAGE,LPCLSID);
100WINOLEAPI OleGetAutoConvert(REFCLSID,LPCLSID);
101WINOLEAPI OleSetAutoConvert(REFCLSID,REFCLSID);
102WINOLEAPI GetConvertStg(LPSTORAGE);
103WINOLEAPI SetConvertStg(LPSTORAGE,BOOL);
104WINOLEAPI OleConvertIStorageToOLESTREAMEx(LPSTORAGE,CLIPFORMAT,LONG,LONG,DWORD,LPSTGMEDIUM,LPOLESTREAM);
105WINOLEAPI OleConvertOLESTREAMToIStorageEx(LPOLESTREAM,LPSTORAGE,CLIPFORMAT*,LONG*,LONG*,DWORD*,LPSTGMEDIUM);
106#ifdef __cplusplus
107}
108#endif
109#pragma pack(pop)
110#endif
Note: See TracBrowser for help on using the repository browser.