source: Include/objidl.sbp@ 179

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

Variant, VBObjectの追加

File size: 9.6 KB
Line 
1#ifndef _INC_OBJIDL
2#define _INC_OBJIDL
3
4TypeDef SNB = **OLECHAR
5
6' IMarshal
7
8' IMarshal2
9
10Interface IMalloc
11 Inherits IUnknown
12
13 Function Alloc(cb As SIZE_T) As VoidPtr
14 Function Realloc(pv As VoidPtr, cb As SIZE_T) As VoidPtr
15 Sub Free(pv As VoidPtr)
16 Function GetSize(pv As VoidPtr) As SIZE_T
17 Function DidAlloc(pv As VoidPtr) As Long
18 Sub HeapMinimize()
19End Interface
20
21' IMallocSpy
22
23' IStdMarshalInfo
24
25' IExternalCennection
26
27Type MULTI_QI
28 pIID As * /*Const*/ IID
29 pItf As *IUnknown
30 hr As HRESULT
31End Type
32
33Dim IID_IMultiQI = [&h00000020, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
34
35Interface IMultiQI
36 Inherits IUnknown
37
38 Function QueryMultipleInterfaces(
39 /* [in] */ cMQIs As DWord,
40 /* [out][in] */ pMQIs As *MULTI_QI) As HRESULT
41End Interface
42
43' AsyncIMultiQI
44
45' IInternalUnknown
46
47' IEnumUnknown
48
49Type BIND_OPTS
50 cbStruct As DWord
51 grfFlags As DWord
52 grfMode As DWord
53 dwTickCountDeadline As DWord
54End Type
55
56Type BIND_OPTS2
57' Inherits BIND_OPTS
58 cbStruct As DWord
59 grfFlags As DWord
60 grfMode As DWord
61 dwTickCountDeadline As DWord
62
63 dwTrackFlags As DWord
64 dwClassContext As DWord
65 locale As LCID
66 pServerInfo As *COSERVERINFO
67End Type
68
69Interface IBindCtx
70 Inherits IUnknown
71End Interface
72
73' IEnumMoniker
74
75Interface IRunningObjectTable
76 Inherits IUnknown
77End Interface
78
79Dim IID_IPersist = [&h0000010c, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
80Interface IPersist
81 Inherits IUnknown
82
83 Function GetClassID(
84 /* [out] */ ByRef ClassID As CLSID) As HRESULT
85End Interface
86
87Dim IID_IPersistStream = [&h00000109, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
88Interface IPersistStream
89 Inherits IPersist
90
91 Function IsDirty() As HRESULT
92
93 Function Load(
94 /* [unique][in] */ pStm As *IStream) As HRESULT
95
96 Function Save(
97 /* [unique][in] */ pStm As *IStream,
98 /* [in] */ fClearDirty As BOOL) As HRESULT
99
100 Function GetSizeMax(
101 /* [out] */ ByRef cbSize As ULARGE_INTEGER) As HRESULT
102End Interface
103
104Interface IMoniker
105 Inherits IPersistStream
106End Interface
107
108' IEnumString
109
110Dim IID_ISequentialStream = [&h0c733a30, &h2a1c, &h11ce, [&had, &he5, &h00, &haa, &h00, &h44, &h77, &h3d]] As IID
111Interface ISequentialStream
112 Inherits IUnknown
113
114 Function Read(pv As VoidPtr, cb As DWord, pcbRead As *DWord) As HRESULT
115 Function Write(pv As VoidPtr, cb As DWord, pcbWritten As *DWord) As HRESULT
116End Interface
117
118Type STATSTG
119 pwcsName As LPOLESTR
120 type_ As DWord
121 cbSize As ULARGE_INTEGER
122 mtime As FILETIME
123 ctime As FILETIME
124 atime As FILETIME
125 grfMode As DWord
126 grfLocksSupported As DWord
127 clsid As CLSID
128 grfStateBits As DWord
129 reserved As DWord
130End Type
131
132Enum STGTY
133 STGTY_STORAGE = 1
134 STGTY_STREAM = 2
135 STGTY_LOCKBYTES = 3
136 STGTY_PROPERTY = 4
137End Enum
138
139Enum STREAM_SEEK
140 STREAM_SEEK_SET = 0
141 STREAM_SEEK_CUR = 1
142 STREAM_SEEK_END = 2
143End Enum
144
145Enum LOCKTYPE
146 LOCK_WRITE = 1
147 LOCK_EXCLUSIVE = 2
148 LOCK_ONLYONCE = 4
149End Enum
150
151Dim IID_IStream = [&h0000000c, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
152Interface IStream
153 Inherits ISequentialStream
154
155 Function Seek(dlibMove As LARGE_INTEGER, dwOrigin As DWord, plibNewPosition As *ULARGE_INTEGER) As HRESULT
156 Function SetSize(libNewSize As ULARGE_INTEGER) As HRESULT
157 Function CopyTo(pstm As *IStream, cb As ULARGE_INTEGER, pcbRead As *ULARGE_INTEGER, pcbWritten As *ULARGE_INTEGER) As HRESULT
158 Function Commit(grfCommitFlags As DWord) As HRESULT
159 Function Revert() As HRESULT
160 Function LockRegion(libOffset As ULARGE_INTEGER, cb As ULARGE_INTEGER, dwLockType As DWord) As HRESULT
161 Function UnlockRegion(libOffset As ULARGE_INTEGER, cb As ULARGE_INTEGER, dwLockType As DWord) As HRESULT
162 Function Stat(pstatstg As *STATSTG, grfStatFlag As DWord) As HRESULT
163 Function Clone(ByRef ppstm As *IStream) As HRESULT
164End Interface
165TypeDef LPSTREAM = *IStream
166
167' IEnumSTATSTG
168
169Interface IStorage
170 Inherits IUnknown
171End Interface
172
173Interface IPersistFile
174 Inherits IPersist
175
176 Function IsDirty() As HRESULT
177
178 Function Load(
179 /* [in] */ pszFileName As LPCOLESTR,
180 /* [in] */ dwMode As DWord) As HRESULT
181
182 Function Save(
183 /* [unique][in] */ pszFileName As LPCOLESTR,
184 /* [in] */ fRemember As BOOL) As HRESULT
185
186 Function SaveCompleted(
187 /* [unique][in] */ pszFileName As LPCOLESTR) As HRESULT
188
189 Function GetCurFile(
190 /* [out] */ ByRef pszFileName As LPOLESTR) As HRESULT
191End Interface
192
193
194' IPersistStrage
195
196Interface ILockBytes
197 Inherits IUnknown
198End Interface
199
200Type DVTARGETDEVICE
201 tdSize As DWord
202 tdDriverNameOffset As Word
203 tdDeviceNameOffset As Word
204 tdPortNameOffset As Word
205 tdExtDevmodeOffset As Word
206 tdData[ELM(1)] As Byte
207End Type
208
209TypeDef CLIPFORMAT = Word
210TypeDef LPCLIPFORMAT = *CLIPFORMAT
211
212Type FORMATETC
213 cfFormat As CLIPFORMAT
214 ptd As *DVTARGETDEVICE
215 dwAspect As DWord
216 lindex As Long
217 tymed As DWord
218End Type
219
220TypeDef LPFORMATETC = *FORMATETC
221
222Interface IEnumFORMATETC
223 Inherits IUnknown
224End Interface
225
226Interface IEnumSTATDATA
227 Inherits IUnknown
228End Interface
229
230' IRootStorage
231
232Enum /*[transmit_as(long)]*/ TYMED
233 TYMED_HGLOBAL = 1
234 TYMED_FILE = 2
235 TYMED_ISTREAM = 4
236 TYMED_ISTORAGE = 8
237 TYMED_GDI = 16
238 TYMED_MFPICT = 32
239 TYMED_ENHMF = 64
240 TYMED_NULL = 0
241End Enum
242
243Type STGMEDIUM
244 tymed As DWord
245 data As VoidPtr
246' /* [switch_type(DWORD), switch_is((DWORD) tymed)] */
247' Union
248' /*[case(TYMED_GDI)]*/ hBitmap As HBITMAP
249' /*[case(TYMED_MFPICT)]*/ hMetaFilePict As HMETAFILEPICT
250' /*[case(TYMED_ENHMF)]*/ hEnhMetaFile As HENHMETAFILE
251' /*[case(TYMED_HGLOBAL)]*/ hGlobal As HGLOBAL
252' /*[case(TYMED_FILE)]*/ lpszFileName As LPWSTR
253' /*[case(TYMED_ISTREAM)]*/ pstm As *IStream
254' /*[case(TYMED_ISTORAGE)]*/ pstg As *IStorage
255' /*[default]*/
256' End Union
257 /*[unique]*/ pUnkForRelease As *IUnknown
258End Type
259
260Interface IAdviseSink
261 Inherits IUnknown
262End Interface
263
264' AsyncIAdviseSink
265
266' IAdviseSink2
267
268' AsyncIAdviseSink2
269
270Interface IDataObject
271 Inherits IUnknown
272
273 Function /* [local] */ GetData(
274 /* [unique][in] */ ByRef rformatetcIn As FORMATETC,
275 /* [out] */ ByRef rmedium As STGMEDIUM) As HRESULT
276
277 Function /* [local] */ GetDataHere(
278 /* [unique][in] */ ByRef rformatetcIn As FORMATETC,
279 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT
280
281 Function QueryGetData(
282 /* [unique][in] */ ByRef pformatetc As FORMATETC) As HRESULT
283
284 Function GetCanonicalFormatEtc(
285 /* [unique][in] */ ByRef pformatetcIn As FORMATETC,
286 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT
287
288 Function /* [local] */ SetData(
289 /* [unique][in] */ pformatetcIn As *FORMATETC,
290 /* [out] */ pmedium As *STGMEDIUM,
291 /* [in] */ fRelease As BOOL) As HRESULT
292
293 Function EnumFormatEtc(
294 /* [in] */ ByVal dwDirection As DWord,
295 /* [out] */ ByRef rpenumFormatEtc As *IEnumFORMATETC) As HRESULT
296
297 Function DAdvise(
298 /* [in] */ ByRef pformatetc As FORMATETC,
299 /* [in] */ ByVal advf As DWord,
300 /* [unique][in] */ ByVal pAdvSink As *IAdviseSink,
301 /* [out] */ ByVal pdwConnection As *DWord) As HRESULT
302
303 Function DUnadvise(
304 /* [in] */ ByVal dwConnection As DWord) As HRESULT
305
306 Function EnumDAdvise(
307 /* [out] */ ByRef rpenumAdvise As *IEnumSTATDATA) As HRESULT
308End Interface
309
310Interface IDataAdviseHolder
311 Inherits IUnknown
312End Interface
313
314Enum CALLTYPE
315 CALLTYPE_TOPLEVEL = 1
316 CALLTYPE_NESTED = 2
317 CALLTYPE_ASYNC = 3
318 CALLTYPE_TOPLEVEL_CALLPENDING = 4
319 CALLTYPE_ASYNC_CALLPENDING = 5
320End Enum
321
322Enum ERVERCALL
323 SERVERCALL_ISHANDLED = 0
324 SERVERCALL_REJECTED = 1
325 SERVERCALL_RETRYLATER = 2
326End Enum
327
328Enum PENDINGTYPE
329 PENDINGTYPE_TOPLEVEL = 1
330 PENDINGTYPE_NESTED = 2
331End Enum
332
333Enum PENDINGMSG
334 PENDINGMSG_CANCELCALL = 0
335 PENDINGMSG_WAITNOPROCESS = 1
336 PENDINGMSG_WAITDEFPROCESS = 2
337End Enum
338
339Type INTERFACEINFO
340 pUnk As *IUnknown
341 iid As IID
342 wMethod As Word
343End Type
344TypeDef LPINTERFACEINFO = *INTERFACEINFO
345
346Dim IID_IMessageFilter = [&h00000016, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
347
348Interface IMessageFilter
349 Inherits IUnknown
350
351 Function HandleInComingCall(
352 /* [in] */ dwCallType As DWord,
353 /* [in] */ htaskCaller As HTASK,
354 /* [in] */ dwTickCount As DWord,
355 /* [in] */ lpInterfaceInfo As LPINTERFACEINFO) As DWord
356
357 Function RetryRejectedCall(
358 /* [in] */ htaskCallee As HTASK,
359 /* [in] */ dwTickCount As DWord,
360 /* [in] */ dwRejectType As DWord) As DWord
361
362 Function MessagePending(
363 /* [in] */ htaskCallee As HTASK,
364 /* [in] */ dwTickCount As DWord,
365 /* [in] */ dwPendingType As DWord) As DWord
366End Interface
367
368' IRpcChannelBuffer
369
370' IRpcChannelBuffer2
371
372' IAsyncRpcChannelBuffer
373
374' IRpcChannelBuffer3
375
376' IRpcSyntaxNegotiate
377
378' IRpcProxyBuffer
379
380' IRpcStubBuffer
381
382' IPSFactoryBuffer
383
384' IChannelHook
385
386' IClientSecurity
387
388' IServerSecurity
389
390' IClassActivator
391
392' IRpcOptions
393
394Interface IFillLockBytes
395 Inherits IUnknown
396End Interface
397
398' IProgressNotify
399
400' ILayoutStorage
401
402' IBlockingLock
403
404' ITimeAndNoticeControl
405
406' IOplockStorage
407
408' ISurrogate
409
410' IGlobalInterfaceTable
411
412' IDirectWriterLock
413
414' ISynchronize
415
416' ISynchronizeHandle
417
418' ISynchronizeEvent
419
420' ISynchronizeContainer
421
422' ISynchronizeMutex
423
424' ICancelMethodCalls
425
426' IAsyncManager
427
428' ICallFactory
429
430' IRpcHelper
431
432' IReleaseMarshalBuffers
433
434' IWaitMultiple
435
436' IUrlMon
437
438' IForegroundTransfer
439
440' IAddrTrackingControl
441
442' IAddrExclusionControl
443
444' IPipeByte
445
446' AsyncIPipeByte
447
448' IPipeLong
449
450' AsyncIPipeLong
451
452' IPipeDouble
453
454' AsyncIPipeDouble
455
456' IThumbnailExtractor
457
458' IDummyHICONIncluder
459
460' IEnumContextProps
461
462' IContext
463
464' IObjContext
465
466' IProcessLock
467
468' ISurrogateService
469
470' IComThreadingInfo
471
472' IProcessInitControl
473
474' IInitializeSpy
475
476#endif'_INC_OBJIDL
Note: See TracBrowser for help on using the repository browser.