source: trunk/Include/ole2.ab@ 478

Last change on this file since 478 was 478, checked in by イグトランス (egtra), 16 years ago

現在向けに修正(参照型のポインタの排除など)

File size: 16.3 KB
RevLine 
[1]1#ifndef __OLE2_AB__
2#define __OLE2_AB__
3
4' 暫定措置
5
[211]6#require <api_winerror.sbp>
[1]7
[211]8#require <objbase.sbp>
9#require <oleauto.ab>
[478]10#ifdef __UNDEFINED '#165が解決するまでの暫定
[1]11' View OBJECT Error Codes
12
13Const E_DRAW = VIEW_E_DRAW
14
15' IDataObject Error Codes
16Const DATA_E_FORMATETC = DV_E_FORMATETC
17
18' Common stuff gleamed from OLE.2,
19
20/* verbs */
21Const OLEIVERB_PRIMARY = (0)
22Const OLEIVERB_SHOW = (-1)
23Const OLEIVERB_OPEN = (-2)
24Const OLEIVERB_HIDE = (-3)
25Const OLEIVERB_UIACTIVATE = (-4)
26Const OLEIVERB_INPLACEACTIVATE = (-5)
27Const OLEIVERB_DISCARDUNDOSTATE = (-6)
28
29' for OleCreateEmbeddingHelper flags; roles in low word; options in high word
30Const EMBDHLP_INPROC_HANDLER = &h0000
31Const EMBDHLP_INPROC_SERVER = &h0001
32Const EMBDHLP_CREATENOW = &h00000000
33Const EMBDHLP_DELAYCREATE = &h00010000
34
35/* extended create function flags */
36Const OLECREATE_LEAVERUNNING = &h00000001
37
38/* pull in the MIDL generated header */
39
[223]40#require <oleidl.ab>
[1]41
42/****** DV APIs ***********************************************************/
43
44/*
45#if !defined(ISOLATION_AWARE_ENABLED) \
46 || !ISOLATION_AWARE_ENABLED \
47 || !defined(_OBJBASE_H_) \
48 || !defined(CreateDataAdviseHolder)
49WINOLEAPI CreateDataAdviseHolder(OUT LPDATAADVISEHOLDER FAR* ppDAHolder);
50#endif
51*/
52
53/****** OLE API Prototypes ************************************************/
54
55Declare Function OleBuildVersion Lib "ole32.dll" () As DWord
56
57/* helper functions */
[478]58Declare Function ReadClassStg Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage, /*OUT*/ ByRef clsid As CLSID) As HRESULT
59Declare Function WriteClassStg Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage, /*IN*/ ByRef clsid As CLSID) As HRESULT
60Declare Function ReadClassStm Lib "ole32.dll" (/*IN*/ ByVal stm As IStream, /*OUT*/ ByRef clsid As CLSID) As HRESULT
61Declare Function WriteClassStm Lib "ole32.dll" (/*IN*/ ByVal stm As IStream, /*IN*/ ByRef clsid As CLSID) As HRESULT
62Declare Function WriteFmtUserTypeStg Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage, /*IN*/ ByVal cf As CLIPFORMAT, /*IN*/ ByVal pszUserType As *OLECHAR) As HRESULT
63Declare Function ReadFmtUserTypeStg Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage, /*OUT*/ ByRef cf As CLIPFORMAT, /*OUT*/ ByRef rpszUserType As *OLECHAR) As HRESULT
[1]64
65
66/* init/term */
67
68Declare Function OleInitialize Lib "ole32" (pvReserved As VoidPtr) As HRESULT
69Declare Sub OleUninitialize Lib "ole32" ()
70
71
72/* APIs to query whether (Embedded/Linked) object can be created from
73 the data object */
74
[478]75Declare Function OleQueryLinkFromData Lib "ole32" (/*IN*/ ByVal srcDataObject As IDataObject) As HRESULT
76Declare Function OleQueryCreateFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObject As IDataObject) As HRESULT
[1]77
78
79/* Object creation APIs */
80
[478]81Declare Function OleCreate Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByRef riid As IID, /*IN*/ ByVal renderopt As DWord,
82 /*IN*/ ByVal pFormatEtc As *FORMATETC, /*IN*/ ByVal clientSite As IOleClientSite,
83 /*IN*/ ByVal stg As IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]84
85Declare Function OleCreateEx Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByRef riid As IID, /*IN*/ ByVal dwFlags As DWord,
[478]86 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord,
87 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink As IAdviseSink,
88 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite As IOleClientSite,
89 /*IN*/ ByVal stg As IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]90
[478]91Declare Function OleCreateFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObj As IDataObject, /*IN*/ ByRef riid As IID,
92 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC,
93 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal stg As IStorage,
94 /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]95
[478]96Declare Function OleCreateFromDataEx Lib "ole32.dll" (/*IN*/ ByVal srcDataObj As IDataObject, /*IN*/ ByRef riid As IID,
97 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord,
98 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink As IAdviseSink,
99 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite As IOleClientSite,
100 /*IN*/ ByVal stg As IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]101
[478]102Declare Function OleCreateLinkFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObj As IDataObject, /*IN*/ ByRef riid As IID,
103 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC,
104 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal stg As IStorage,
105 /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]106
[478]107Declare Function OleCreateLinkFromDataEx Lib "ole32.dll" (/*IN*/ ByVal srcDataObj As IDataObject, /*IN*/ ByRef riid As IID,
108 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord,
109 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink As IAdviseSink,
110 /*OUT IN*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite As IOleClientSite,
111 /*IN*/ ByVal stg As IStorage, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]112
[478]113Declare Function OleCreateStaticFromData Lib "ole32.dll" (/*IN*/ ByVal srcDataObj As IDataObject, /*IN*/ ByRef riid As IID,
114 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC,
115 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal stg As IStorage,
116 /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]117
118
[478]119Declare Function OleCreateLink Lib "ole32.dll" (/*IN*/ ByVal mkLinkSrc As IMoniker, /*IN*/ ByRef riid As IID,
120 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC,
121 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal dataObj As IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]122
[478]123Declare Function OleCreateLinkEx Lib "ole32.dll" (/*IN*/ ByVal mkLinkSrc As IMoniker, /*IN*/ ByRef riid As IID,
124 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord,
125 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink As IAdviseSink,
126 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite As IOleClientSite,
127 /*IN*/ ByVal dataObj As IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]128
129Declare Function OleCreateLinkToFile Lib "ole32.dll" (/*IN*/ ByVal lpszFileName As LPCOLESTR, /*IN*/ ByRef riid As IID,
[478]130 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC,
131 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByValdataObj As IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]132
133Declare Function OleCreateLinkToFileEx Lib "ole32.dll" (/*IN*/ ByVal lpszFileName As LPCOLESTR, /*IN*/ ByRef riid As IID,
[478]134 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord,
135 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink As IAdviseSink,
136 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite As IOleClientSite,
137 /*IN*/ ByVal dataObj As IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]138
139Declare Function OleCreateFromFile Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal lpszFileName As LPOLESTR, /*IN*/ ByRef riid As IID,
[478]140 /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal pFormatEtc As *FORMATETC,
141 /*IN*/ ByVal clientSite As IOleClientSite, /*IN*/ ByVal dataObj As IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]142
143Declare Function OleCreateFromFileEx Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal lpszFileName As LPOLESTR, /*IN*/ ByRef riid As IID,
[478]144 /*IN*/ ByVal dwFlags As DWord, /*IN*/ ByVal renderopt As DWord, /*IN*/ ByVal cFormats As DWord, /*IN*/ ByVal rgAdvf As *DWord,
145 /*IN*/ ByVal rgFormatEtc As *FORMATETC, /*IN*/ ByVal adviseSink As IAdviseSink,
146 /*OUT*/ ByVal rgdwConnection As *DWord, /*IN*/ ByVal clientSite As IOleClientSite,
147 /*IN*/ ByVal dataObj As IDataObject, /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]148
[478]149Declare Function OleLoad Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage, /*IN*/ ByRef riid As IID, /*IN*/ ByVal clientSite As IOleClientSite,
150 /*OUT*/ ByRef ppvObj As Any) As HRESULT
[1]151
[478]152Declare Function OleSave Lib "ole32.dll" (/*IN*/ ByVal ps As IPersistStorage, /*IN*/ ByVal stg As IStorage, /*IN*/ fSameAsLoad As BOOL) As HRESULT
[1]153
[478]154Declare Function OleLoadFromStream Lib "ole32.dll" ( /*IN*/ ByVal stm As IStream, /*IN*/ ByRef iidInterface As IID, /*OUT*/ ByRef ppvObj As Any) As HRESULT
155Declare Function OleSaveToStream Lib "ole32.dll" ( /*IN*/ ByVal pstm As IPersistStream, /*IN*/ ByVal stm As IStream) As HRESULT
[1]156
157
[478]158Declare Function OleSetContainedObject Lib "ole32.dll" (/*IN*/ ByVal unknown As IUnknown, /*IN*/ ByVal fContained As BOOL) As HRESULT
159Declare Function OleNoteObjectVisible Lib "ole32.dll" (/*IN*/ ByVal unknown As IUnknown, /*IN*/ ByVal fContained As BOOL) As HRESULT
[1]160
161
162/* Drag/Drop APIs */
163
[478]164Declare Function RegisterDragDrop Lib "ole32.dll" (/*IN*/ ByVal hwnd As HWND, /*IN*/ ByVal dropTarget As IDropTarget) As HRESULT
[1]165Declare Function RevokeDragDrop Lib "ole32.dll" (/*IN*/ ByVal hwnd As HWND) As HRESULT
[478]166Declare Function DoDragDrop Lib "ole32.dll" (/*IN*/ ByVal dataObj As IDataObject, /*IN*/ ByVal dropSource As IDropSource,
167 /*IN*/ ByVal dwOKEffects As DWord, /*OUT*/ ByRef dwEffect As DWord) As HRESULT
[1]168
169/* Clipboard APIs */
170
[478]171Declare Function OleSetClipboard Lib "ole32.dll" (/*IN*/ ByVal dataObj As IDataObject) As HRESULT
172Declare Function OleGetClipboard Lib "ole32.dll" (/*OUT*/ ByRef dataObj As IDataObject) As HRESULT
[1]173Declare Function OleFlushClipboard Lib "ole32.dll" () As HRESULT
[478]174Declare Function OleIsCurrentClipboard Lib "ole32.dll" (/*IN*/ ByVal dataObj As IDataObject) As HRESULT
[1]175
176
177/* InPlace Editing APIs */
178
179TypeDef HOLEMENU = HGLOBAL ' oleidl.h
180Type OLEMENUGROUPWIDTHS ' oleidl.h
181 width[ELM(6)] As Long
182End Type
183Type OLEINPLACEFRAMEINFO ' oleidl.h
184 cb As DWord
185 fMDIApp As BOOL
186 hwndFrame As HWND
187 haccel As HACCEL
188 cAccelEntries As DWord
189End Type
190Declare Function OleCreateMenuDescriptor Lib "ole32.dll" (/*IN*/ ByVal hmenuCombined As HMENU,
[478]191 /*IN*/ ByRef MenuWidths As OLEMENUGROUPWIDTHS) As HOLEMENU
[1]192Declare Function OleSetMenuDescriptor Lib "ole32.dll" (/*IN*/ ByVal holemenu As HOLEMENU, /*IN*/ ByVal hwndFrame As HWND,
[478]193 /*IN*/ ByVal hwndActiveObject As HWND,
194 /*IN*/ ByVal frame As IOleInPlaceFrame,
195 /*IN*/ ByVal activeObj As IOleInPlaceActiveObject) As HRESULT
[1]196Declare Function OleDestroyMenuDescriptor Lib "ole32.dll" (/*IN*/ ByVal holemenu As HOLEMENU) As HRESULT
197
[478]198Declare Function OleTranslateAccelerator Lib "ole32.dll" (/*IN*/ ByVal frame As IOleInPlaceFrame,
199 /*IN*/ ByRef FrameInfo As OLEINPLACEFRAMEINFO, /*IN*/ ByRef msg As MSG) As HRESULT
[1]200
201
202/* Helper APIs */
203Declare Function OleDuplicateData Lib "ole32.dll" (/*IN*/ ByVal hSrc As HANDLE, /*IN*/ ByVal cfFormat As CLIPFORMAT,
[478]204 /*IN*/ ByVal uiFlags As DWord) As HANDLE
[1]205
[478]206Declare Function OleDraw Lib "ole32.dll" (/*IN*/ ByVal unknown As IUnknown, /*IN*/ ByVal dwAspect As DWord, /*IN*/ ByVal hdcDraw As HDC,
207 /*IN*/ ByRef rcBounds As RECT) As HRESULT
[1]208
[478]209Declare Function OleRun Lib "ole32.dll" (/*IN*/ ByVal unknown As IUnknown) As HRESULT
210Declare Function OleIsRunning Lib "ole32.dll" (/*IN*/ ByVal object As IOleObject) As BOOL
211Declare Function OleLockRunning Lib "ole32.dll" (/*IN*/ ByVal unknown As IUnknown, /*IN*/ ByVal fLock As BOOL, /*IN*/ ByVal fLastUnlockCloses As BOOL) As HRESULT
[1]212Declare Sub ReleaseStgMedium Lib "ole32.dll" (/*IN*/ ByRef medium As STGMEDIUM)
[478]213Declare Function CreateOleAdviseHolder Lib "ole32.dll" (/*OUT*/ ByRef oaHolder As IOleAdviseHolder) As HRESULT
[1]214
[478]215Declare Function OleCreateDefaultHandler Lib "ole32.dll" (/*IN*/ ByRef clsid As CLSID, /*IN*/ ByVal unkOuter As IUnknown,
216 /*IN*/ ByRef riid As IID, /*OUT*/ ByRef pObj As Any) As HRESULT
[1]217
[478]218Declare Function OleCreateEmbeddingHelper Lib "ole32.dll" (/*IN*/ ByRef clsid As CLSID, /*IN*/ ByVal ukOuter As IUnknown,
219 /*IN*/ ByVal flags As DWord, /*IN*/ ByVal cf As IClassFactory,
220 /*IN*/ ByRef riid As IID, /*OUT*/ ByRef pObj As Any) As HRESULT
[1]221
222Declare Function IsAccelerator Lib "ole32.dll" (/*IN*/ ByVal hAccel As HACCEL, /*IN*/ ByVal cAccelEntries As Long, /*IN*/ ByRef msg As MSG,
[478]223 /*OUT*/ ByVal pwCmd As *Word) As BOOL
[1]224/* Icon extraction Helper APIs */
225
226Declare Function OleGetIconOfFile Lib "ole32.dll" (/*IN*/ ByVal lpszPath As LPOLESTR, /*IN*/ ByVal fUseFileAsLabel As BOOL) As HGLOBAL
227
228Declare Function OleGetIconOfClass Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal lpszLabel As LPOLESTR,
[478]229 /*IN*/ ByVal fUseTypeAsLabel As BOOL) As HGLOBAL
[1]230
231Declare Function OleMetafilePictFromIconAndLabel Lib "ole32.dll" (/*IN*/ ByVal hIcon As HICON, /*IN*/ ByVal lpszLabel As LPOLESTR,
[478]232 /*IN*/ ByVal lpszSourceFile As LPOLESTR, /*IN*/ ByVal iIconIndex As DWord) As HGLOBAL
[1]233
234
235
236/* Registration Database Helper APIs */
237
238Declare Function OleRegGetUserType Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal dwFormOfType As DWord,
[478]239 /*OUT*/ ByVal pszUserType As LPOLESTR) As HRESULT
[1]240
241Declare Function OleRegGetMiscStatus Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal dwAspect As DWord,
[478]242 /*OUT*/ ByRef dwStatus As DWord) As HRESULT
[1]243
244Declare Function OleRegEnumFormatEtc Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*IN*/ ByVal dwDirection As DWord,
[478]245 /*OUT*/ ByRef penum As *IEnumFORMATETC) As HRESULT
[1]246
247Declare Function OleRegEnumVerbs Lib "ole32.dll" (/*IN*/ ByRef rclsid As CLSID, /*OUT*/ ByRef penum As *IEnumOLEVERB) As HRESULT
248
249/* OLE 1.0 conversion APIS */
250
251/***** OLE 1.0 OLESTREAM declarations *************************************/
252
253
254Interface OleStream
255 Function Get(p As VoidPtr, dw As DWord) As DWord
256 Function Put(p As VoidPtr, dw As DWord) As DWord
257End Interface
258TypeDef LPOLESTREAM = *OleStream
259
260
[478]261Declare Function OleConvertOLESTREAMToIStorage Lib "ole32.dll" (
262 /*IN*/ ByVal lpolestream As LPOLESTREAM,
263 /*OUT*/ ByVal stg As IStorage,
264 /*IN*/ ByRef td As DVTARGETDEVICE) As HRESULT
[1]265
[478]266Declare Function OleConvertIStorageToOLESTREAM Lib "ole32.dll" (
267 /*IN*/ ByVal stg As IStorage,
268 /*OUT*/ ByVal lpolestream As LPOLESTREAM) As HRESULT
[1]269
270
271/* Storage Utility APIs */
272Declare Function GetHGlobalFromILockBytes Lib "ole32.dll" (/*IN*/ ByVal plkbyt As *ILockBytes, /*OUT*/ ByRef hglobal As HGLOBAL) As HRESULT
273Declare Function CreateILockBytesOnHGlobal Lib "ole32.dll" (/*IN*/ ByVal hGlobal As HGLOBAL, /*IN*/ ByVal fDeleteOnRelease As BOOL,
[478]274 /*OUT*/ ByRef lkbyt As ILockBytes) As HRESULT
[1]275
276Declare Function GetHGlobalFromStream Lib "ole32.dll" (/*IN*/ ByVal pstm As *IStream, /*OUT*/ ByRef hglobal As HGLOBAL) As HRESULT
277Declare Function CreateStreamOnHGlobal Lib "ole32.dll" (/*IN*/ ByVal hGlobal As HGLOBAL, /*IN*/ ByVal fDeleteOnRelease As BOOL,
[478]278 /*OUT*/ ByRef stm As IStream) As HRESULT
[1]279
280
281/* ConvertTo APIS */
282
[478]283Declare Function OleDoAutoConvert Lib "ole32.dll" (/*IN*/ ByRef stg As IStorage, /*OUT*/ ByRef ClsidNew As CLSID) As HRESULT
[1]284Declare Function OleGetAutoConvert Lib "ole32.dll" (/*IN*/ ByRef clsidOld As CLSID, /*OUT*/ ByRef ClsidNew As CLSID) As HRESULT
285Declare Function OleSetAutoConvert Lib "ole32.dll" (/*IN*/ ByRef clsidOld As CLSID, /*IN*/ ByRef ClsidNew As CLSID) As HRESULT
[478]286Declare Function GetConvertStg Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage) As HRESULT
287Declare Function SetConvertStg Lib "ole32.dll" (/*IN*/ ByVal stg As IStorage, /*IN*/ fConvert As BOOL) As HRESULT
[1]288
289
290Declare Function OleConvertIStorageToOLESTREAMEx Lib "ole32.dll" ( _
[478]291 /*IN*/ ByVal stg As IStorage, ' Presentation data to OLESTREAM
292 /*IN*/ ByVal cfFormat As CLIPFORMAT, ' format
293 /*IN*/ ByVal lWidth As Long, ' width
294 /*IN*/ ByVal lHeight As Long, ' height
295 /*IN*/ ByVal dwSize As DWORD, ' size in bytes
296 /*IN*/ ByRef medium As STGMEDIUM, ' bits
297 /*OUT*/ ByVal polestm As LPOLESTREAM) As HRESULT
[1]298
299Declare Function OleConvertOLESTREAMToIStorageEx Lib "ole32.dll" ( _
[478]300 /*IN*/ ByVal polestm As LPOLESTREAM,
301 /*OUT*/ ByVal pstg As *IStorage,' Presentation data from OLESTREAM
302 /*OUT*/ ByRef pcfFormat As CLIPFORMAT, ' format
303 /*OUT*/ ByRef plwWidth As Long, ' width
304 /*OUT*/ ByRef plHeight As Long, ' height
305 /*OUT*/ ByRef pdwSize As DWord, ' size in bytes
306 /*OUT*/ ByRef medium As STGMEDIUM) As HRESULT ' bits
[1]307
[160]308' olectl.h
[478]309Declare Function OleLoadPicture Lib "olepro32" (stream As IStream, lSize As Long, fRunmode As BOOL, ByRef riid As IID, ppvObj As VoidPtr) As HRESULT
310#endif '__UNDEFINED
[1]311#endif ' __OLE2_AB__
Note: See TracBrowser for help on using the repository browser.