forked from nvaccess/nvda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patholeTypes.py
executable file
·581 lines (580 loc) · 21.7 KB
/
oleTypes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
# typelib <unable to determine filename>
_lcid = 0 # change this if required
from ctypes import *
WSTRING = c_wchar_p
from comtypes import IUnknown
LONG_PTR = c_int
from comtypes import GUID
from comtypes import IUnknown
from ctypes import HRESULT
from comtypes import helpstring
from comtypes import COMMETHOD
from comtypes import dispid
from comtypes.persist import IPersist
from comtypes import wireHWND
from comtypes import GUID
from comtypes import _COAUTHIDENTITY
UINT_PTR = c_ulong
from comtypes import _COSERVERINFO
from comtypes import _COAUTHINFO
from comtypes import tagBIND_OPTS2
from objidl import IBindCtx, IMoniker
class tagDVTARGETDEVICE(Structure):
pass
tagDVTARGETDEVICE._fields_ = [
('tdSize', c_ulong),
('tdDriverNameOffset', c_ushort),
('tdDeviceNameOffset', c_ushort),
('tdPortNameOffset', c_ushort),
('tdExtDevmodeOffset', c_ushort),
('tdData', POINTER(c_ubyte)),
]
assert sizeof(tagDVTARGETDEVICE) == 16, sizeof(tagDVTARGETDEVICE)
assert alignment(tagDVTARGETDEVICE) == 4, alignment(tagDVTARGETDEVICE)
class _BYTE_BLOB(Structure):
pass
_BYTE_BLOB._fields_ = [
('clSize', c_ulong),
('abData', POINTER(c_ubyte)),
]
assert sizeof(_BYTE_BLOB) == 8, sizeof(_BYTE_BLOB)
assert alignment(_BYTE_BLOB) == 4, alignment(_BYTE_BLOB)
class tagRECT(Structure):
pass
tagRECT._fields_ = [
('left', c_int),
('top', c_int),
('right', c_int),
('bottom', c_int),
]
assert sizeof(tagRECT) == 16, sizeof(tagRECT)
assert alignment(tagRECT) == 4, alignment(tagRECT)
class __MIDL_IWinTypes_0003(Union):
pass
class _FLAGGED_BYTE_BLOB(Structure):
pass
__MIDL_IWinTypes_0003._fields_ = [
('hInproc', c_int),
('hRemote', POINTER(_FLAGGED_BYTE_BLOB)),
('hInproc64', c_longlong),
]
assert sizeof(__MIDL_IWinTypes_0003) == 8, sizeof(__MIDL_IWinTypes_0003)
assert alignment(__MIDL_IWinTypes_0003) == 8, alignment(__MIDL_IWinTypes_0003)
class _userSTGMEDIUM(Structure):
pass
class _STGMEDIUM_UNION(Structure):
pass
class __MIDL_IAdviseSink_0003(Union):
pass
class _userHMETAFILEPICT(Structure):
pass
class _userHENHMETAFILE(Structure):
pass
class _GDI_OBJECT(Structure):
pass
class _userHGLOBAL(Structure):
pass
__MIDL_IAdviseSink_0003._fields_ = [
('hMetaFilePict', POINTER(_userHMETAFILEPICT)),
('hHEnhMetaFile', POINTER(_userHENHMETAFILE)),
('hGdiHandle', POINTER(_GDI_OBJECT)),
('hGlobal', POINTER(_userHGLOBAL)),
('lpszFileName', WSTRING),
('pstm', POINTER(_BYTE_BLOB)),
('pstg', POINTER(_BYTE_BLOB)),
]
assert sizeof(__MIDL_IAdviseSink_0003) == 4, sizeof(__MIDL_IAdviseSink_0003)
assert alignment(__MIDL_IAdviseSink_0003) == 4, alignment(__MIDL_IAdviseSink_0003)
_STGMEDIUM_UNION._fields_ = [
('tymed', c_ulong),
('u', __MIDL_IAdviseSink_0003),
]
assert sizeof(_STGMEDIUM_UNION) == 8, sizeof(_STGMEDIUM_UNION)
assert alignment(_STGMEDIUM_UNION) == 4, alignment(_STGMEDIUM_UNION)
_userSTGMEDIUM._fields_ = [
('__MIDL__IAdviseSink0003', _STGMEDIUM_UNION),
('pUnkForRelease', POINTER(IUnknown)),
]
assert sizeof(_userSTGMEDIUM) == 12, sizeof(_userSTGMEDIUM)
assert alignment(_userSTGMEDIUM) == 4, alignment(_userSTGMEDIUM)
class tagLOGPALETTE(Structure):
pass
class tagPALETTEENTRY(Structure):
pass
tagLOGPALETTE._pack_ = 2
tagLOGPALETTE._fields_ = [
('palVersion', c_ushort),
('palNumEntries', c_ushort),
('palPalEntry', POINTER(tagPALETTEENTRY)),
]
assert sizeof(tagLOGPALETTE) == 8, sizeof(tagLOGPALETTE)
assert alignment(tagLOGPALETTE) == 2, alignment(tagLOGPALETTE)
wireASYNC_STGMEDIUM = POINTER(_userSTGMEDIUM)
class IEnumOLEVERB(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{00000104-0000-0000-C000-000000000046}')
_idlflags_ = []
class tagOLEVERB(Structure):
pass
IEnumOLEVERB._methods_ = [
COMMETHOD([], HRESULT, 'RemoteNext',
( ['in'], c_ulong, 'celt' ),
( ['out'], POINTER(tagOLEVERB), 'rgelt' ),
( ['out'], POINTER(c_ulong), 'pceltFetched' )),
COMMETHOD([], HRESULT, 'Skip',
( ['in'], c_ulong, 'celt' )),
COMMETHOD([], HRESULT, 'Reset'),
COMMETHOD([], HRESULT, 'Clone',
( ['out'], POINTER(POINTER(IEnumOLEVERB)), 'ppenum' )),
]
class IEnumUnknown(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{00000100-0000-0000-C000-000000000046}')
_idlflags_ = []
IEnumUnknown._methods_ = [
COMMETHOD([], HRESULT, 'RemoteNext',
( ['in'], c_ulong, 'celt' ),
( ['out'], POINTER(POINTER(IUnknown)), 'rgelt' ),
( ['out'], POINTER(c_ulong), 'pceltFetched' )),
COMMETHOD([], HRESULT, 'Skip',
( ['in'], c_ulong, 'celt' )),
COMMETHOD([], HRESULT, 'Reset'),
COMMETHOD([], HRESULT, 'Clone',
( ['out'], POINTER(POINTER(IEnumUnknown)), 'ppenum' )),
]
class _RemotableHandle(Structure):
pass
class __MIDL_IWinTypes_0009(Union):
pass
__MIDL_IWinTypes_0009._fields_ = [
('hInproc', c_int),
('hRemote', c_int),
]
assert sizeof(__MIDL_IWinTypes_0009) == 4, sizeof(__MIDL_IWinTypes_0009)
assert alignment(__MIDL_IWinTypes_0009) == 4, alignment(__MIDL_IWinTypes_0009)
_RemotableHandle._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0009),
]
assert sizeof(_RemotableHandle) == 8, sizeof(_RemotableHandle)
assert alignment(_RemotableHandle) == 4, alignment(_RemotableHandle)
class _userHMETAFILE(Structure):
pass
class __MIDL_IWinTypes_0004(Union):
pass
__MIDL_IWinTypes_0004._fields_ = [
('hInproc', c_int),
('hRemote', POINTER(_BYTE_BLOB)),
('hInproc64', c_longlong),
]
assert sizeof(__MIDL_IWinTypes_0004) == 8, sizeof(__MIDL_IWinTypes_0004)
assert alignment(__MIDL_IWinTypes_0004) == 8, alignment(__MIDL_IWinTypes_0004)
_userHMETAFILE._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0004),
]
assert sizeof(_userHMETAFILE) == 16, sizeof(_userHMETAFILE)
assert alignment(_userHMETAFILE) == 8, alignment(_userHMETAFILE)
wireSTGMEDIUM = POINTER(_userSTGMEDIUM)
class _userHPALETTE(Structure):
pass
class __MIDL_IWinTypes_0008(Union):
pass
__MIDL_IWinTypes_0008._fields_ = [
('hInproc', c_int),
('hRemote', POINTER(tagLOGPALETTE)),
('hInproc64', c_longlong),
]
assert sizeof(__MIDL_IWinTypes_0008) == 8, sizeof(__MIDL_IWinTypes_0008)
assert alignment(__MIDL_IWinTypes_0008) == 8, alignment(__MIDL_IWinTypes_0008)
_userHPALETTE._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0008),
]
assert sizeof(_userHPALETTE) == 16, sizeof(_userHPALETTE)
assert alignment(_userHPALETTE) == 8, alignment(_userHPALETTE)
class __MIDL_IWinTypes_0007(Union):
pass
class _userBITMAP(Structure):
pass
__MIDL_IWinTypes_0007._fields_ = [
('hInproc', c_int),
('hRemote', POINTER(_userBITMAP)),
('hInproc64', c_longlong),
]
assert sizeof(__MIDL_IWinTypes_0007) == 8, sizeof(__MIDL_IWinTypes_0007)
assert alignment(__MIDL_IWinTypes_0007) == 8, alignment(__MIDL_IWinTypes_0007)
class IParseDisplayName(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{0000011A-0000-0000-C000-000000000046}')
_idlflags_ = []
class IOleContainer(IParseDisplayName):
_case_insensitive_ = True
_iid_ = GUID('{0000011B-0000-0000-C000-000000000046}')
_idlflags_ = []
IParseDisplayName._methods_ = [
COMMETHOD([], HRESULT, 'ParseDisplayName',
( ['in'], POINTER(IBindCtx), 'pbc' ),
( ['in'], WSTRING, 'pszDisplayName' ),
( ['out'], POINTER(c_ulong), 'pchEaten' ),
( ['out'], POINTER(POINTER(IMoniker)), 'ppmkOut' )),
]
IOleContainer._methods_ = [
COMMETHOD([], HRESULT, 'EnumObjects',
( ['in'], c_ulong, 'grfFlags' ),
( ['out'], POINTER(POINTER(IEnumUnknown)), 'ppenum' )),
COMMETHOD([], HRESULT, 'LockContainer',
( ['in'], c_int, 'fLock' )),
]
class IOleObject(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{00000112-0000-0000-C000-000000000046}')
_idlflags_ = []
class IOleClientSite(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{00000118-0000-0000-C000-000000000046}')
_idlflags_ = []
class IDataObject(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{0000010E-0000-0000-C000-000000000046}')
_idlflags_ = []
class tagMSG(Structure):
pass
class tagSIZEL(Structure):
pass
class IAdviseSink(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{0000010F-0000-0000-C000-000000000046}')
_idlflags_ = []
class IEnumSTATDATA(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{00000105-0000-0000-C000-000000000046}')
_idlflags_ = []
IOleObject._methods_ = [
COMMETHOD([], HRESULT, 'SetClientSite',
( ['in'], POINTER(IOleClientSite), 'pClientSite' )),
COMMETHOD([], HRESULT, 'GetClientSite',
( ['out'], POINTER(POINTER(IOleClientSite)), 'ppClientSite' )),
COMMETHOD([], HRESULT, 'SetHostNames',
( ['in'], WSTRING, 'szContainerApp' ),
( ['in'], WSTRING, 'szContainerObj' )),
COMMETHOD([], HRESULT, 'Close',
( ['in'], c_ulong, 'dwSaveOption' )),
COMMETHOD([], HRESULT, 'SetMoniker',
( ['in'], c_ulong, 'dwWhichMoniker' ),
( ['in'], POINTER(IMoniker), 'pmk' )),
COMMETHOD([], HRESULT, 'GetMoniker',
( ['in'], c_ulong, 'dwAssign' ),
( ['in'], c_ulong, 'dwWhichMoniker' ),
( ['out'], POINTER(POINTER(IMoniker)), 'ppmk' )),
COMMETHOD([], HRESULT, 'InitFromData',
( ['in'], POINTER(IDataObject), 'pDataObject' ),
( ['in'], c_int, 'fCreation' ),
( ['in'], c_ulong, 'dwReserved' )),
COMMETHOD([], HRESULT, 'GetClipboardData',
( ['in'], c_ulong, 'dwReserved' ),
( ['out'], POINTER(POINTER(IDataObject)), 'ppDataObject' )),
COMMETHOD([], HRESULT, 'DoVerb',
( ['in'], c_int, 'iVerb' ),
( ['in'], POINTER(tagMSG), 'lpmsg' ),
( ['in'], POINTER(IOleClientSite), 'pActiveSite' ),
( ['in'], c_int, 'lindex' ),
( ['in'], wireHWND, 'hwndParent' ),
( ['in'], POINTER(tagRECT), 'lprcPosRect' )),
COMMETHOD([], HRESULT, 'EnumVerbs',
( ['out'], POINTER(POINTER(IEnumOLEVERB)), 'ppEnumOleVerb' )),
COMMETHOD([], HRESULT, 'Update'),
COMMETHOD([], HRESULT, 'IsUpToDate'),
COMMETHOD([], HRESULT, 'GetUserClassID',
( ['out'], POINTER(GUID), 'pClsid' )),
COMMETHOD([], HRESULT, 'GetUserType',
( ['in'], c_ulong, 'dwFormOfType' ),
( ['out'], POINTER(WSTRING), 'pszUserType' )),
COMMETHOD([], HRESULT, 'SetExtent',
( ['in'], c_ulong, 'dwDrawAspect' ),
( ['in'], POINTER(tagSIZEL), 'psizel' )),
COMMETHOD([], HRESULT, 'GetExtent',
( ['in'], c_ulong, 'dwDrawAspect' ),
( ['out'], POINTER(tagSIZEL), 'psizel' )),
COMMETHOD([], HRESULT, 'Advise',
( ['in'], POINTER(IAdviseSink), 'pAdvSink' ),
( ['out'], POINTER(c_ulong), 'pdwConnection' )),
COMMETHOD([], HRESULT, 'Unadvise',
( ['in'], c_ulong, 'dwConnection' )),
COMMETHOD([], HRESULT, 'EnumAdvise',
( ['out'], POINTER(POINTER(IEnumSTATDATA)), 'ppenumAdvise' )),
COMMETHOD([], HRESULT, 'GetMiscStatus',
( ['in'], c_ulong, 'dwAspect' ),
( ['out'], POINTER(c_ulong), 'pdwStatus' )),
COMMETHOD([], HRESULT, 'SetColorScheme',
( ['in'], POINTER(tagLOGPALETTE), 'pLogpal' )),
]
class __MIDL_IWinTypes_0005(Union):
pass
class _remoteMETAFILEPICT(Structure):
pass
__MIDL_IWinTypes_0005._fields_ = [
('hInproc', c_int),
('hRemote', POINTER(_remoteMETAFILEPICT)),
('hInproc64', c_longlong),
]
assert sizeof(__MIDL_IWinTypes_0005) == 8, sizeof(__MIDL_IWinTypes_0005)
assert alignment(__MIDL_IWinTypes_0005) == 8, alignment(__MIDL_IWinTypes_0005)
_userHMETAFILEPICT._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0005),
]
assert sizeof(_userHMETAFILEPICT) == 16, sizeof(_userHMETAFILEPICT)
assert alignment(_userHMETAFILEPICT) == 8, alignment(_userHMETAFILEPICT)
tagOLEVERB._fields_ = [
('lVerb', c_int),
('lpszVerbName', WSTRING),
('fuFlags', c_ulong),
('grfAttribs', c_ulong),
]
assert sizeof(tagOLEVERB) == 16, sizeof(tagOLEVERB)
assert alignment(tagOLEVERB) == 4, alignment(tagOLEVERB)
class _userCLIPFORMAT(Structure):
pass
class __MIDL_IWinTypes_0001(Union):
pass
__MIDL_IWinTypes_0001._fields_ = [
('dwValue', c_ulong),
('pwszName', WSTRING),
]
assert sizeof(__MIDL_IWinTypes_0001) == 4, sizeof(__MIDL_IWinTypes_0001)
assert alignment(__MIDL_IWinTypes_0001) == 4, alignment(__MIDL_IWinTypes_0001)
_userCLIPFORMAT._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0001),
]
assert sizeof(_userCLIPFORMAT) == 8, sizeof(_userCLIPFORMAT)
assert alignment(_userCLIPFORMAT) == 4, alignment(_userCLIPFORMAT)
wireCLIPFORMAT = POINTER(_userCLIPFORMAT)
class __MIDL_IWinTypes_0006(Union):
pass
__MIDL_IWinTypes_0006._fields_ = [
('hInproc', c_int),
('hRemote', POINTER(_BYTE_BLOB)),
('hInproc64', c_longlong),
]
assert sizeof(__MIDL_IWinTypes_0006) == 8, sizeof(__MIDL_IWinTypes_0006)
assert alignment(__MIDL_IWinTypes_0006) == 8, alignment(__MIDL_IWinTypes_0006)
_userHENHMETAFILE._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0006),
]
assert sizeof(_userHENHMETAFILE) == 16, sizeof(_userHENHMETAFILE)
assert alignment(_userHENHMETAFILE) == 8, alignment(_userHENHMETAFILE)
class tagFORMATETC(Structure):
pass
tagFORMATETC._fields_ = [
('cfFormat', wireCLIPFORMAT),
('ptd', POINTER(tagDVTARGETDEVICE)),
('dwAspect', c_ulong),
('lindex', c_int),
('tymed', c_ulong),
]
assert sizeof(tagFORMATETC) == 20, sizeof(tagFORMATETC)
assert alignment(tagFORMATETC) == 4, alignment(tagFORMATETC)
_userHGLOBAL._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0003),
]
assert sizeof(_userHGLOBAL) == 16, sizeof(_userHGLOBAL)
assert alignment(_userHGLOBAL) == 8, alignment(_userHGLOBAL)
IOleClientSite._methods_ = [
COMMETHOD([], HRESULT, 'SaveObject'),
COMMETHOD([], HRESULT, 'GetMoniker',
( ['in'], c_ulong, 'dwAssign' ),
( ['in'], c_ulong, 'dwWhichMoniker' ),
( ['out'], POINTER(POINTER(IMoniker)), 'ppmk' )),
COMMETHOD([], HRESULT, 'GetContainer',
( ['out'], POINTER(POINTER(IOleContainer)), 'ppContainer' )),
COMMETHOD([], HRESULT, 'ShowObject'),
COMMETHOD([], HRESULT, 'OnShowWindow',
( ['in'], c_int, 'fShow' )),
COMMETHOD([], HRESULT, 'RequestNewObjectLayout'),
]
class __MIDL_IAdviseSink_0002(Union):
pass
class _userHBITMAP(Structure):
pass
__MIDL_IAdviseSink_0002._fields_ = [
('hBitmap', POINTER(_userHBITMAP)),
('hPalette', POINTER(_userHPALETTE)),
('hGeneric', POINTER(_userHGLOBAL)),
]
assert sizeof(__MIDL_IAdviseSink_0002) == 4, sizeof(__MIDL_IAdviseSink_0002)
assert alignment(__MIDL_IAdviseSink_0002) == 4, alignment(__MIDL_IAdviseSink_0002)
_GDI_OBJECT._fields_ = [
('ObjectType', c_ulong),
('u', __MIDL_IAdviseSink_0002),
]
assert sizeof(_GDI_OBJECT) == 8, sizeof(_GDI_OBJECT)
assert alignment(_GDI_OBJECT) == 4, alignment(_GDI_OBJECT)
class _userFLAG_STGMEDIUM(Structure):
pass
wireFLAG_STGMEDIUM = POINTER(_userFLAG_STGMEDIUM)
class IEnumFORMATETC(IUnknown):
_case_insensitive_ = True
_iid_ = GUID('{00000103-0000-0000-C000-000000000046}')
_idlflags_ = []
IDataObject._methods_ = [
COMMETHOD([], HRESULT, 'GetData',
( ['in'], POINTER(tagFORMATETC), 'pformatetcIn' ),
( ['out'], POINTER(wireSTGMEDIUM), 'pmedium' )),
COMMETHOD([], HRESULT, 'RemoteGetData',
( ['in'], POINTER(tagFORMATETC), 'pformatetcIn' ),
( ['out'], POINTER(wireSTGMEDIUM), 'pRemoteMedium' )),
COMMETHOD([], HRESULT, 'RemoteGetDataHere',
( ['in'], POINTER(tagFORMATETC), 'pformatetc' ),
( ['in', 'out'], POINTER(wireSTGMEDIUM), 'pRemoteMedium' )),
COMMETHOD([], HRESULT, 'QueryGetData',
( ['in'], POINTER(tagFORMATETC), 'pformatetc' )),
COMMETHOD([], HRESULT, 'GetCanonicalFormatEtc',
( ['in'], POINTER(tagFORMATETC), 'pformatectIn' ),
( ['out'], POINTER(tagFORMATETC), 'pformatetcOut' )),
COMMETHOD([], HRESULT, 'RemoteSetData',
( ['in'], POINTER(tagFORMATETC), 'pformatetc' ),
( ['in'], POINTER(wireFLAG_STGMEDIUM), 'pmedium' ),
( ['in'], c_int, 'fRelease' )),
COMMETHOD([], HRESULT, 'EnumFormatEtc',
( ['in'], c_ulong, 'dwDirection' ),
( ['out'], POINTER(POINTER(IEnumFORMATETC)), 'ppenumFormatEtc' )),
COMMETHOD([], HRESULT, 'DAdvise',
( ['in'], POINTER(tagFORMATETC), 'pformatetc' ),
( ['in'], c_ulong, 'advf' ),
( ['in'], POINTER(IAdviseSink), 'pAdvSink' ),
( ['out'], POINTER(c_ulong), 'pdwConnection' )),
COMMETHOD([], HRESULT, 'DUnadvise',
( ['in'], c_ulong, 'dwConnection' )),
COMMETHOD([], HRESULT, 'EnumDAdvise',
( ['out'], POINTER(POINTER(IEnumSTATDATA)), 'ppenumAdvise' )),
]
class tagPOINT(Structure):
pass
tagPOINT._fields_ = [
('x', c_int),
('y', c_int),
]
assert sizeof(tagPOINT) == 8, sizeof(tagPOINT)
assert alignment(tagPOINT) == 4, alignment(tagPOINT)
IAdviseSink._methods_ = [
COMMETHOD([], HRESULT, 'RemoteOnDataChange',
( ['in'], POINTER(tagFORMATETC), 'pformatetc' ),
( ['in'], POINTER(wireASYNC_STGMEDIUM), 'pStgmed' )),
COMMETHOD([], HRESULT, 'RemoteOnViewChange',
( ['in'], c_ulong, 'dwAspect' ),
( ['in'], c_int, 'lindex' )),
COMMETHOD([], HRESULT, 'RemoteOnRename',
( ['in'], POINTER(IMoniker), 'pmk' )),
COMMETHOD([], HRESULT, 'RemoteOnSave'),
COMMETHOD([], HRESULT, 'RemoteOnClose'),
]
class __MIDL___MIDL_itf_oleTypes_0005_0001_0001(Structure):
pass
__MIDL___MIDL_itf_oleTypes_0005_0001_0001._fields_ = [
('Data1', c_ulong),
('Data2', c_ushort),
('Data3', c_ushort),
('Data4', c_ubyte * 8),
]
assert sizeof(__MIDL___MIDL_itf_oleTypes_0005_0001_0001) == 16, sizeof(__MIDL___MIDL_itf_oleTypes_0005_0001_0001)
assert alignment(__MIDL___MIDL_itf_oleTypes_0005_0001_0001) == 4, alignment(__MIDL___MIDL_itf_oleTypes_0005_0001_0001)
_userFLAG_STGMEDIUM._fields_ = [
('ContextFlags', c_int),
('fPassOwnership', c_int),
('Stgmed', _userSTGMEDIUM),
]
assert sizeof(_userFLAG_STGMEDIUM) == 20, sizeof(_userFLAG_STGMEDIUM)
assert alignment(_userFLAG_STGMEDIUM) == 4, alignment(_userFLAG_STGMEDIUM)
class tagSTATDATA(Structure):
pass
IEnumSTATDATA._methods_ = [
COMMETHOD([], HRESULT, 'RemoteNext',
( ['in'], c_ulong, 'celt' ),
( ['out'], POINTER(tagSTATDATA), 'rgelt' ),
( ['out'], POINTER(c_ulong), 'pceltFetched' )),
COMMETHOD([], HRESULT, 'Skip',
( ['in'], c_ulong, 'celt' )),
COMMETHOD([], HRESULT, 'Reset'),
COMMETHOD([], HRESULT, 'Clone',
( ['out'], POINTER(POINTER(IEnumSTATDATA)), 'ppenum' )),
]
tagSIZEL._fields_ = [
('cx', c_int),
('cy', c_int),
]
assert sizeof(tagSIZEL) == 8, sizeof(tagSIZEL)
assert alignment(tagSIZEL) == 4, alignment(tagSIZEL)
tagMSG._fields_ = [
('hwnd', wireHWND),
('message', c_uint),
('wParam', UINT_PTR),
('lParam', LONG_PTR),
('time', c_ulong),
('pt', tagPOINT),
]
assert sizeof(tagMSG) == 28, sizeof(tagMSG)
assert alignment(tagMSG) == 4, alignment(tagMSG)
IEnumFORMATETC._methods_ = [
COMMETHOD([], HRESULT, 'RemoteNext',
( ['in'], c_ulong, 'celt' ),
( ['out'], POINTER(tagFORMATETC), 'rgelt' ),
( ['out'], POINTER(c_ulong), 'pceltFetched' )),
COMMETHOD([], HRESULT, 'Skip',
( ['in'], c_ulong, 'celt' )),
COMMETHOD([], HRESULT, 'Reset'),
COMMETHOD([], HRESULT, 'Clone',
( ['out'], POINTER(POINTER(IEnumFORMATETC)), 'ppenum' )),
]
_FLAGGED_BYTE_BLOB._fields_ = [
('fFlags', c_ulong),
('clSize', c_ulong),
('abData', POINTER(c_ubyte)),
]
assert sizeof(_FLAGGED_BYTE_BLOB) == 12, sizeof(_FLAGGED_BYTE_BLOB)
assert alignment(_FLAGGED_BYTE_BLOB) == 4, alignment(_FLAGGED_BYTE_BLOB)
_userBITMAP._fields_ = [
('bmType', c_int),
('bmWidth', c_int),
('bmHeight', c_int),
('bmWidthBytes', c_int),
('bmPlanes', c_ushort),
('bmBitsPixel', c_ushort),
('cbSize', c_ulong),
('pBuffer', POINTER(c_ubyte)),
]
assert sizeof(_userBITMAP) == 28, sizeof(_userBITMAP)
assert alignment(_userBITMAP) == 4, alignment(_userBITMAP)
_remoteMETAFILEPICT._fields_ = [
('mm', c_int),
('xExt', c_int),
('yExt', c_int),
('hMF', POINTER(_userHMETAFILE)),
]
assert sizeof(_remoteMETAFILEPICT) == 16, sizeof(_remoteMETAFILEPICT)
assert alignment(_remoteMETAFILEPICT) == 4, alignment(_remoteMETAFILEPICT)
tagSTATDATA._fields_ = [
('formatetc', tagFORMATETC),
('advf', c_ulong),
('pAdvSink', POINTER(IAdviseSink)),
('dwConnection', c_ulong),
]
assert sizeof(tagSTATDATA) == 32, sizeof(tagSTATDATA)
assert alignment(tagSTATDATA) == 4, alignment(tagSTATDATA)
_userHBITMAP._fields_ = [
('fContext', c_int),
('u', __MIDL_IWinTypes_0007),
]
assert sizeof(_userHBITMAP) == 16, sizeof(_userHBITMAP)
assert alignment(_userHBITMAP) == 8, alignment(_userHBITMAP)
tagPALETTEENTRY._fields_ = [
('peRed', c_ubyte),
('peGreen', c_ubyte),
('peBlue', c_ubyte),
('peFlags', c_ubyte),
]
assert sizeof(tagPALETTEENTRY) == 4, sizeof(tagPALETTEENTRY)
assert alignment(tagPALETTEENTRY) == 1, alignment(tagPALETTEENTRY)