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