4 #pragma GCC system_header
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
31 typedef struct _OLESTREAMVTBL
*LPOLESTREAMVTBL
;
32 typedef struct _OLESTREAM
{
33 LPOLESTREAMVTBL lpstbl
;
34 } OLESTREAM
,*LPOLESTREAM
;
35 typedef struct _OLESTREAMVTBL
{
36 DWORD (CALLBACK
* Get
)(LPOLESTREAM
,void*,DWORD
);
37 DWORD (CALLBACK
* Put
)(LPOLESTREAM
,const void*,DWORD
);
40 WINOLEAPI
CreateDataAdviseHolder(LPDATAADVISEHOLDER
*);
41 WINOLEAPI_(DWORD
) OleBuildVersion(void);
42 WINOLEAPI
ReadClassStg(LPSTORAGE
,CLSID
*);
43 WINOLEAPI
WriteClassStg(LPSTORAGE
,REFCLSID
);
44 WINOLEAPI
ReadClassStm(LPSTREAM
,CLSID
*);
45 WINOLEAPI
WriteClassStm(LPSTREAM
,REFCLSID
);
46 WINOLEAPI
WriteFmtUserTypeStg(LPSTORAGE
,CLIPFORMAT
,LPOLESTR
);
47 WINOLEAPI
ReadFmtUserTypeStg(LPSTORAGE
,CLIPFORMAT
*,LPOLESTR
*);
48 WINOLEAPI
OleInitialize(PVOID
);
49 WINOLEAPI_(void) OleUninitialize(void);
50 WINOLEAPI
OleQueryLinkFromData(LPDATAOBJECT
);
51 WINOLEAPI
OleQueryCreateFromData(LPDATAOBJECT
);
52 WINOLEAPI
OleCreate(REFCLSID
,REFIID
,DWORD
,LPFORMATETC
,LPOLECLIENTSITE
,LPSTORAGE
,PVOID
*);
53 WINOLEAPI
OleCreateFromData(LPDATAOBJECT
,REFIID
,DWORD
,LPFORMATETC
,LPOLECLIENTSITE
,LPSTORAGE
,PVOID
*);
54 WINOLEAPI
OleCreateLinkFromData(LPDATAOBJECT
,REFIID
,DWORD
,LPFORMATETC
,LPOLECLIENTSITE
,LPSTORAGE
,PVOID
*);
55 WINOLEAPI
OleCreateStaticFromData(LPDATAOBJECT
,REFIID
,DWORD
,LPFORMATETC
,LPOLECLIENTSITE
,LPSTORAGE
,PVOID
*);
56 WINOLEAPI
OleCreateLink(LPMONIKER
,REFIID
,DWORD
,LPFORMATETC
,LPOLECLIENTSITE
,LPSTORAGE
,PVOID
*);
57 WINOLEAPI
OleCreateLinkToFile(LPCOLESTR
,REFIID
,DWORD
,LPFORMATETC
,LPOLECLIENTSITE
,LPSTORAGE
,PVOID
*);
58 WINOLEAPI
OleCreateFromFile(REFCLSID
,LPCOLESTR
,REFIID
,DWORD
,LPFORMATETC
,LPOLECLIENTSITE
,LPSTORAGE
,PVOID
*);
59 WINOLEAPI
OleLoad(LPSTORAGE
,REFIID
,LPOLECLIENTSITE
,PVOID
*);
60 WINOLEAPI
OleSave(LPPERSISTSTORAGE
,LPSTORAGE
,BOOL
);
61 WINOLEAPI
OleLoadFromStream(LPSTREAM
,REFIID
,PVOID
*);
62 WINOLEAPI
OleSaveToStream(LPPERSISTSTREAM
,LPSTREAM
);
63 WINOLEAPI
OleSetContainedObject(LPUNKNOWN
,BOOL
);
64 WINOLEAPI
OleNoteObjectVisible(LPUNKNOWN
,BOOL
);
65 WINOLEAPI
RegisterDragDrop(HWND
,LPDROPTARGET
);
66 WINOLEAPI
RevokeDragDrop(HWND
);
67 WINOLEAPI
DoDragDrop(LPDATAOBJECT
,LPDROPSOURCE
,DWORD
,PDWORD
);
68 WINOLEAPI
OleSetClipboard(LPDATAOBJECT
);
69 WINOLEAPI
OleGetClipboard(LPDATAOBJECT
*);
70 WINOLEAPI
OleFlushClipboard(void);
71 WINOLEAPI
OleIsCurrentClipboard(LPDATAOBJECT
);
72 WINOLEAPI_(HOLEMENU
) OleCreateMenuDescriptor(HMENU
,LPOLEMENUGROUPWIDTHS
);
73 WINOLEAPI
OleSetMenuDescriptor(HOLEMENU
,HWND
,HWND
,LPOLEINPLACEFRAME
,LPOLEINPLACEACTIVEOBJECT
);
74 WINOLEAPI
OleDestroyMenuDescriptor(HOLEMENU
);
75 WINOLEAPI
OleTranslateAccelerator(LPOLEINPLACEFRAME
,LPOLEINPLACEFRAMEINFO
,LPMSG
);
76 WINOLEAPI_(HANDLE
) OleDuplicateData(HANDLE
,CLIPFORMAT
,UINT
);
77 WINOLEAPI
OleDraw(LPUNKNOWN
,DWORD
,HDC
,LPCRECT
);
78 WINOLEAPI
OleRun(LPUNKNOWN
);
79 WINOLEAPI_(BOOL
) OleIsRunning(LPOLEOBJECT
);
80 WINOLEAPI
OleLockRunning(LPUNKNOWN
,BOOL
,BOOL
);
81 WINOLEAPI_(void) ReleaseStgMedium(LPSTGMEDIUM
);
82 WINOLEAPI
CreateOleAdviseHolder(LPOLEADVISEHOLDER
*);
83 WINOLEAPI
OleCreateDefaultHandler(REFCLSID
,LPUNKNOWN
,REFIID
,PVOID
*);
84 WINOLEAPI
OleCreateEmbeddingHelper(REFCLSID
,LPUNKNOWN
,DWORD
,LPCLASSFACTORY
,REFIID
,PVOID
*);
85 WINOLEAPI_(BOOL
) IsAccelerator(HACCEL
,int,LPMSG
,WORD
*);
86 WINOLEAPI_(HGLOBAL
) OleGetIconOfFile(LPOLESTR
,BOOL
);
87 WINOLEAPI_(HGLOBAL
) OleGetIconOfClass(REFCLSID
,LPOLESTR
,BOOL
);
88 WINOLEAPI_(HGLOBAL
) OleMetafilePictFromIconAndLabel(HICON
,LPOLESTR
,LPOLESTR
,UINT
);
89 WINOLEAPI
OleRegGetUserType(REFCLSID
,DWORD
,LPOLESTR
*);
90 WINOLEAPI
OleRegGetMiscStatus(REFCLSID
,DWORD
,DWORD
*);
91 WINOLEAPI
OleRegEnumFormatEtc (REFCLSID
,DWORD
,LPENUMFORMATETC
*);
92 WINOLEAPI
OleRegEnumVerbs (REFCLSID
,LPENUMOLEVERB
*);
93 WINOLEAPI
OleConvertOLESTREAMToIStorage(LPOLESTREAM
,LPSTORAGE
,const DVTARGETDEVICE
*);
94 WINOLEAPI
OleConvertIStorageToOLESTREAM(LPSTORAGE
,LPOLESTREAM
);
95 WINOLEAPI
GetHGlobalFromILockBytes(LPLOCKBYTES
,HGLOBAL
*);
96 WINOLEAPI
CreateILockBytesOnHGlobal(HGLOBAL
,BOOL
,LPLOCKBYTES
*);
97 WINOLEAPI
GetHGlobalFromStream(LPSTREAM
,HGLOBAL
*);
98 WINOLEAPI
CreateStreamOnHGlobal(HGLOBAL
,BOOL
,LPSTREAM
*);
99 WINOLEAPI
OleDoAutoConvert(LPSTORAGE
,LPCLSID
);
100 WINOLEAPI
OleGetAutoConvert(REFCLSID
,LPCLSID
);
101 WINOLEAPI
OleSetAutoConvert(REFCLSID
,REFCLSID
);
102 WINOLEAPI
GetConvertStg(LPSTORAGE
);
103 WINOLEAPI
SetConvertStg(LPSTORAGE
,BOOL
);
104 WINOLEAPI
OleConvertIStorageToOLESTREAMEx(LPSTORAGE
,CLIPFORMAT
,LONG
,LONG
,DWORD
,LPSTGMEDIUM
,LPOLESTREAM
);
105 WINOLEAPI
OleConvertOLESTREAMToIStorageEx(LPOLESTREAM
,LPSTORAGE
,CLIPFORMAT
*,LONG
*,LONG
*,DWORD
*,LPSTGMEDIUM
);