source: branch/egtra-gdiplus/objidl.sbp@ 653

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

Controlがコンパイルできるように修正

File size: 12.7 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
167Interface IEnumSTATSTG
168 Inherits IUnknown
169End Interface
170
171#ifndef __IStorage_INTERFACE_DEFINED__
172#define __IStorage_INTERFACE_DEFINED__
173
174/* interface IStorage */
175/* [unique][uuid][object] */
176
177TypeDef LPSTORAGE = /* [unique] */ *IStorage
178
179Type RemSNB
180 ulCntStr As DWord
181 ulCntChar As DWord
182 rgString[ELM(1)] As OLECHAR
183End Type
184
185TypeDef wireSNB /* [unique] */ = *RemSNB
186
187TypeDef SNB = /* [wire_marshal] */ **OLECHAR
188
189Dim IID_IStorage = [&h0000000b, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
190
191Interface IStorage
192 Inherits IUnknown
193
194 Function CreateStream(
195 /* [string][in] */ pwcsName As *OLECHAR,
196 /* [in] */ grfMode As DWord,
197 /* [in] */ reserved1 As DWord,
198 /* [in] */ reserved2 As DWord,
199 /* [out] */ ByRef pstm As *IStream) As HRESULT
200 /* [local] */ Function OpenStream(
201 /* [string][in] */ pwcsName As *OLECHAR,
202 /* [unique][in] */ reserved1 As VoidPtr,
203 /* [in] */ grfMode As DWord,
204 /* [in] */ reserved2 As DWord,
205 /* [out] */ ByRef pstm As *IStream) As HRESULT
206 Function CreateStorage(
207 /* [string][in] */ pwcsName As *OLECHAR,
208 /* [in] */ grfMode As DWord,
209 /* [in] */ reserved1 As DWord,
210 /* [in] */ reserved2 As DWord,
211 /* [out] */ ByRef pstg As *IStorage) As HRESULT
212 Function OpenStorage(
213 /* [string][unique][in] */ pwcsName As *OLECHAR,
214 /* [unique][in] */ pstgPriority As IStorage,
215 /* [in] */ grfMode As DWord,
216 /* [unique][in] */ snbExclude As SNB,
217 /* [in] */ reserved As DWord,
218 /* [out] */ ByRef pstg As *IStorage) As HRESULT
219 /* [local] */ Function CopyTo(
220 /* [in] */ ciidExclude As DWord,
221 /* [size_is][unique][in] */ ByRef rgiidExclude As * /*Const*/ IID,
222 /* [unique][in] */ snbExclude As SNB,
223 /* [unique][in] */ pstgDest As *IStorage) As HRESULT
224 Function MoveElementTo(
225 /* [string][in] */ pwcsName As *OLECHAR,
226 /* [unique][in] */ pstgDest As *IStorage,
227 /* [string][in] */ pwcsNewName As *OLECHAR,
228 /* [in] */ grfFlags As DWord) As HRESULT
229 Function Commit(
230 /* [in] */ grfCommitFlags As DWord) As HRESULT
231 Function Revert() As HRESULT
232 /* [local] */ Function EnumElements(
233 /* [in] */ reserved1 As DWord,
234 /* [size_is][unique][in] */ reserved2 As VoidPtr,
235 /* [in] */ reserved3 As DWord,
236 /* [out] */ ByRef penum As *IEnumSTATSTG) As HRESULT
237 Function DestroyElement(
238 /* [string][in] */ pwcsName As *OLECHAR) As HRESULT
239 Function RenameElement(
240 /* [string][in] */ pwcsOldName As *OLECHAR,
241 /* [string][in] */ pwcsNewName As *OLECHAR) As HRESULT
242 Function SetElementTimes(
243 /* [string][unique][in] */ pwcsName As *OLECHAR,
244 /* [unique][in] */ ByRef ctime As /*Const*/ FILETIME,
245 /* [unique][in] */ ByRef atime As /*Const*/ FILETIME,
246 /* [unique][in] */ ByRef mtime As /*Const*/ FILETIME) As HRESULT
247 Function SetClass(
248 /* [in] */ ByRef clsid As CLSID) As HRESULT
249 Function SetStateBits(
250 /* [in] */ grfStateBits As DWord,
251 /* [in] */ grfMask As DWord) As HRESULT
252 Function Stat(
253 /* [out] */ ByRef statstg As STATSTG,
254 /* [in] */ grfStatFlag As DWord) As HRESULT
255End Interface
256
257#endif /* __IStorage_INTERFACE_DEFINED__ */
258
259Interface IPersistFile
260 Inherits IPersist
261
262 Function IsDirty() As HRESULT
263 Function Load(
264 /* [in] */ pszFileName As LPCOLESTR,
265 /* [in] */ dwMode As DWord) As HRESULT
266 Function Save(
267 /* [unique][in] */ pszFileName As LPCOLESTR,
268 /* [in] */ fRemember As BOOL) As HRESULT
269 Function SaveCompleted(
270 /* [unique][in] */ pszFileName As LPCOLESTR) As HRESULT
271 Function GetCurFile(
272 /* [out] */ ByRef pszFileName As LPOLESTR) As HRESULT
273End Interface
274
275
276' IPersistStrage
277
278Interface ILockBytes
279 Inherits IUnknown
280End Interface
281
282Type DVTARGETDEVICE
283 tdSize As DWord
284 tdDriverNameOffset As Word
285 tdDeviceNameOffset As Word
286 tdPortNameOffset As Word
287 tdExtDevmodeOffset As Word
288 tdData[ELM(1)] As Byte
289End Type
290
291TypeDef CLIPFORMAT = Word
292TypeDef LPCLIPFORMAT = *CLIPFORMAT
293
294Type FORMATETC
295 cfFormat As CLIPFORMAT
296 ptd As *DVTARGETDEVICE
297 dwAspect As DWord
298 lindex As Long
299 tymed As DWord
300End Type
301
302TypeDef LPFORMATETC = *FORMATETC
303
304Interface IEnumFORMATETC
305 Inherits IUnknown
306End Interface
307
308Interface IEnumSTATDATA
309 Inherits IUnknown
310End Interface
311
312' IRootStorage
313
314Enum /*[transmit_as(long)]*/ TYMED
315 TYMED_HGLOBAL = 1
316 TYMED_FILE = 2
317 TYMED_ISTREAM = 4
318 TYMED_ISTORAGE = 8
319 TYMED_GDI = 16
320 TYMED_MFPICT = 32
321 TYMED_ENHMF = 64
322 TYMED_NULL = 0
323End Enum
324
325Type STGMEDIUM
326 tymed As DWord
327 data As VoidPtr
328' /* [switch_type(DWORD), switch_is((DWORD) tymed)] */
329' Union
330' /*[case(TYMED_GDI)]*/ hBitmap As HBITMAP
331' /*[case(TYMED_MFPICT)]*/ hMetaFilePict As HMETAFILEPICT
332' /*[case(TYMED_ENHMF)]*/ hEnhMetaFile As HENHMETAFILE
333' /*[case(TYMED_HGLOBAL)]*/ hGlobal As HGLOBAL
334' /*[case(TYMED_FILE)]*/ lpszFileName As LPWSTR
335' /*[case(TYMED_ISTREAM)]*/ pstm As *IStream
336' /*[case(TYMED_ISTORAGE)]*/ pstg As *IStorage
337' /*[default]*/
338' End Union
339 /*[unique]*/ pUnkForRelease As *IUnknown
340End Type
341
342Interface IAdviseSink
343 Inherits IUnknown
344End Interface
345
346' AsyncIAdviseSink
347
348' IAdviseSink2
349
350' AsyncIAdviseSink2
351
352Interface IDataObject
353 Inherits IUnknown
354
355 Function /* [local] */ GetData(
356 /* [unique][in] */ ByRef rformatetcIn As FORMATETC,
357 /* [out] */ ByRef rmedium As STGMEDIUM) As HRESULT
358
359 Function /* [local] */ GetDataHere(
360 /* [unique][in] */ ByRef rformatetcIn As FORMATETC,
361 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT
362
363 Function QueryGetData(
364 /* [unique][in] */ ByRef pformatetc As FORMATETC) As HRESULT
365
366 Function GetCanonicalFormatEtc(
367 /* [unique][in] */ ByRef pformatetcIn As FORMATETC,
368 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT
369
370 Function /* [local] */ SetData(
371 /* [unique][in] */ pformatetcIn As *FORMATETC,
372 /* [out] */ pmedium As *STGMEDIUM,
373 /* [in] */ fRelease As BOOL) As HRESULT
374
375 Function EnumFormatEtc(
376 /* [in] */ ByVal dwDirection As DWord,
377 /* [out] */ ByRef rpenumFormatEtc As *IEnumFORMATETC) As HRESULT
378
379 Function DAdvise(
380 /* [in] */ ByRef pformatetc As FORMATETC,
381 /* [in] */ ByVal advf As DWord,
382 /* [unique][in] */ ByVal pAdvSink As *IAdviseSink,
383 /* [out] */ ByVal pdwConnection As *DWord) As HRESULT
384
385 Function DUnadvise(
386 /* [in] */ ByVal dwConnection As DWord) As HRESULT
387
388 Function EnumDAdvise(
389 /* [out] */ ByRef rpenumAdvise As *IEnumSTATDATA) As HRESULT
390End Interface
391
392Interface IDataAdviseHolder
393 Inherits IUnknown
394End Interface
395
396Enum CALLTYPE
397 CALLTYPE_TOPLEVEL = 1
398 CALLTYPE_NESTED = 2
399 CALLTYPE_ASYNC = 3
400 CALLTYPE_TOPLEVEL_CALLPENDING = 4
401 CALLTYPE_ASYNC_CALLPENDING = 5
402End Enum
403
404Enum ERVERCALL
405 SERVERCALL_ISHANDLED = 0
406 SERVERCALL_REJECTED = 1
407 SERVERCALL_RETRYLATER = 2
408End Enum
409
410Enum PENDINGTYPE
411 PENDINGTYPE_TOPLEVEL = 1
412 PENDINGTYPE_NESTED = 2
413End Enum
414
415Enum PENDINGMSG
416 PENDINGMSG_CANCELCALL = 0
417 PENDINGMSG_WAITNOPROCESS = 1
418 PENDINGMSG_WAITDEFPROCESS = 2
419End Enum
420
421Type INTERFACEINFO
422 pUnk As *IUnknown
423 iid As IID
424 wMethod As Word
425End Type
426TypeDef LPINTERFACEINFO = *INTERFACEINFO
427
428Dim IID_IMessageFilter = [&h00000016, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
429
430Interface IMessageFilter
431 Inherits IUnknown
432
433 Function HandleInComingCall(
434 /* [in] */ dwCallType As DWord,
435 /* [in] */ htaskCaller As HTASK,
436 /* [in] */ dwTickCount As DWord,
437 /* [in] */ lpInterfaceInfo As LPINTERFACEINFO) As DWord
438
439 Function RetryRejectedCall(
440 /* [in] */ htaskCallee As HTASK,
441 /* [in] */ dwTickCount As DWord,
442 /* [in] */ dwRejectType As DWord) As DWord
443
444 Function MessagePending(
445 /* [in] */ htaskCallee As HTASK,
446 /* [in] */ dwTickCount As DWord,
447 /* [in] */ dwPendingType As DWord) As DWord
448End Interface
449
450' IRpcChannelBuffer
451
452' IRpcChannelBuffer2
453
454' IAsyncRpcChannelBuffer
455
456' IRpcChannelBuffer3
457
458' IRpcSyntaxNegotiate
459
460' IRpcProxyBuffer
461
462' IRpcStubBuffer
463
464' IPSFactoryBuffer
465
466' IChannelHook
467
468' IClientSecurity
469
470' IServerSecurity
471
472' IClassActivator
473
474' IRpcOptions
475
476Interface IFillLockBytes
477 Inherits IUnknown
478End Interface
479
480' IProgressNotify
481
482' ILayoutStorage
483
484' IBlockingLock
485
486' ITimeAndNoticeControl
487
488' IOplockStorage
489
490' ISurrogate
491
492' IGlobalInterfaceTable
493
494' IDirectWriterLock
495
496' ISynchronize
497
498' ISynchronizeHandle
499
500' ISynchronizeEvent
501
502' ISynchronizeContainer
503
504' ISynchronizeMutex
505
506' ICancelMethodCalls
507
508' IAsyncManager
509
510' ICallFactory
511
512' IRpcHelper
513
514' IReleaseMarshalBuffers
515
516' IWaitMultiple
517
518' IUrlMon
519
520' IForegroundTransfer
521
522' IAddrTrackingControl
523
524' IAddrExclusionControl
525
526' IPipeByte
527
528' AsyncIPipeByte
529
530' IPipeLong
531
532' AsyncIPipeLong
533
534' IPipeDouble
535
536' AsyncIPipeDouble
537
538' IThumbnailExtractor
539
540' IDummyHICONIncluder
541
542' IEnumContextProps
543
544' IContext
545
546' IObjContext
547
548' IProcessLock
549
550' ISurrogateService
551
552' IComThreadingInfo
553
554' IProcessInitControl
555
556' IInitializeSpy
557
558#endif'_INC_OBJIDL
Note: See TracBrowser for help on using the repository browser.