source: trunk/Include/OAIdl.ab@ 496

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

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

File size: 42.5 KB
Line 
1' OAIdl.sbp
2' 本来はOAIdl.idlから生成するのが正当ですが、
3' これは手動で移植したものです。
4
5#require <objidl.sbp>
6
7#ifndef __IOleAutomationTypes_INTERFACE_DEFINED__
8#define __IOleAutomationTypes_INTERFACE_DEFINED__
9
10/* interface IOleAutomationTypes */
11/* [auto_handle][unique][version] */
12
13TypeDef CURRENCY = CY
14
15Type SAFEARRAYBOUND
16 cElements As DWord
17 lLbound As Long
18End Type
19
20Typedef LPSAFEARRAYBOUND = *SAFEARRAYBOUND
21
22Typedef wireVARIANT = VoidPtr '/* [unique] */ *_wireVARIANT
23
24Typedef wireBRECORD = VoidPtr '/* [unique] */ *_wireBRECORD
25
26' Type SAFEARR_BSTR;
27' Type SAFEARR_UNKNOWN;
28' Type SAFEARR_DISPATCH;
29' Type SAFEARR_VARIANT;
30' Type SAFEARR_BRECORD;
31' Type SAFEARR_HAVEIID;
32
33/* [v1_enum] */
34/*
35Const Enum SF_TYPE
36 SF_ERROR = VT_ERROR
37 SF_I1 = VT_I1
38 SF_I2 = VT_I2
39 SF_I4 = VT_I4
40 SF_I8 = VT_I8
41 SF_BSTR = VT_BSTR
42 SF_UNKNOWN = VT_UNKNOWN
43 SF_DISPATCH = VT_DISPATCH
44 SF_VARIANT = VT_VARIANT
45 SF_RECORD = VT_RECORD
46 SF_HAVEIID = VT_UNKNOWN Or VT_RESERVED
47End Enum
48*/
49' Type SAFEARRAYUNION
50
51' Type /* [unique] */ wireSAFEARRAY
52
53TypeDef wirePSAFEARRAY = VoidPtr '/* [unique] */ *wireSAFEARRAY
54
55Type SAFEARRAY
56 cDims As Word
57 fFeatures As Word
58 cbElements As DWord
59 cLocks As DWord
60 pvData As VoidPtr
61 rgsabound[ELM(1)] As SAFEARRAYBOUND
62End Type
63
64TypeDef LPSAFEARRAY = /* [wire_marshal] */ *SAFEARRAY
65
66Const FADF_AUTO = &h1
67Const FADF_STATIC = &h2
68Const FADF_EMBEDDED = &h4
69Const FADF_FIXEDSIZE = &h10
70Const FADF_RECORD = &h20
71Const FADF_HAVEIID = &h40
72Const FADF_HAVEVARTYPE = &h80
73Const FADF_BSTR = &h100
74Const FADF_UNKNOWN = &h200
75Const FADF_DISPATCH = &h400
76Const FADF_VARIANT = &h800
77Const FADF_RESERVED = &hf008
78
79Type /*Class*/ VARIANT
80Public
81 vt As VARTYPE
82 wReserved1 As Word
83 wReserved2 As Word
84 wReserved3 As Word
85 val As QWord
86/*
87 Function llVal() As Int64
88 Return val As Int64
89 End Function
90
91 Sub llVal(v As Int64)
92 val = v As QWord
93 End Sub
94
95 Function lVal() As Long
96 Return val As DWord As Long
97 End Function
98
99 Sub lVal(v As Long)
100 val = v As DWord
101 End Sub
102
103 Function bVal() As Byte
104 Return val As Byte
105 End Function
106
107 Sub bVal(v As Byte)
108 val = v
109 End Sub
110
111 Function iVal() As Integer
112 Return val As Word As Integer
113 End Function
114
115 Sub iVal(v As Integer)
116 val = v As Word
117 End Sub
118
119 Function fltVal() As Single
120 Return GetSingle(VarPtr(val) As *Single)
121 End Function
122
123 Sub fltVal(v As Single)
124 SetSingle(VarPtr(val) As *Single, v)
125 End Sub
126
127 Function dblVal() As Double
128 Return GetDouble(VarPtr(val) As *Double)
129 End Function
130
131 Sub dblVal(v As Double)
132 SetDouble(VarPtr(val) As *Double, v)
133 End Sub
134
135 ' SizeOf (VARIANT_BOOL) = 2
136 Function boolVal() As VARIANT_BOOL
137 Return val As Word As VARIANT_BOOL
138 End Function
139
140 Sub boolVal(v As VARIANT_BOOL)
141 val = v As Word
142 End Sub
143
144 ' SizeOf (SCODE) = 4
145 Function scode() As SCODE
146 Return val As DWord As SCODE
147 End Function
148
149 Sub scode(v As SCODE)
150 val = v As DWord
151 End Sub
152
153 ' SizeOf (CY) = 8
154 Function cyVal() As CY
155 SetQWord(VarPtr(cyVal), val)
156 End Function
157
158 Sub cyVal(v As CY)
159 SetQWord(VarPtr(val), GetQWord(VarPtr(v)))
160 End Sub
161
162 ' SizeOf (DATE) = 8
163 Function date() As DATE
164 SetQWord(VarPtr(date), val)
165 End Function
166
167 Sub date(v As DATE)
168 SetQWord(VarPtr(val), GetQWord(VarPtr(v)))
169 End Sub
170
171 Function bstrVal() As BSTR
172 Return val As ULONG_PTR As BSTR
173 End Function
174
175 Sub bstrVal(v As BSTR)
176 val = v As ULONG_PTR
177 End Sub
178
179 Function punkVal() As *IUnknown
180 Return val As ULONG_PTR As *IUnknown
181 End Function
182
183 Sub punkVal(v As *IUnknown)
184 val = v As ULONG_PTR
185 End Sub
186
187 Function pdispVal() As *IDispatch
188 Return val As ULONG_PTR As *IDispatch
189 End Function
190
191 Sub pdispVal(v As *IDispatch)
192 val = v As ULONG_PTR
193 End Sub
194
195 Function parray() As *SAFEARRAY
196 Return val As ULONG_PTR As *SAFEARRAY
197 End Function
198
199 Sub parray(v As *SAFEARRAY)
200 val = v As ULONG_PTR
201 End Sub
202
203 Function pbVal() As *Byte
204 Return val As ULONG_PTR As *Byte
205 End Function
206
207 Sub pbVal(v As *Byte)
208 val = v As ULONG_PTR
209 End Sub
210
211 Function piVal() As *Integer
212 Return val As ULONG_PTR As *Integer
213 End Function
214
215 Sub piVal(v As *Integer)
216 val = v As ULONG_PTR
217 End Sub
218
219 Function plVal() As *Long
220 Return val As ULONG_PTR As *Long
221 End Function
222
223 Sub plVal(v As *Long)
224 val = v As ULONG_PTR
225 End Sub
226
227 Function pllVal() As *Int64
228 Return val As ULONG_PTR As *Int64
229 End Function
230
231 Sub pllVal(v As *Int64)
232 val = v As ULONG_PTR
233 End Sub
234
235 Function pfltVal() As *Single
236 Return val As ULONG_PTR As *Single
237 End Function
238
239 Sub pfltVal(v As *Single)
240 val = v As ULONG_PTR
241 End Sub
242
243 Function pdblVal() As *Double
244 Return val As ULONG_PTR As *Double
245 End Function
246
247 Sub pdblVal(v As *Double)
248 val = v As ULONG_PTR
249 End Sub
250
251 Function pboolVal() As *VARIANT_BOOL
252 Return val As ULONG_PTR As *VARIANT_BOOL
253 End Function
254
255 Sub pboolVal(v As *VARIANT_BOOL)
256 val = v As ULONG_PTR
257 End Sub
258
259 Function pscode() As *SCODE
260 Return val As ULONG_PTR As *SCODE
261 End Function
262
263 Sub pscode(v As *SCODE)
264 val = v As ULONG_PTR
265 End Sub
266
267 Function pcyVal() As *CY
268 Return val As ULONG_PTR As *CY
269 End Function
270
271 Sub pcyVal(v As *CY)
272 val = v As ULONG_PTR
273 End Sub
274
275 Function pdate() As *DATE
276 Return val As ULONG_PTR As *DATE
277 End Function
278
279 Sub pdate(v As *DATE)
280 val = v As ULONG_PTR
281 End Sub
282
283 Function pbstrVal() As *BSTR
284 Return val As ULONG_PTR As *BSTR
285 End Function
286
287 Sub pbstrVal(v As *BSTR)
288 val = v As ULONG_PTR
289 End Sub
290
291 Function ppunkVal() As **IUnknown
292 Return val As ULONG_PTR As **IUnknown
293 End Function
294
295 Sub ppunkVal(v As **IUnknown)
296 val = v As ULONG_PTR
297 End Sub
298
299 Function ppdispVal() As **IDispatch
300 Return val As ULONG_PTR As **IDispatch
301 End Function
302
303 Sub ppdispVal(v As **IDispatch)
304 val = v As ULONG_PTR
305 End Sub
306
307 Function pparray() As **SAFEARRAY
308 Return val As ULONG_PTR As **SAFEARRAY
309 End Function
310
311 Sub pparray(v As **SAFEARRAY)
312 val = v As ULONG_PTR
313 End Sub
314
315 Function pvarVal() As *VARIANT
316 Return val As ULONG_PTR As *VARIANT
317 End Function
318
319 Sub pvarVal(v As *VARIANT)
320 val = v As ULONG_PTR
321 End Sub
322
323' Function byref() As VoidPtr
324' Return val As ULONG_PTR As VoidPtr
325' End Function
326
327' Sub byref(v As VoidPtr)
328' val = v As ULONG_PTR
329' End Sub
330
331 Function cVal() As Char
332 Return val As Byte As Char
333 End Function
334
335 Sub cVal(v As Char)
336 val = v As Byte
337 End Sub
338
339 Function uiVal() As Word
340 Return val As Word
341 End Function
342
343 Sub uiVal(v As Word)
344 val = v
345 End Sub
346
347 Function ulVal() As DWord
348 Return val As DWord
349 End Function
350
351 Sub ulVal(v As DWord)
352 val = v
353 End Sub
354
355 Function ullVal() As QWord
356 Return val
357 End Function
358
359 Sub ullVal(v As QWord)
360 val = v
361 End Sub
362
363 Function intVal() As Long
364 Return val As DWord As Long
365 End Function
366
367 Sub intVal(v As Long)
368 val = v As DWord
369 End Sub
370
371 Function uintVal() As DWord
372 Return val As DWord
373 End Function
374
375 Sub uintVal(v As DWord)
376 val = v
377 End Sub
378
379 Function pdecVal() As *DECIMAL
380 Return val As ULONG_PTR As *DECIMAL
381 End Function
382
383 Sub pdecVal(v As *DECIMAL)
384 val = v As ULONG_PTR
385 End Sub
386
387 Function pcVal() As *Char
388 Return val As ULONG_PTR As *Char
389 End Function
390
391 Sub pcVal(v As *Char)
392 val = v As ULONG_PTR
393 End Sub
394
395 Function puiVal() As *Word
396 Return val As ULONG_PTR As *Word
397 End Function
398
399 Sub puiVal(v As *Word)
400 val = v As ULONG_PTR
401 End Sub
402
403 Function pulVal() As *DWord
404 Return val As ULONG_PTR As *DWord
405 End Function
406
407 Sub pulVal(v As *DWord)
408 val = v As ULONG_PTR
409 End Sub
410
411 Function pullVal() As *QWord
412 Return val As ULONG_PTR As *QWord
413 End Function
414
415 Sub pullVal(v As *QWord)
416 val = v As ULONG_PTR
417 End Sub
418
419 Function pintVal() As *Long
420 Return val As ULONG_PTR As *Long
421 End Function
422
423 Sub pintVal(v As *Long)
424 val = v As ULONG_PTR
425 End Sub
426
427 Function puintVal() As *DWord
428 Return val As ULONG_PTR As *DWord
429 End Function
430
431 Sub puintVal(v As *DWord)
432 val = v As ULONG_PTR
433 End Sub
434
435 Function pvRecord() As VoidPtr
436 Return val As ULONG_PTR As VoidPtr
437 End Function
438
439 Sub pvRecord(v As VoidPtr)
440 val = v As ULONG_PTR
441 End Sub
442
443 Function pRecInfo() As *IRecordInfo
444 Return (val As ULONG_PTR + SizeOf (VoidPtr)) As *IRecordInfo
445 End Function
446
447 Sub pRecInfo(v As *IRecordInfo)
448 Set_LONG_PTR((VarPtr(val) As ULONG_PTR + SizeOf (VoidPtr)) As VoidPtr, v As LONG_PTR)
449 End Sub
450
451 Function decVal() As DECIMAL
452 Dim p As *DECIMAL
453 p = VarPtr(This) As *DECIMAL
454 Return p[0]
455 End Function
456
457 Sub decVal(v As DECIMAL)
458 Dim p As *DECIMAL
459 p = VarPtr(This) As *DECIMAL
460 p[0] = v
461 End Sub
462*/
463End Type 'Class
464
465TypeDef LPVARIANT = *VARIANT
466TypeDef VARIANTARG = VARIANT
467TypeDef LPVARIANTARG =* VARIANT
468
469' Type _wireBRECORD
470' Type _wireVARIANT
471
472TypeDef DISPID = Long
473
474TypeDef MEMBERID = DISPID
475
476TypeDef HREFTYPE = DWord
477
478/* [v1_enum] */
479Const Enum TYPEKIND
480 TKIND_ENUM ' = 0
481 TKIND_RECORD ' = TKIND_ENUM + 1
482 TKIND_MODULE ' = TKIND_RECORD + 1
483 TKIND_INTERFACE ' = TKIND_MODULE + 1
484 TKIND_DISPATCH ' = TKIND_INTERFACE + 1
485 TKIND_COCLASS ' = TKIND_DISPATCH + 1
486 TKIND_ALIAS ' = TKIND_COCLASS + 1
487 TKIND_UNION ' = TKIND_ALIAS + 1
488 TKIND_MAX ' = TKIND_UNION + 1
489End Enum
490
491Type /*Class*/ TYPEDESC
492' Private
493 p As VoidPtr
494' /* [switch_is][switch_type] */ Union
495' /* [case()] */ lptdesc As *TYPEDESC
496' /* [case()] */ lpadesc As *ARRAYDESC
497' /* [case()] */ hreftype As HREFTYPE
498' /* [default] */ /* Empty union arm */
499' End Union
500'Public
501 vt As VARTYPE
502/*
503 Function lptdesc() As *TYPEDESC
504 Return p
505 End Function
506
507 Sub lptdesc(ptd As *TYPEDESC)
508 p = ptd
509 End Sub
510
511 Function lpadesc() As *ARRAYDESC
512 Return p
513 End Function
514
515 Sub lpadesc(pad As *ARRAYDESC)
516 p = pad
517 End Sub
518
519 Function hreftype() As *HREFTYPE
520 Return p
521 End Function
522
523 Sub hreftype(prd As *HREFTYPE)
524 p = prd
525 End Sub
526*/
527End Type 'Class
528
529Type ARRAYDESC
530 tdescElem As TYPEDESC
531 cDims As Word
532 /* [size_is] */ rgbounds[ELM(1)] As SAFEARRAYBOUND
533End Type
534
535Type PARAMDESCEX
536 cBytes As DWord
537 varDefaultValue As VARIANTARG
538End Type
539
540Typedef LPPARAMDESCEX = *PARAMDESCEX
541
542Type PARAMDESC
543 pparamdescex As LPPARAMDESCEX
544 USHORT wParamFlags As Word
545End Type
546
547TypeDef LPPARAMDESC = *PARAMDESC
548
549Const PARAMFLAG_NONE = 0
550Const PARAMFLAG_FIN = &h1
551Const PARAMFLAG_FOUT = &h2
552Const PARAMFLAG_FLCID = &h4
553Const PARAMFLAG_FRETVAL = &h8
554Const PARAMFLAG_FOPT = &h10
555Const PARAMFLAG_FHASDEFAULT = &h20
556Const PARAMFLAG_FHASCUSTDATA = &h40
557
558Type IDLDESC
559 dwReserved As ULONG_PTR
560 wIDLFlags As Word
561End Type
562
563TypeDef LPIDLDESC = *IDLDESC
564
565Const IDLFLAG_NONE = PARAMFLAG_NONE
566Const IDLFLAG_FIN = PARAMFLAG_FIN
567Const IDLFLAG_FOUT = PARAMFLAG_FOUT
568Const IDLFLAG_FLCID = PARAMFLAG_FLCID
569Const IDLFLAG_FRETVAL = PARAMFLAG_FRETVAL
570
571Type /*Class*/ ELEMDESC
572'Public
573 tdesc As TYPEDESC
574 idldesc As IDLDESC
575/*
576 Function paramdesc() As PARAMDESC
577 Dim p As *PARAMDESC
578 p = VarPtr(idldesc) As *PARAMDESC
579 Return p[0]
580 End Function
581
582 Sub paramdesc(pd As PARAMDESC)
583 Dim p As *PARAMDESC
584 p = VarPtr(idldesc) As *PARAMDESC
585 p[0] = pd
586 End Sub
587*/
588End Type 'Class
589
590Type TYPEATTR
591 guid As GUID
592 lcid As LCID
593 dwReserved As DWord
594 memidConstructor As MEMBERID
595 memidDestructor As MEMBERID
596 lpstrSchema As LPOLESTR
597 cbSizeInstance As DWord
598 typekind As TYPEKIND
599 cFuncs As Word
600 cVars As Word
601 cImplTypes As Word
602 cbSizeVft As Word
603 cbAlignment As Word
604 wTypeFlags As Word
605 wMajorVerNum As Word
606 wMinorVerNum As Word
607 tdescAlias As TYPEDESC
608 idldescType As IDLDESC
609End Type
610
611TypeDef LPTYPEATTR = *TYPEATTR
612
613Type DISPPARAMS
614 /* [size_is] */ rgvarg As *VARIANTARG
615 /* [size_is] */ rgdispidNamedArgs As *DISPID
616 cArgs As DWord
617 cNamedArgs As DWord
618End Type
619
620Type EXCEPINFO
621 wCode As Word
622 wReserved As Word
623 bstrSource As BSTR
624 bstrDescription As BSTR
625 bstrHelpFile As BSTR
626 dwHelpContext As DWord
627 pvReserved As VoidPtr
628 pfnDeferredFillIn As *Function(p As *EXCEPINFO) As HRESULT
629 scode As SCODE
630End Type
631
632TypeDef LPEXCEPINFO = *EXCEPINFO
633
634/* [v1_enum] */
635Const Enum CALLCONV
636 CC_FASTCALL = 0
637 CC_CDECL = 1
638 CC_MSCPASCAL = CC_CDECL + 1
639 CC_PASCAL = CC_MSCPASCAL
640 CC_MACPASCAL = CC_PASCAL + 1
641 CC_STDCALL = CC_MACPASCAL + 1
642 CC_FPFASTCALL = CC_STDCALL + 1
643 CC_SYSCALL = CC_FPFASTCALL + 1
644 CC_MPWCDECL = CC_SYSCALL + 1
645 CC_MPWPASCAL = CC_MPWCDECL + 1
646 CC_MAX = CC_MPWPASCAL + 1
647End Enum
648
649/* [v1_enum] */
650Const Enum FUNCKIND
651 FUNC_VIRTUAL = 0
652 FUNC_PUREVIRTUAL = FUNC_VIRTUAL + 1
653 FUNC_NONVIRTUAL = FUNC_PUREVIRTUAL + 1
654 FUNC_STATIC = FUNC_NONVIRTUAL + 1
655 FUNC_DISPATCH = FUNC_STATIC + 1
656End Enum
657
658/* [v1_enum] */
659Const Enum INVOKEKIND
660 INVOKE_FUNC = 1
661 INVOKE_PROPERTYGET = 2
662 INVOKE_PROPERTYPUT = 4
663 INVOKE_PROPERTYPUTREF = 8
664End Enum
665
666Type FUNCDESC
667 memid As MEMBERID
668 /* [size_is] */ lprgscode As *SCODE
669 /* [size_is] */ lprgelemdescParam As *ELEMDESC
670 funckind As FUNCKIND
671 invkind As INVOKEKIND
672 callconv As CALLCONV
673 cParams As Integer
674 cParamsOpt As Integer
675 oVft As Integer
676 cScodes As Integer
677 elemdescFunc As ELEMDESC
678 wFuncFlags As Word
679End Type
680
681TypeDef LPFUNCDESC = *FUNCDESC
682
683/* [v1_enum] */
684Const Enum VARKIND
685 VAR_PERINSTANCE = 0
686 VAR_STATIC = 1
687 VAR_CONST = 2
688 VAR_DISPATCH = 3
689End Enum
690
691Const IMPLTYPEFLAG_FDEFAULT = &h1
692Const IMPLTYPEFLAG_FSOURCE = &h2
693Const IMPLTYPEFLAG_FRESTRICTED = &h4
694Const IMPLTYPEFLAG_FDEFAULTVTABLE = &h8
695
696Type /*Class*/ VARDESC
697'Public
698 memid As MEMBERID
699 lpstrSchema As LPOLESTR
700' /* [switch_is][switch_type] */ Union
701' /* [case()] */ oInst As DWord
702 /* [case()] */ lpvarValue As *VARIANT
703' End Union
704 elemdescVar As ELEMDESC
705 wVarFlags As Word
706 varkind As VARKIND
707/*
708 Function oInst() As DWord
709 Return lpvarValue As ULONG_PTR As DWord
710 End Function
711
712 Sub oInst(o As DWord)
713 lpvarValue = o As ULONG_PTR As *VARIANT
714 End Sub
715*/
716End Type 'Class
717
718TypeDef LPVARDESC = VARDESC
719
720Const Enum TYPEFLAGS
721 TYPEFLAG_FAPPOBJECT = &h1
722 TYPEFLAG_FCANCREATE = &h2
723 TYPEFLAG_FLICENSED = &h4
724 TYPEFLAG_FPREDECLID = &h8
725 TYPEFLAG_FHIDDEN = &h10
726 TYPEFLAG_FCONTROL = &h20
727 TYPEFLAG_FDUAL = &h40
728 TYPEFLAG_FNONEXTENSIBLE = &h80
729 TYPEFLAG_FOLEAUTOMATION = &h100
730 TYPEFLAG_FRESTRICTED = &h200
731 TYPEFLAG_FAGGREGATABLE = &h400
732 TYPEFLAG_FREPLACEABLE = &h800
733 TYPEFLAG_FDISPATCHABLE = &h1000
734 TYPEFLAG_FREVERSEBIND = &h2000
735 TYPEFLAG_FPROXY = &h4000
736End Enum
737
738Enum FUNCFLAGS
739 FUNCFLAG_FRESTRICTED = &h1
740 FUNCFLAG_FSOURCE = &h2
741 FUNCFLAG_FBINDABLE = &h4
742 FUNCFLAG_FREQUESTEDIT = &h8
743 FUNCFLAG_FDISPLAYBIND = &h10
744 FUNCFLAG_FDEFAULTBIND = &h20
745 FUNCFLAG_FHIDDEN = &h40
746 FUNCFLAG_FUSESGETLASTERROR = &h80
747 FUNCFLAG_FDEFAULTCOLLELEM = &h100
748 FUNCFLAG_FUIDEFAULT = &h200
749 FUNCFLAG_FNONBROWSABLE = &h400
750 FUNCFLAG_FREPLACEABLE = &h800
751 FUNCFLAG_FIMMEDIATEBIND = &h1000
752End Enum
753
754Const Enum VARFLAGS
755 VARFLAG_FREADONLY = &h1
756 VARFLAG_FSOURCE = &h2
757 VARFLAG_FBINDABLE = &h4
758 VARFLAG_FREQUESTEDIT = &h8
759 VARFLAG_FDISPLAYBIND = &h10
760 VARFLAG_FDEFAULTBIND = &h20
761 VARFLAG_FHIDDEN = &h40
762 VARFLAG_FRESTRICTED = &h80
763 VARFLAG_FDEFAULTCOLLELEM = &h100
764 VARFLAG_FUIDEFAULT = &h200
765 VARFLAG_FNONBROWSABLE = &h400
766 VARFLAG_FREPLACEABLE = &h800
767 VARFLAG_FIMMEDIATEBIND = &h1000
768End Enum
769
770Type /* [wire_marshal] */ CLEANLOCALSTORAGE
771 pInterface As IUnknown
772 pStorage As VoidPtr
773 flags As DWord
774End Type
775
776Type CUSTDATAITEM
777 guid As GUID
778 varValue As VARIANTARG
779End Type
780
781TypeDef LPCUSTDATAITEM = *CUSTDATAITEM
782
783Type CUSTDATA
784 cCustData As DWord
785 /* [size_is] */ prgCustData As *CUSTDATAITEM
786End Type
787
788TypeDef LPCUSTDATA = *CUSTDATA
789
790#endif /* __IOleAutomationTypes_INTERFACE_DEFINED__ */
791
792#ifndef __ICreateTypeInfo_INTERFACE_DEFINED__
793#define __ICreateTypeInfo_INTERFACE_DEFINED__
794
795/* interface ICreateTypeInfo */
796/* [local][unique][uuid][object] */
797
798TypeDef LPCREATETYPEINFO = * /* [unique] */ ICreateTypeInfo
799
800Dim IID_ICreateTypeInfo = [&h00020405, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
801
802Interface ICreateTypeInfo
803 Inherits IUnknown
804
805 Function SetGuid(
806 /* [in] */ ByRef guid As GUID) As HRESULT
807 Function SetTypeFlags(
808 /* [in] */ uTypeFlags As DWord) As HRESULT
809 Function SetDocString(
810 /* [in] */ pStrDoc As LPOLESTR) As HRESULT
811 Function SetHelpContext(
812 /* [in] */ dwHelpContext As DWord) As HRESULT
813 Function SetVersion(
814 /* [in] */ wMajorVerNum As Word,
815 /* [in] */ wMinorVerNum As Word) As HRESULT
816 Function AddRefTypeInfo(
817 /* [in] */ TInfo As ITypeInfo,
818 /* [in] */ByRef hRefType As HREFTYPE) As HRESULT
819 Function AddFuncDesc(
820 /* [in] */ index As DWord,
821 /* [in] */ ByRef FuncDesc As FUNCDESC) As HRESULT
822 Function AddImplType(
823 /* [in] */ index As DWord,
824 /* [in] */ hRefType As HREFTYPE) As HRESULT
825 Function SetImplTypeFlags(
826 /* [in] */ index As DWord,
827 /* [in] */ implTypeFlags As Long) As HRESULT
828 Function SetAlignment(
829 /* [in] */ cbAlignment As Long) As HRESULT
830 Function SetSchema(
831 /* [in] */ pStrSchema As LPOLESTR) As HRESULT
832 Function AddVarDesc(
833 /* [in] */ index As DWord,
834 /* [in] */ ByRef VarDesc As VARDESC) As HRESULT
835 Function SetFuncAndParamNames(
836 /* [in] */ index As DWord,
837 /* [in][size_is][in] */ rgszNames As *LPOLESTR,
838 /* [in] */ cNames As DWord) As HRESULT
839 Function SetVarName(
840 /* [in] */ index As DWord,
841 /* [in] */ szName As LPOLESTR) As HRESULT
842 Function SetTypeDescAlias(
843 /* [in] */ ByRef TDescAlias As TYPEDESC) As HRESULT
844 Function DefineFuncAsDllEntry(
845 /* [in] */ index As DWord,
846 /* [in] */ szDllName As LPOLESTR,
847 /* [in] */ zProcName As LPOLESTR) As HRESULT
848 Function SetFuncDocString(
849 /* [in] */ index As DWord,
850 /* [in] */ szDocString As LPOLESTR) As HRESULT
851 Function SetVarDocString(
852 /* [in] */ index As DWord,
853 /* [in] */ szDocString As LPOLESTR) As HRESULT
854 Function SetFuncHelpContext(
855 /* [in] */ index As DWord,
856 /* [in] */ dwHelpContext As DWord) As HRESULT
857 Function SetVarHelpContext(
858 /* [in] */ index As DWord,
859 /* [in] */ dwHelpContext As DWord) As HRESULT
860 Function SetMops(
861 /* [in] */ index As DWord,
862 /* [in] */ bstrMops As BSTR) As HRESULT
863 Function SetTypeIdldesc(
864 /* [in] */ ByRef IdlDesc As IDLDESC) As HRESULT
865 Function LayOut() As HRESULT
866End Interface
867
868#endif /* __ICreateTypeInfo_INTERFACE_DEFINED__ */
869
870#ifndef __ICreateTypeInfo2_INTERFACE_DEFINED__
871#define __ICreateTypeInfo2_INTERFACE_DEFINED__
872
873/* interface ICreateTypeInfo2 */
874/* [local][unique][uuid][object] */
875
876TypeDef LPCREATETYPEINFO2 = /* [unique] */ *ICreateTypeInfo2
877
878Dim IID_ICreateTypeInfo2 = [&h0002040E, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
879
880Interface ICreateTypeInfo2
881 Inherits ICreateTypeInfo
882
883 Function DeleteFuncDesc(
884 /* [in] */ index As DWord) As HRESULT
885 Function DeleteFuncDescByMemId(
886 /* [in] */ memid As *MEMBERID,
887 /* [in] */ invKind As *INVOKEKIND) As HRESULT
888 Function DeleteVarDesc(
889 /* [in] */ index As DWord) As HRESULT
890 Function DeleteVarDescByMemId(
891 /* [in] */ memid As *MEMBERID) As HRESULT
892 Function DeleteImplType(
893 /* [in] */ index As DWord) As HRESULT
894 Function SetCustData(
895 /* [in] */ ByRef guid As GUID,
896 /* [in] */ ByRef VarVal As VARIANT) As HRESULT
897 Function SetFuncCustData(
898 /* [in] */ index As DWord,
899 /* [in] */ ByRef guid As GUID,
900 /* [in] */ ByRef VarVal As VARIANT) As HRESULT
901 Function SetParamCustData(
902 /* [in] */ indexFunc As DWord,
903 /* [in] */ indexParam As DWord,
904 /* [in] */ ByRef guid As GUID,
905 /* [in] */ ByRef VarVal As VARIANT) As HRESULT
906 Function SetVarCustData(
907 /* [in] */ index As DWord,
908 /* [in] */ ByRef guid As GUID,
909 /* [in] */ ByRef VarVal As VARIANT) As HRESULT
910 Function SetImplTypeCustData(
911 /* [in] */ index As DWord,
912 /* [in] */ ByRef guid As GUID,
913 /* [in] */ ByRef VarVal As VARIANT) As HRESULT
914 Function SetHelpStringContext(
915 /* [in] */ dwHelpStringContext As DWord) As HRESULT
916 Function SetFuncHelpStringContext(
917 /* [in] */ index As DWord,
918 /* [in] */ dwHelpStringContext As DWord) As HRESULT
919 Function SetVarHelpStringContext(
920 /* [in] */ index As DWord,
921 /* [in] */ dwHelpStringContext As DWord) As HRESULT
922 Function Invalidate() As HRESULT
923 Function SetName(
924 /* [in] */ szName As LPOLESTR) As HRESULT
925End Interface
926
927#endif /* __ICreateTypeInfo2_INTERFACE_DEFINED__ */
928
929
930#ifndef __ICreateTypeLib_INTERFACE_DEFINED__
931#define __ICreateTypeLib_INTERFACE_DEFINED__
932
933/* interface ICreateTypeLib */
934/* [local][unique][uuid][object] */
935
936TypeDef LPCREATETYPELIB = /* [unique] */ *ICreateTypeLib
937
938Dim IID_ICreateTypeLib = [&h00020406, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
939Interface ICreateTypeLib
940 Inherits IUnknown
941
942 Function CreateTypeInfo(
943 /* [in] */ szName As LPOLESTR,
944 /* [in] */ tkind As *TYPEKIND,
945 /* [out] */ ByRef CTInfo As ICreateTypeInfo) As HRESULT
946 Function SetName(
947 /* [in] */ szName As LPOLESTR) As HRESULT
948 Function SetVersion(
949 /* [in] */ wMajorVerNum As Word,
950 /* [in] */ wMinorVerNum As Word) As HRESULT
951 Function SetGuid(
952 /* [in] */ ByRef guid As GUID) As HRESULT
953 Function SetDocString(
954 /* [in] */ szDoc As LPOLESTR) As HRESULT
955 Function SetHelpFileName(
956 /* [in] */ szHelpFileName As LPOLESTR) As HRESULT
957 Function SetHelpContext(
958 /* [in] */ dwHelpContext As DWord) As HRESULT
959 Function SetLcid(
960 /* [in] */ lcid As LCID) As HRESULT
961 Function SetLibFlags(
962 /* [in] */ uLibFlags As DWord) As HRESULT
963 Function SaveAllChanges() As HRESULT
964End Interface
965
966#endif /* __ICreateTypeLib_INTERFACE_DEFINED__ */
967
968#ifndef __ICreateTypeLib2_INTERFACE_DEFINED__
969#define __ICreateTypeLib2_INTERFACE_DEFINED__
970
971/* interface ICreateTypeLib2 */
972/* [local][unique][uuid][object] */
973
974TypeDef LPCREATETYPELIB2 = /* [unique] */ *ICreateTypeLib2
975
976
977Dim IID_ICreateTypeLib2 = [&h0002040F, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
978
979Interface ICreateTypeLib2
980 Inherits ICreateTypeLib
981
982 Function DeleteTypeInfo(
983 /* [in] */ szName As LPOLESTR) As HRESULT
984 Function SetCustData(
985 /* [in] */ ByRef guid As GUID,
986 /* [in] */ ByRef VarVal As VARIANT) As HRESULT
987 Function SetHelpStringContext(
988 /* [in] */ dwHelpStringContext As DWord) As HRESULT
989 Function SetHelpStringDll(
990 /* [in] */ szFileName As LPOLESTR) As HRESULT
991End Interface
992
993
994#endif /* __ICreateTypeLib2_INTERFACE_DEFINED__ */
995
996#ifndef __IDispatch_INTERFACE_DEFINED__
997#define __IDispatch_INTERFACE_DEFINED__
998
999/* interface IDispatch */
1000/* [unique][uuid][object] */
1001
1002Typedef LPDISPATCH = /* [unique] */ *IDispatch
1003
1004Const DISPID_UNKNOWN = -1
1005Const DISPID_VALUE = 0
1006Const DISPID_PROPERTYPUT = -3
1007Const DISPID_NEWENUM = -4
1008Const DISPID_EVALUATE = -5
1009Const DISPID_CONSTRUCTOR = -6
1010Const DISPID_DESTRUCTOR = -7
1011Const DISPID_COLLECT = -8
1012
1013/* The range -500 through -999 is reserved for Controls */
1014/* The range 0x80010000 through 0x8001FFFF is reserved for Controls */
1015/* The range -5000 through -5499 is reserved for ActiveX Accessability */
1016/* The range -2000 through -2499 is reserved for VB5 */
1017/* The range -3900 through -3999 is reserved for Forms */
1018/* The range -5500 through -5550 is reserved for Forms */
1019/* The remainder of the negative DISPIDs are reserved for future use */
1020
1021Dim IID_IDispatch = [&h00020400, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1022
1023Interface IDispatch
1024 Inherits IUnknown
1025
1026 Function GetTypeInfoCount(
1027 /* [out] */ ByRef pctinfo As DWord) As HRESULT
1028 Function GetTypeInfo(
1029 /* [in] */ iTInfo As DWord,
1030 /* [in] */ lcid As LCID,
1031 /* [out] */ ByRef TInfo As ITypeInfo) As HRESULT
1032 Function GetIDsOfNames(
1033 /* [in] */ ByRef riid As IID,
1034 /* [size_is][in] */ rgszNames As *LPOLESTR,
1035 /* [in] */ cNames As DWord,
1036 /* [in] */ lcid As LCID,
1037 /* [size_is][out] */ rgDispId As *DISPID) As HRESULT
1038 Function /* [local] */ Invoke(
1039 /* [in] */ dispIdMember As DISPID,
1040 /* [in] */ ByRef riid As IID,
1041 /* [in] */ lcid As LCID,
1042 /* [in] */ wFlags As Word,
1043 /* [out][in] */ ByRef pDispParams As DISPPARAMS,
1044 /* [out] */ ByRef pVarResult As VARIANT,
1045 /* [out] */ ByRef pExcepInfo As EXCEPINFO,
1046 /* [out] */ ByRef puArgErr As DWord) As HRESULT
1047End Interface
1048
1049#endif /* __IDispatch_INTERFACE_DEFINED__ */
1050
1051#ifndef __IEnumVARIANT_INTERFACE_DEFINED__
1052#define __IEnumVARIANT_INTERFACE_DEFINED__
1053
1054/* interface IEnumVARIANT */
1055/* [unique][uuid][object] */
1056
1057Typedef LPENUMVARIANT = /* [unique] */ *IEnumVARIANT
1058
1059Dim IID_IEnumVARIANT = [&h00020404, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1060
1061Interface IEnumVARIANT
1062 Inherits IUnknown
1063
1064 /* [local] */ Function Next(
1065 /* [in] */ celt As DWord,
1066 /* [length_is][size_is][out] */ rgVar As *VARIANT,
1067 /* [out] */ pCeltFetched As *DWord) As HRESULT
1068 Function Skip(
1069 /* [in] */ celt As DWord) As HRESULT
1070 Function Reset() As HRESULT
1071 Function Clone(
1072 /* [out] */ ByRef enum_ As IEnumVARIANT) As HRESULT
1073
1074End Interface
1075
1076#endif /* __IEnumVARIANT_INTERFACE_DEFINED__ */
1077
1078#ifndef __ITypeComp_INTERFACE_DEFINED__
1079#define __ITypeComp_INTERFACE_DEFINED__
1080
1081/* interface ITypeComp */
1082/* [unique][uuid][object] */
1083
1084TypeDef LPTYPECOMP = /* [unique] */ *ITypeComp
1085
1086/* [v1_enum] */
1087Const Enum DESCKIND
1088 DESCKIND_NONE
1089 DESCKIND_FUNCDESC = DESCKIND_NONE
1090 DESCKIND_VARDESC = DESCKIND_FUNCDESC
1091 DESCKIND_TYPECOMP = DESCKIND_VARDESC
1092 DESCKIND_IMPLICITAPPOBJ = DESCKIND_TYPECOMP
1093 DESCKIND_MAX = DESCKIND_IMPLICITAPPOBJ
1094End Enum
1095/*
1096Union BINDPTR
1097 lpfuncdesc As *FUNCDESC
1098 lpvardesc As *VARDESC
1099 lptcomp As ITypeComp
1100End Union
1101*/
1102Type BINDPTR
1103 p As VoidPtr '暫定
1104End Type
1105
1106TypeDef LPBINDPTR = *BINDPTR
1107
1108Dim IID_ITypeComp = [&h00020403, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1109
1110Interface ITypeComp
1111 Inherits IUnknown
1112
1113 Function /* [local] */ Bind(
1114 /* [in] */ szName As LPOLESTR,
1115 /* [in] */ HashVal As DWord,
1116 /* [in] */ wFlags As Word,
1117 /* [out] */ ByRef TInfo As ITypeInfo,
1118 /* [out] */ ByRef DescKind As DESCKIND,
1119 /* [out] */ ByRef BindPtr As BINDPTR) As HRESULT
1120
1121 Function /* [local] */ BindType(
1122 /* [in] */ szName As LPOLESTR,
1123 /* [in] */ HashVal As DWord,
1124 /* [out] */ ByRef TInfo As ITypeInfo,
1125 /* [out] */ ByRef TComp As ITypeComp) As HRESULT
1126End Interface
1127
1128#endif /* __ITypeComp_INTERFACE_DEFINED__ */
1129
1130#ifndef __ITypeInfo_INTERFACE_DEFINED__
1131#define __ITypeInfo_INTERFACE_DEFINED__
1132
1133/* interface ITypeInfo */
1134/* [unique][uuid][object] */
1135
1136TypeDef LPTYPEINFO = /* [unique] */ *ITypeInfo
1137
1138Dim IID_ITypeInfo = [&h00020401, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1139
1140Interface ITypeInfo
1141 Inherits IUnknown
1142
1143 Function /* [local] */ GetTypeAttr(
1144 /* [out] */ ByRef pTypeAttr As *TYPEATTR) As HRESULT
1145 Function GetTypeComp(
1146 /* [out] */ ByRef TComp As ITypeComp) As HRESULT
1147 Function /* [local] */ GetFuncDesc(
1148 /* [in] */ index As DWord,
1149 /* [out] */ ByRef pFuncDesc As *FUNCDESC) As HRESULT
1150 Function /* [local] */ GetVarDesc(
1151 /* [in] */ index As DWord,
1152 /* [out] */ ByRef pVarDesc As *VARDESC) As HRESULT
1153 Function /* [local] */ GetNames(
1154 /* [in] */ memid As MEMBERID,
1155 /* [length_is][size_is][out] */ rgBstrNames As *BSTR,
1156 /* [in] */ cMaxNames As DWord,
1157 /* [out] */ ByRef cNames As DWord) As HRESULT
1158 Function GetRefTypeOfImplType(
1159 /* [in] */ index As DWord,
1160 /* [out] */ ByRef RefType As HREFTYPE) As HRESULT
1161 Function GetImplTypeFlags(
1162 /* [in] */ index As DWord,
1163 /* [out] */ ByRef ImplTypeFlags As Long) As HRESULT
1164 Function /* [local] */ GetIDsOfNames(
1165 /* [size_is][in] */ rgszNames As *LPOLESTR,
1166 /* [in] */ cNames As DWord,
1167 /* [size_is][out] */ pMemId As *MEMBERID) As HRESULT
1168 Function /* [local] */ Invoke(
1169 /* [in] */ pvInstance As VoidPtr,
1170 /* [in] */ memid As MEMBERID,
1171 /* [in] */ wFlags As Word,
1172 /* [out][in] */ ByRef DispParams As DISPPARAMS,
1173 /* [out] */ ByRef VarResult As VARIANT,
1174 /* [out] */ ByRef ExcepInfo As EXCEPINFO,
1175 /* [out] */ ByRef uArgErr As DWord) As HRESULT
1176 Function /* [local] */ GetDocumentation(
1177 /* [in] */ memid As MEMBERID,
1178 /* [out] */ ByRef BstrName As BSTR,
1179 /* [out] */ ByRef BstrDocString As BSTR,
1180 /* [out] */ ByRef dwHelpContext As DWord,
1181 /* [out] */ ByRef BstrHelpFile As BSTR) As HRESULT
1182 Function /* [local] */ GetDllEntry(
1183 /* [in] */ memid As MEMBERID,
1184 /* [in] */ invKind As INVOKEKIND,
1185 /* [out] */ ByRef BstrDllName As BSTR,
1186 /* [out] */ ByRef BstrName As BSTR,
1187 /* [out] */ ByRef wOrdinal As Word) As HRESULT
1188 Function GetRefTypeInfo(
1189 /* [in] */ hRefType As HREFTYPE,
1190 /* [out] */ ByRef TInfo As ITypeInfo) As HRESULT
1191 Function /* [local] */ AddressOfMember(
1192 /* [in] */ memid As MEMBERID,
1193 /* [in] */ invKind As INVOKEKIND,
1194 /* [out] */ ByRef pv As VoidPtr) As HRESULT
1195 Function /* [local] */ CreateInstance(
1196 /* [in] */ pUnkOuter As IUnknown,
1197 /* [in] */ ByRef riid As IID,
1198 /* [iid_is][out] */ ByRef pvObj As Any) As HRESULT
1199 Function GetMops(
1200 /* [in] */ memid As MEMBERID,
1201 /* [out] */ ByRef BstrMops As BSTR) As HRESULT
1202 Function /* [local] */ GetContainingTypeLib(
1203 /* [out] */ ByRef TLib As ITypeLib,
1204 /* [out] */ ByRef Index As DWord) As HRESULT
1205 Sub /* [local] */ ReleaseTypeAttr(
1206 /* [in] */ pTypeAttr As *TYPEATTR)
1207 Sub /* [local] */ ReleaseFuncDesc(
1208 /* [in] */ pFuncDesc As *FUNCDESC)
1209 Sub /* [local] */ ReleaseVarDesc(
1210 /* [in] */ pVarDesc As *VARDESC)
1211End Interface
1212
1213#endif /* __ITypeInfo_INTERFACE_DEFINED__ */
1214
1215#ifndef __ITypeInfo2_INTERFACE_DEFINED__
1216#define __ITypeInfo2_INTERFACE_DEFINED__
1217
1218/* interface ITypeInfo2 */
1219/* [unique][uuid][object] */
1220
1221TypeDef LPTYPEINFO2 = /* [unique] */ *ITypeInfo2
1222
1223Dim IID_ITypeInfo2 = [&h00020412, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1224
1225Interface ITypeInfo2
1226 Inherits ITypeInfo
1227
1228 Function GetTypeKind(
1229 /* [out] */ ByRef TypeKind As TYPEKIND) As HRESULT
1230 Function GetTypeFlags(
1231 /* [out] */ ByRef TypeFlags As DWord) As HRESULT
1232 Function GetFuncIndexOfMemId(
1233 /* [in] */ memid As MEMBERID,
1234 /* [in] */ invKind As INVOKEKIND,
1235 /* [out] */ ByRef FuncIndex As DWord) As HRESULT
1236 Function GetVarIndexOfMemId(
1237 /* [in] */ memid As MEMBERID,
1238 /* [out] */ ByRef pVarIndex As DWord) As HRESULT
1239 Function GetCustData(
1240 /* [in] */ ByRef guid As GUID,
1241 /* [out] */ ByRef VarVal As VARIANT) As HRESULT
1242 Function GetFuncCustData(
1243 /* [in] */ index As DWord,
1244 /* [in] */ ByRef guid As GUID,
1245 /* [out] */ ByRef VarVal As VARIANT) As HRESULT
1246 Function GetParamCustData(
1247 /* [in] */ indexFunc As DWord,
1248 /* [in] */ indexParam As DWord,
1249 /* [in] */ ByRef guid As GUID,
1250 /* [out] */ ByRef VarVal As VARIANT) As HRESULT
1251 Function GetVarCustData(
1252 /* [in] */ index As DWord,
1253 /* [in] */ ByRef guid As GUID,
1254 /* [out] */ ByRef VarVal As VARIANT) As HRESULT
1255 Function GetImplTypeCustData(
1256 /* [in] */ index As DWord,
1257 /* [in] */ ByRef guid As GUID,
1258 /* [out] */ ByRef VarVal As VARIANT) As HRESULT
1259 Function /* [local] */ GetDocumentation2(
1260 /* [in] */ memid As MEMBERID,
1261 /* [in] */ lcid As LCID,
1262 /* [out] */ ByRef bstrHelpString As BSTR,
1263 /* [out] */ ByRef dwHelpStringContext As DWord,
1264 /* [out] */ ByRef bstrHelpStringDll As BSTR) As HRESULT
1265 Function GetAllCustData(
1266 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT
1267 Function GetAllFuncCustData(
1268 /* [in] */ index As DWord,
1269 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT
1270 Function GetAllParamCustData(
1271 /* [in] */ indexFunc As DWord,
1272 /* [in] */ indexParam As DWord,
1273 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT
1274 Function GetAllVarCustData(
1275 /* [in] */ index As DWord,
1276 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT
1277 Function GetAllImplTypeCustData(
1278 /* [in] */ index As DWord,
1279 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT
1280End Interface
1281
1282#endif /* __ITypeInfo2_INTERFACE_DEFINED__ */
1283
1284#ifndef __ITypeLib_INTERFACE_DEFINED__
1285#define __ITypeLib_INTERFACE_DEFINED__
1286
1287/* interface ITypeLib */
1288/* [unique][uuid][object] */
1289
1290/* [v1_enum] */
1291Const Enum SYSKIND
1292 SYS_WIN16 = 0
1293 SYS_WIN32 = 1
1294 SYS_MAC = 2
1295 SYS_WIN64 = 3
1296End Enum
1297
1298/* [v1_enum] */
1299Const Enum LIBFLAGS
1300 LIBFLAG_FRESTRICTED = &h1
1301 LIBFLAG_FCONTROL = &h2
1302 LIBFLAG_FHIDDEN = &h4
1303 LIBFLAG_FHASDISKIMAGE = &h8
1304End Enum
1305
1306TypeDef LPTYPELIB = /* [unique] */ *ITypeLib
1307
1308Type TLIBATTR
1309 guid As GUID
1310 lcid As LCID
1311 syskind As SYSKIND
1312 wMajorVerNum As Word
1313 wMinorVerNum As Word
1314 wLibFlags As Word
1315End Type
1316
1317TypeDef LPTLIBATTR = TLIBATTR
1318
1319Dim ITypeLib = [&h00020402, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1320
1321Interface ITypeLib
1322 Inherits IUnknown
1323
1324 Function /* [local] */ GetTypeInfoCount() As DWord
1325 Function GetTypeInfo(
1326 /* [in] */ index As DWord,
1327 /* [out] */ ByRef TInfo As ITypeInfo) As HRESULT
1328 Function GetTypeInfoType(
1329 /* [in] */ index As DWord,
1330 /* [out] */ ByRef TKind As TYPEKIND) As HRESULT
1331 Function GetTypeInfoOfGuid(
1332 /* [in] */ ByRef guid As GUID,
1333 /* [out] */ ByRef TInfo As ITypeInfo) As HRESULT
1334 Function /* [local] */ GetLibAttr(
1335 /* [out] */ ByRef TLibAttr As TLIBATTR) As HRESULT
1336 Function GetTypeComp(
1337 /* [out] */ ByRef TComp As ITypeComp) As HRESULT
1338 Function /* [local] */ GetDocumentation(
1339 /* [in] */ index As Long,
1340 /* [out] */ ByRef BstrName As BSTR,
1341 /* [out] */ ByRef BstrDocString As BSTR,
1342 /* [out] */ ByRef dwHelpContext As DWord,
1343 /* [out] */ ByRef BstrHelpFile As BSTR) As HRESULT
1344 Function /* [local] */ IsName(
1345 /* [out][in] */ szNameBuf As LPOLESTR,
1346 /* [in] */ lHashVal As DWord,
1347 /* [out] */ ByRef pfName As BOOL) As HRESULT
1348 Function /* [local] */ FindName(
1349 /* [out][in] */ szNameBuf As LPOLESTR,
1350 /* [in] */ lHashVal As DWord,
1351 /* [length_is][size_is][out] */ pTInfo As *ITypeInfo,
1352 /* [length_is][size_is][out] */ rgMemId As *MEMBERID,
1353 /* [out][in] */ ByRef cFound As Word) As HRESULT
1354 Sub /* [local] */ ReleaseTLibAttr(
1355 /* [in] */ ByRef TLibAttr As TLIBATTR)
1356End Interface
1357
1358#endif /* __ITypeLib_INTERFACE_DEFINED__ */
1359
1360
1361#ifndef __ITypeLib2_INTERFACE_DEFINED__
1362#define __ITypeLib2_INTERFACE_DEFINED__
1363
1364/* interface ITypeLib2 */
1365/* [unique][uuid][object] */
1366
1367TypeDef LPTYPELIB2 = /* [unique] */ *ITypeLib2
1368
1369Dim IID_ITypeLib2 = [&h00020411, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1370
1371Interface ITypeLib2
1372 Inherits ITypeLib
1373
1374 Function GetCustData(
1375 /* [in] */ ByRef guid As GUID,
1376 /* [out] */ ByRef VarVal As VARIANT) As HRESULT
1377 /* [local] */ Function GetLibStatistics(
1378 /* [out] */ ByRef cUniqueNames As DWord,
1379 /* [out] */ ByRef chUniqueNames As DWord) As HRESULT
1380 /* [local] */ Function GetDocumentation2(
1381 /* [in] */ index As Long,
1382 /* [in] */ lcid As LCID,
1383 /* [out] */ ByRef bstrHelpString As BSTR,
1384 /* [out] */ ByRef dwHelpStringContext As DWord,
1385 /* [out] */ ByRef bstrHelpStringDll As BSTR) As HRESULT
1386 Function GetAllCustData(
1387 /* [out] */ ByRef CustData As CUSTDATA) As HRESULT
1388End Interface
1389
1390#endif /* __ITypeLib2_INTERFACE_DEFINED__ */
1391
1392
1393#ifndef __ITypeChangeEvents_INTERFACE_DEFINED__
1394#define __ITypeChangeEvents_INTERFACE_DEFINED__
1395
1396/* interface ITypeChangeEvents */
1397/* [local][unique][uuid][object] */
1398
1399TypeDef LPTYPECHANGEEVENTS = /* [unique] */ *ITypeChangeEvents
1400
1401Enum CHANGEKIND
1402 CHANGEKIND_ADDMEMBER = 0
1403 CHANGEKIND_DELETEMEMBER = 1
1404 CHANGEKIND_SETNAMES = 2
1405 CHANGEKIND_SETDOCUMENTATION = 3
1406 CHANGEKIND_GENERAL = 4
1407 CHANGEKIND_INVALIDATE = 5
1408 CHANGEKIND_CHANGEFAILED = 6
1409 CHANGEKIND_MAX = 7
1410End Enum
1411
1412Dim IID_ITypeChangeEvents = [&h00020410, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1413
1414Interface ITypeChangeEvents
1415 Inherits IUnknown
1416
1417 Function RequestTypeChange(
1418 /* [in] */ changeKind As CHANGEKIND,
1419 /* [in] */ TInfoBefore As ITypeInfo,
1420 /* [in] */ pStrName As LPOLESTR,
1421 /* [out] */ ByRef fCancel As Long) As HRESULT
1422 Function AfterTypeChange(
1423 /* [in] */ changeKind As CHANGEKIND,
1424 /* [in] */ TInfoAfter As ITypeInfo,
1425 /* [in] */ pStrName As LPOLESTR) As HRESULT
1426End Interface
1427
1428#endif /* __ITypeChangeEvents_INTERFACE_DEFINED__ */
1429
1430
1431#ifndef __IErrorInfo_INTERFACE_DEFINED__
1432#define __IErrorInfo_INTERFACE_DEFINED__
1433
1434/* interface IErrorInfo */
1435/* [unique][uuid][object] */
1436
1437TypeDef LPERRORINFO = /* [unique] */ *IErrorInfo
1438
1439Dim IID_IErrorInfo = [&h1CF2B120, &h547D, &h101B, [&h8E, &h65, &h08, &h00, &h2B, &h2B, &hD1, &h19]] As IID
1440
1441Interface IErrorInfo
1442 Inherits IUnknown
1443
1444 Function GetGUID(
1445 /* [out] */ ByRef guid As GUID) As HRESULT
1446 Function GetSource(
1447 /* [out] */ ByRef BstrSource As BSTR) As HRESULT
1448 Function GetDescription(
1449 /* [out] */ ByRef BstrDescription As BSTR) As HRESULT
1450 Function GetHelpFile(
1451 /* [out] */ ByRef BstrHelpFile As BSTR) As HRESULT
1452 Function GetHelpContext(
1453 /* [out] */ ByRef dwHelpContext As DWord) As HRESULT
1454End Interface
1455
1456#endif /* __IErrorInfo_INTERFACE_DEFINED__ */
1457
1458
1459#ifndef __ICreateErrorInfo_INTERFACE_DEFINED__
1460#define __ICreateErrorInfo_INTERFACE_DEFINED__
1461
1462/* interface ICreateErrorInfo */
1463/* [unique][uuid][object] */
1464
1465TypeDef LPCREATEERRORINFO = /* [unique] */ *ICreateErrorInfo
1466
1467Dim IID_ICreateErrorInfo = [&h22F03340, &h547D, &h101B, [&h8E, &h65, &h08, &h00, &h2B, &h2B, &hD1, &h19]] As IID
1468
1469Interface ICreateErrorInfo
1470 Inherits IUnknown
1471
1472 Function SetGUID(
1473 /* [in] */ ByRef rguid As GUID) As HRESULT
1474 Function SetSource(
1475 /* [in] */ szSource As LPOLESTR) As HRESULT
1476 Function SetDescription(
1477 /* [in] */ szDescription As LPOLESTR) As HRESULT
1478 Function SetHelpFile(
1479 /* [in] */ szHelpFile As LPOLESTR) As HRESULT
1480 Function SetHelpContext(
1481 /* [in] */ dwHelpContext As DWord) As HRESULT
1482End Interface
1483
1484#endif /* __ICreateErrorInfo_INTERFACE_DEFINED__ */
1485
1486
1487#ifndef __ISupportErrorInfo_INTERFACE_DEFINED__
1488#define __ISupportErrorInfo_INTERFACE_DEFINED__
1489
1490/* interface ISupportErrorInfo */
1491/* [unique][uuid][object] */
1492
1493TypeDef LPSUPPORTERRORINFO = /* [unique] */ *ISupportErrorInfo
1494
1495Dim IID_ISupportErrorInfo = [&hDF0B3D60, &h548F, &h101B, [&h8E, &h65, &h08, &h00, &h2B, &h2B, &hD1, &h19]] As IID
1496
1497Interface ISupportErrorInfo
1498 Inherits IUnknown
1499
1500 Function InterfaceSupportsErrorInfo(
1501 /* [in] */ ByRef riid As IID) As HRESULT
1502End Interface
1503
1504#endif /* __ISupportErrorInfo_INTERFACE_DEFINED__ */
1505
1506
1507#ifndef __ITypeFactory_INTERFACE_DEFINED__
1508#define __ITypeFactory_INTERFACE_DEFINED__
1509
1510/* interface ITypeFactory */
1511/* [uuid][object] */
1512
1513Dim IID_ITypeFactory = [&h0000002E, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1514
1515Interface ITypeFactory
1516 Inherits IUnknown
1517
1518 Function CreateFromTypeInfo(
1519 /* [in] */ TypeInfo As ITypeInfo,
1520 /* [in] */ ByRef riid As IID,
1521 /* [iid_is][out] */ ByRef pv As IUnknown) As HRESULT
1522End Interface
1523
1524#endif /* __ITypeFactory_INTERFACE_DEFINED__ */
1525
1526
1527#ifndef __ITypeMarshal_INTERFACE_DEFINED__
1528#define __ITypeMarshal_INTERFACE_DEFINED__
1529
1530/* interface ITypeMarshal */
1531/* [uuid][object][local] */
1532
1533Dim IID_ITypeMarshal = [&h0000002D, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1534
1535Interface ITypeMarshal
1536 Inherits IUnknown
1537
1538 Function Size(
1539 /* [in] */ pvType As VoidPtr,
1540 /* [in] */ dwDestContext As DWord,
1541 /* [in] */ pvDestContext As VoidPtr,
1542 /* [out] */ ByRef Size As DWord) As HRESULT
1543 Function Marshal(
1544 /* [in] */ pvType As VoidPtr,
1545 /* [in] */ dwDestContext As DWord,
1546 /* [in] */ pvDestContext As VoidPtr,
1547 /* [in] */ cbBufferLength As DWord,
1548 /* [out] */ pBuffer As *Byte,
1549 /* [out] */ ByRef cbWritten As DWord) As HRESULT
1550 Function Unmarshal(
1551 /* [out] */ pvType As VoidPtr,
1552 /* [in] */ dwFlags As DWord,
1553 /* [in] */ cbBufferLength As DWord,
1554 /* [in] */ pBuffer As *Byte,
1555 /* [out] */ ByRef cbRead As DWord) As HRESULT
1556 Function Free(
1557 /* [in] */ pvType As VoidPtr) As HRESULT
1558End Interface
1559
1560#endif /* __ITypeMarshal_INTERFACE_DEFINED__ */
1561
1562
1563#ifndef __IRecordInfo_INTERFACE_DEFINED__
1564#define __IRecordInfo_INTERFACE_DEFINED__
1565
1566/* interface IRecordInfo */
1567/* [uuid][object][local] */
1568
1569TypeDef LPRECORDINFO = /* [unique] */ *IRecordInfo
1570
1571Dim IID_IRecordInfo = [&h0000002F, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID
1572
1573Interface IRecordInfo
1574 Inherits IUnknown
1575
1576 Function RecordInit(
1577 /* [out] */ pvNew As VoidPtr) As HRESULT
1578 Function RecordClear(
1579 /* [in] */ pvExisting As VoidPtr) As HRESULT
1580 Function RecordCopy(
1581 /* [in] */ pvExisting As VoidPtr,
1582 /* [out] */ pvNew As VoidPtr) As HRESULT
1583 Function GetGuid(
1584 /* [out] */ ByRef guid As GUID) As HRESULT
1585 Function GetName(
1586 /* [out] */ ByRef bstrName As BSTR) As HRESULT
1587 Function GetSize(
1588 /* [out] */ ByRef cbSize As DWord) As HRESULT
1589 Function GetTypeInfo(
1590 /* [out] */ ByRef TypeInfo As ITypeInfo) As HRESULT
1591 Function GetField(
1592 /* [in] */ pvData As VoidPtr,
1593 /* [in] */ szFieldName As LPCOLESTR,
1594 /* [out] */ ByRef varField As VARIANT) As HRESULT
1595 Function GetFieldNoCopy(
1596 /* [in] */ pvData As VoidPtr,
1597 /* [in] */ szFieldName As LPCOLESTR,
1598 /* [out] */ ByRef varField As VARIANT,
1599 /* [out] */ ByRef pvDataCArray As VoidPtr) As HRESULT
1600 Function PutField(
1601 /* [in] */ wFlags As DWord,
1602 /* [out][in] */ pvData As VoidPtr,
1603 /* [in] */ szFieldName As LPCOLESTR,
1604 /* [in] */ ByRef varField As VARIANT) As HRESULT
1605 Function PutFieldNoCopy(
1606 /* [in] */ wFlags As DWord,
1607 /* [out][in] */ pvData As VoidPtr,
1608 /* [in] */ szFieldName As LPCOLESTR,
1609 /* [in] */ ByRef varField As VARIANT) As HRESULT
1610 Function GetFieldNames(
1611 /* [out][in] */ ByRef cNames As DWord,
1612 /* [length_is][size_is][out] */ rgBstrNames As *BSTR) As HRESULT
1613 Function IsMatchingType(
1614 /* [in] */ RecordInfo As IRecordInfo) As BOOL
1615 Function RecordCreate() As VoidPtr
1616 Function RecordCreateCopy(
1617 /* [in] */ pvSource As VoidPtr,
1618 /* [out] */ ByRef pvDest As VoidPtr) As HRESULT
1619 Function RecordDestroy(
1620 /* [in] */ pvRecord As VoidPtr) As HRESULT
1621End Interface
1622
1623#endif /* __IRecordInfo_INTERFACE_DEFINED__ */
1624
1625
1626#ifndef __IErrorLog_INTERFACE_DEFINED__
1627#define __IErrorLog_INTERFACE_DEFINED__
1628
1629/* interface IErrorLog */
1630/* [unique][uuid][object] */
1631
1632TypeDef LPERRORLOG = *IErrorLog
1633
1634Dim IID_IErrorLog = [&h3127CA40, &h446E, &h11CE, [&h81, &h35, &h00, &hAA, &h00, &h4B, &hB8, &h51]] As IID
1635
1636Interface IErrorLog
1637 Inherits IUnknown
1638
1639 Function AddError(
1640 /* [in] */ pszPropName As LPCOLESTR,
1641 /* [in] */ ByRef pExcepInfo As EXCEPINFO) As HRESULT
1642End Interface
1643
1644#endif /* __IErrorLog_INTERFACE_DEFINED__ */
1645
1646
1647#ifndef __IPropertyBag_INTERFACE_DEFINED__
1648#define __IPropertyBag_INTERFACE_DEFINED__
1649
1650/* interface IPropertyBag */
1651/* [unique][uuid][object] */
1652
1653TypeDef LPPROPERTYBAG = *IPropertyBag
1654
1655Dim IID_IPropertyBag = [&h55272A00, &h42CB, &h11CE, [&h81, &h35, &h00, &hAA, &h00, &h4B, &hB8, &h51]] As IID
1656
1657Interface IPropertyBag
1658 Inherits IUnknown
1659
1660 /* [local] */ Function Read(
1661 /* [in] */ pszPropName As LPCOLESTR,
1662 /* [out][in] */ ByRef Var As VARIANT,
1663 /* [in] */ ErrorLog As IErrorLog) As HRESULT
1664
1665 Function Write(
1666 /* [in] */ pszPropName As LPCOLESTR,
1667 /* [in] */ ByRef Var As VARIANT) As HRESULT
1668End Interface
1669
1670#endif /* __IPropertyBag_INTERFACE_DEFINED__ */
1671
Note: See TracBrowser for help on using the repository browser.