-
Notifications
You must be signed in to change notification settings - Fork 37
/
DbgModel.h
7337 lines (6312 loc) · 223 KB
/
DbgModel.h
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
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//*******************************************************************************
//
// Debugger Data Model
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//*******************************************************************************
#ifndef __DBGMODEL_H__
#define __DBGMODEL_H__
#include <winapifamily.h>
#pragma region Desktop Family or WER Package
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER)
//
// A number of the model APIs have a convention to return extended error information in the resulting object.
// This means that a series of APIs which return model objects will
//
// - On success
// Always have a valid model object
//
// - On failure
// Possibly return back a model object which is an error object which contains extended error information
// beyond the failing HRESULT. Such objects are immediately convertable to display strings, etc...
//
#define _COM_Errorptr_ _Outptr_
#define _COM_Errorptr_opt_ _Outptr_opt_
#define _COM_Errorptr_opt_result_maybenull_ _Outptr_opt_result_maybenull_
//
// Location:
//
// Defines the location for an object. This particular variant of Location is the C-COM access struct.
// Note that a location only has meaning in conjunction with a host context. It is a location within
// a context. When performing an operation on the location (reading bytes, writing bytes, etc...),
// a valid host context must be supplied.
//
struct Location
{
// The HostDefined field has two states that are "Non-Opaque" at the API layer.
//
// 0: Indicates that the offset is a pointer into virtual address space of the target.
// Non-Zero: The defined value is proprietary to the host. Clients can propagate and change offset. They cannot
// legally change the value.
//
// This can be determined by the IsVirtualAddress() method if this structure is built from C++ code.
//
ULONG64 HostDefined;
ULONG64 Offset;
#ifdef __cplusplus
// Location():
//
// Default constructs an equivalent nullptr.
//
Location() :
HostDefined(0),
Offset(0)
{
}
// Location():
//
// Constructs a location from an offset into the virtual address space of the target.
//
Location(ULONG64 virtualAddress) :
HostDefined(0),
Offset(virtualAddress)
{
}
Location(const Location& src) :
HostDefined(src.HostDefined),
Offset(src.Offset)
{
}
Location& operator=(const Location& src)
{
HostDefined = src.HostDefined;
Offset = src.Offset;
return *this;
}
Location& operator=(ULONG64 virtualAddress)
{
HostDefined = 0;
Offset = virtualAddress;
return *this;
}
bool operator==(const Location& rhs) const
{
return (rhs.HostDefined == HostDefined && rhs.Offset == Offset);
}
bool operator!=(const Location& rhs) const
{
return !(operator==(rhs));
}
Location& operator+=(LONG64 offset)
{
Offset += offset;
return *this;
}
Location& operator-=(LONG64 offset)
{
Offset -= offset;
return *this;
}
Location operator+(LONG64 offset) const
{
Location l = *this;
l += offset;
return l;
}
Location operator-(LONG64 offset) const
{
Location l = *this;
l -= offset;
return l;
}
// GetOffset():
//
// Returns the offset of the location.
//
ULONG64 GetOffset() const
{
return Offset;
}
// IsVirtualAddress():
//
// Indicates whether the location refers to a virtual address.
//
bool IsVirtualAddress() const
{
return (HostDefined == 0);
}
#endif // __cplusplus
};
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
//*************************************************
// Public Interfaces:
// {F2BCE54E-4835-4f8a-836E-7981E29904D1}
DEFINE_GUID(IID_IHostDataModelAccess, 0xf2bce54e, 0x4835, 0x4f8a, 0x83, 0x6e, 0x79, 0x81, 0xe2, 0x99, 0x4, 0xd1);
// {0FC7557D-401D-4fca-9365-DA1E9850697C}
DEFINE_GUID(IID_IKeyStore, 0xfc7557d, 0x401d, 0x4fca, 0x93, 0x65, 0xda, 0x1e, 0x98, 0x50, 0x69, 0x7c);
// {E28C7893-3F4B-4b96-BACA-293CDC55F45D}
DEFINE_GUID(IID_IModelObject, 0xe28c7893, 0x3f4b, 0x4b96, 0xba, 0xca, 0x29, 0x3c, 0xdc, 0x55, 0xf4, 0x5d);
// {73FE19F4-A110-4500-8ED9-3C28896F508C}
DEFINE_GUID(IID_IDataModelManager, 0x73fe19f4, 0xa110, 0x4500, 0x8e, 0xd9, 0x3c, 0x28, 0x89, 0x6f, 0x50, 0x8c);
// {5253DCF8-5AFF-4c62-B302-56A289E00998}
DEFINE_GUID(IID_IModelKeyReference, 0x5253dcf8, 0x5aff, 0x4c62, 0xb3, 0x2, 0x56, 0xa2, 0x89, 0xe0, 0x9, 0x98);
// {5A0C63D9-0526-42b8-960C-9516A3254C85}
DEFINE_GUID(IID_IModelPropertyAccessor, 0x5a0c63d9, 0x526, 0x42b8, 0x96, 0xc, 0x95, 0x16, 0xa3, 0x25, 0x4c, 0x85);
// {80600C1F-B90B-4896-82AD-1C00207909E8}
DEFINE_GUID(IID_IModelMethod, 0x80600c1f, 0xb90b, 0x4896, 0x82, 0xad, 0x1c, 0x0, 0x20, 0x79, 0x9, 0xe8);
// {345FA92E-5E00-4319-9CAE-971F7601CDCF}
DEFINE_GUID(IID_IKeyEnumerator, 0x345fa92e, 0x5e00, 0x4319, 0x9c, 0xae, 0x97, 0x1f, 0x76, 0x1, 0xcd, 0xcf);
// {E13613F9-3A3C-40b5-8F48-1E5EBFB9B21B}
DEFINE_GUID(IID_IRawEnumerator, 0xe13613f9, 0x3a3c, 0x40b5, 0x8f, 0x48, 0x1e, 0x5e, 0xbf, 0xb9, 0xb2, 0x1b);
// {FCB98D1D-1114-4fbf-B24C-EFFCB5DEF0D3}
DEFINE_GUID(IID_IDataModelConcept, 0xfcb98d1d, 0x1114, 0x4fbf, 0xb2, 0x4c, 0xef, 0xfc, 0xb5, 0xde, 0xf0, 0xd3);
// {D28E8D70-6C00-4205-940D-501016601EA3}
DEFINE_GUID(IID_IStringDisplayableConcept, 0xd28e8d70, 0x6c00, 0x4205, 0x94, 0xd, 0x50, 0x10, 0x16, 0x60, 0x1e, 0xa3);
// {E4622136-927D-4490-874F-581F3E4E3688}
DEFINE_GUID(IID_IModelIterator, 0xe4622136, 0x927d, 0x4490, 0x87, 0x4f, 0x58, 0x1f, 0x3e, 0x4e, 0x36, 0x88);
// {F5D49D0C-0B02-4301-9C9B-B3A6037628F3}
DEFINE_GUID(IID_IIterableConcept, 0xf5d49d0c, 0xb02, 0x4301, 0x9c, 0x9b, 0xb3, 0xa6, 0x3, 0x76, 0x28, 0xf3);
// {D1FAD99F-3F53-4457-850C-8051DF2D3FB5}
DEFINE_GUID(IID_IIndexableConcept, 0xd1fad99f, 0x3f53, 0x4457, 0x85, 0xc, 0x80, 0x51, 0xdf, 0x2d, 0x3f, 0xb5);
// {9D6C1D7B-A76F-4618-8068-5F76BD9A4E8A}
DEFINE_GUID(IID_IPreferredRuntimeTypeConcept, 0x9d6c1d7b, 0xa76f, 0x4618, 0x80, 0x68, 0x5f, 0x76, 0xbd, 0x9a, 0x4e, 0x8a);
// {B8C74943-6B2C-4eeb-B5C5-35D378A6D99D}
DEFINE_GUID(IID_IDebugHost, 0xb8c74943, 0x6b2c, 0x4eeb, 0xb5, 0xc5, 0x35, 0xd3, 0x78, 0xa6, 0xd9, 0x9d);
// {A68C70D8-5EC0-46e5-B775-3134A48EA2E3}
DEFINE_GUID(IID_IDebugHostContext, 0xa68c70d8, 0x5ec0, 0x46e5, 0xb7, 0x75, 0x31, 0x34, 0xa4, 0x8e, 0xa2, 0xe3);
// {854FD751-C2E1-4eb2-B525-6619CB97A588}
DEFINE_GUID(IID_IDebugHostSymbols, 0x854fd751, 0xc2e1, 0x4eb2, 0xb5, 0x25, 0x66, 0x19, 0xcb, 0x97, 0xa5, 0x88);
// {212149C9-9183-4a3e-B00E-4FD1DC95339B}
DEFINE_GUID(IID_IDebugHostMemory, 0x212149c9, 0x9183, 0x4a3e, 0xb0, 0xe, 0x4f, 0xd1, 0xdc, 0x95, 0x33, 0x9b);
// {0F819103-87DE-4e96-8277-E05CD441FB22}
DEFINE_GUID(IID_IDebugHostSymbol, 0xf819103, 0x87de, 0x4e96, 0x82, 0x77, 0xe0, 0x5c, 0xd4, 0x41, 0xfb, 0x22);
// {28D96C86-10A3-4976-B14E-EAEF4790AA1F}
DEFINE_GUID(IID_IDebugHostSymbolEnumerator, 0x28d96c86, 0x10a3, 0x4976, 0xb1, 0x4e, 0xea, 0xef, 0x47, 0x90, 0xaa, 0x1f);
// {C9BA3E18-D070-4378-BBD0-34613B346E1E}
DEFINE_GUID(IID_IDebugHostModule, 0xc9ba3e18, 0xd070, 0x4378, 0xbb, 0xd0, 0x34, 0x61, 0x3b, 0x34, 0x6e, 0x1e);
// {F219B848-63B2-4a43-A6C9-72ABF25A9711}
DEFINE_GUID(IID_IDebugHostType, 0xf219b848, 0x63b2, 0x4a43, 0xa6, 0xc9, 0x72, 0xab, 0xf2, 0x5a, 0x97, 0x11);
// {62787EDC-FA76-4690-BD71-5E8C3E2937EC}
DEFINE_GUID(IID_IDebugHostConstant, 0x62787edc, 0xfa76, 0x4690, 0xbd, 0x71, 0x5e, 0x8c, 0x3e, 0x29, 0x37, 0xec);
// {31E53A5A-01EE-4BBB-B899-4B46AE7D595C}
DEFINE_GUID(IID_IDebugHostModuleSignature, 0x31e53a5a, 0x01ee, 0x4bbb, 0xb8, 0x99, 0x4b, 0x46, 0xae, 0x7d, 0x59, 0x5c);
// {3AADC353-2B14-4abb-9893-5E03458E07EE}
DEFINE_GUID(IID_IDebugHostTypeSignature, 0x3aadc353, 0x2b14, 0x4abb, 0x98, 0x93, 0x5e, 0x3, 0x45, 0x8e, 0x7, 0xee);
// {E06F6495-16BC-4cc9-B11D-2A6B23FA72F3}
DEFINE_GUID(IID_IDebugHostField, 0xe06f6495, 0x16bc, 0x4cc9, 0xb1, 0x1d, 0x2a, 0x6b, 0x23, 0xfa, 0x72, 0xf3);
// {A3D64993-826C-44fa-897D-926F2FE7AD0B}
DEFINE_GUID(IID_IDebugHostData, 0xa3d64993, 0x826c, 0x44fa, 0x89, 0x7d, 0x92, 0x6f, 0x2f, 0xe7, 0xad, 0xb);
// {B94D57D2-390B-40f7-B5B4-B6DB897D974B}
DEFINE_GUID(IID_IDebugHostBaseClass, 0xb94d57d2, 0x390b, 0x40f7, 0xb5, 0xb4, 0xb6, 0xdb, 0x89, 0x7d, 0x97, 0x4b);
// {C8FF0F0B-FCE9-467e-8BB3-5D69EF109C00}
DEFINE_GUID(IID_IDebugHostErrorSink, 0xc8ff0f0b, 0xfce9, 0x467e, 0x8b, 0xb3, 0x5d, 0x69, 0xef, 0x10, 0x9c, 0x0);
// {0FEF9A21-577E-4997-AC7B-1C4883241D99}
DEFINE_GUID(IID_IDebugHostEvaluator, 0xfef9a21, 0x577e, 0x4997, 0xac, 0x7b, 0x1c, 0x48, 0x83, 0x24, 0x1d, 0x99);
// {6C597AC9-FB4D-4f6d-9F39-22488539F8F4}
DEFINE_GUID(IID_IDebugHostPublic, 0x6c597ac9, 0xfb4d, 0x4f6d, 0x9f, 0x39, 0x22, 0x48, 0x85, 0x39, 0xf8, 0xf4);
// {B28632B9-8506-4676-87CE-8F7E05E59876}
DEFINE_GUID(IID_IDebugHostType2, 0xb28632b9, 0x8506, 0x4676, 0x87, 0xce, 0x8f, 0x7e, 0x5, 0xe5, 0x98, 0x76);
// {4F3E1CE2-86B2-4C7A-9C65-D0A9D0EECF44}
DEFINE_GUID(IID_IDebugHostStatus, 0x4f3e1ce2, 0x86b2, 0x4c7a, 0x9c, 0x65, 0xd0, 0xa9, 0xd0, 0xee, 0xcf, 0x44);
// {3B362B0E-89F0-46c6-A663-DFDC95194AEF}
DEFINE_GUID(IID_IDataModelScriptClient, 0x3b362b0e, 0x89f0, 0x46c6, 0xa6, 0x63, 0xdf, 0xdc, 0x95, 0x19, 0x4a, 0xef);
// {1303DEC4-FA3B-4F1B-9224-B953D16BABB5}
DEFINE_GUID(IID_IDataModelScriptTemplate, 0x1303dec4, 0xfa3b, 0x4f1b, 0x92, 0x24, 0xb9, 0x53, 0xd1, 0x6b, 0xab, 0xb5);
// {7B4D30FC-B14A-49f8-8D87-D9A1480C97F7}
DEFINE_GUID(IID_IDataModelScript, 0x7b4d30fc, 0xb14a, 0x49f8, 0x8d, 0x87, 0xd9, 0xa1, 0x48, 0xc, 0x97, 0xf7);
// {513461E0-4FCA-48ce-8658-32F3E2056F3B}
DEFINE_GUID(IID_IDataModelScriptProvider, 0x513461e0, 0x4fca, 0x48ce, 0x86, 0x58, 0x32, 0xf3, 0xe2, 0x5, 0x6f, 0x3b);
// {6FD11E33-E5AD-410b-8011-68C6BC4BF80D}
DEFINE_GUID(IID_IDataModelScriptManager, 0x6fd11e33, 0xe5ad, 0x410b, 0x80, 0x11, 0x68, 0xc6, 0xbc, 0x4b, 0xf8, 0xd);
// {95BA00E2-704A-4fe2-A8F1-A7E7D8FB0941}
DEFINE_GUID(IID_IDataModelScriptProviderEnumerator, 0x95ba00e2, 0x704a, 0x4fe2, 0xa8, 0xf1, 0xa7, 0xe7, 0xd8, 0xfb, 0x9, 0x41);
// {B70334A4-B92C-4570-93A1-D3EB686649A0}
DEFINE_GUID(IID_IDebugHostScriptHost, 0xb70334a4, 0xb92c, 0x4570, 0x93, 0xa1, 0xd3, 0xeb, 0x68, 0x66, 0x49, 0xa0);
// {014D366A-1F23-4981-9219-B2DB8B402054}
DEFINE_GUID(IID_IDataModelScriptHostContext, 0x14d366a, 0x1f23, 0x4981, 0x92, 0x19, 0xb2, 0xdb, 0x8b, 0x40, 0x20, 0x54);
// {AF352B7B-8292-4c01-B360-2DC3696C65E7}
DEFINE_GUID(IID_IDataModelNameBinder, 0xaf352b7b, 0x8292, 0x4c01, 0xb3, 0x60, 0x2d, 0xc3, 0x69, 0x6c, 0x65, 0xe7);
// {E7983FA1-80A7-498c-988F-518DDC5D4025}
DEFINE_GUID(IID_IDynamicKeyProviderConcept, 0xe7983fa1, 0x80a7, 0x498c, 0x98, 0x8f, 0x51, 0x8d, 0xdc, 0x5d, 0x40, 0x25);
// {95A7F7DD-602E-483f-9D06-A15C0EE13174}
DEFINE_GUID(IID_IDynamicConceptProviderConcept, 0x95a7f7dd, 0x602e, 0x483f, 0x9d, 0x6, 0xa1, 0x5c, 0xe, 0xe1, 0x31, 0x74);
// {69CE6AE2-2268-4e6f-B062-20CE62BFE677}
DEFINE_GUID(IID_IDataModelScriptTemplateEnumerator, 0x69ce6ae2, 0x2268, 0x4e6f, 0xb0, 0x62, 0x20, 0xce, 0x62, 0xbf, 0xe6, 0x77);
// {80E2F7C5-7159-4e92-887E-7E0347E88406}
DEFINE_GUID(IID_IModelKeyReference2, 0x80e2f7c5, 0x7159, 0x4e92, 0x88, 0x7e, 0x7e, 0x3, 0x47, 0xe8, 0x84, 0x6);
// {21515B67-6720-4257-8A68-077DC944471C}
DEFINE_GUID(IID_IDebugHostSymbol2, 0x21515b67, 0x6720, 0x4257, 0x8a, 0x68, 0x7, 0x7d, 0xc9, 0x44, 0x47, 0x1c);
// {A117A435-1FB4-4092-A2AB-A929576C1E87}
DEFINE_GUID(IID_IDebugHostEvaluator2, 0xa117a435, 0x1fb4, 0x4092, 0xa2, 0xab, 0xa9, 0x29, 0x57, 0x6c, 0x1e, 0x87);
// {F412C5EA-2284-4622-A660-A697160D3312}
DEFINE_GUID(IID_IDataModelManager2, 0xf412c5ea, 0x2284, 0x4622, 0xa6, 0x60, 0xa6, 0x97, 0x16, 0xd, 0x33, 0x12);
// {EEA033DE-38F6-416b-A251-1D3771001270}
DEFINE_GUID(IID_IDebugHostMemory2, 0xeea033de, 0x38f6, 0x416b, 0xa2, 0x51, 0x1d, 0x37, 0x71, 0x0, 0x12, 0x70);
// {3C2B24E1-11D0-4f86-8AE5-4DF166F73253}
DEFINE_GUID(IID_IDebugHostExtensibility, 0x3c2b24e1, 0x11d0, 0x4f86, 0x8a, 0xe5, 0x4d, 0xf1, 0x66, 0xf7, 0x32, 0x53);
// {DE8E0945-9750-4471-AB76-A8F79D6EC350}
DEFINE_GUID(IID_IDataModelScriptDebug, 0xde8e0945, 0x9750, 0x4471, 0xab, 0x76, 0xa8, 0xf7, 0x9d, 0x6e, 0xc3, 0x50);
// {53159B6D-D4C4-471b-A863-5B110CA800CA}
DEFINE_GUID(IID_IDataModelScriptDebugClient, 0x53159b6d, 0xd4c4, 0x471b, 0xa8, 0x63, 0x5b, 0x11, 0xc, 0xa8, 0x0, 0xca);
// {051364DD-E449-443e-9762-FE578F4A5473}
DEFINE_GUID(IID_IDataModelScriptDebugStack, 0x51364dd, 0xe449, 0x443e, 0x97, 0x62, 0xfe, 0x57, 0x8f, 0x4a, 0x54, 0x73);
// {DEC6ED5E-6360-4941-AB4C-A26409DE4F82}
DEFINE_GUID(IID_IDataModelScriptDebugStackFrame, 0xdec6ed5e, 0x6360, 0x4941, 0xab, 0x4c, 0xa2, 0x64, 0x9, 0xde, 0x4f, 0x82);
// {0F9FEED7-D045-4ac3-98A8-A98942CF6A35}
DEFINE_GUID(IID_IDataModelScriptDebugVariableSetEnumerator, 0xf9feed7, 0xd045, 0x4ac3, 0x98, 0xa8, 0xa9, 0x89, 0x42, 0xcf, 0x6a, 0x35);
// {6BB27B35-02E6-47cb-90A0-5371244032DE}
DEFINE_GUID(IID_IDataModelScriptDebugBreakpoint, 0x6bb27b35, 0x2e6, 0x47cb, 0x90, 0xa0, 0x53, 0x71, 0x24, 0x40, 0x32, 0xde);
// {39484A75-B4F3-4799-86DA-691AFA57B299}
DEFINE_GUID(IID_IDataModelScriptDebugBreakpointEnumerator, 0x39484a75, 0xb4f3, 0x4799, 0x86, 0xda, 0x69, 0x1a, 0xfa, 0x57, 0xb2, 0x99);
// {CBB10ED3-839E-426c-9243-E23535C1AE1A}
DEFINE_GUID(IID_IDataModelScriptDebug2, 0xcbb10ed3, 0x839e, 0x426c, 0x92, 0x43, 0xe2, 0x35, 0x35, 0xc1, 0xae, 0x1a);
// {A7830646-9F0C-4a31-BA19-503F33E6C8A3}
DEFINE_GUID(IID_IComparableConcept, 0xa7830646, 0x9f0c, 0x4a31, 0xba, 0x19, 0x50, 0x3f, 0x33, 0xe6, 0xc8, 0xa3);
// {C52D5D3D-609D-4d5d-8A82-46B0ACDEC4F4}
DEFINE_GUID(IID_IEquatableConcept, 0xc52d5d3d, 0x609d, 0x4d5d, 0x8a, 0x82, 0x46, 0xb0, 0xac, 0xde, 0xc4, 0xf4);
// {B51887E8-BCD0-4e8f-A8C7-434398B78C37}
DEFINE_GUID(IID_IDebugHostModule2, 0xb51887e8, 0xbcd0, 0x4e8f, 0xa8, 0xc7, 0x43, 0x43, 0x98, 0xb7, 0x8c, 0x37);
struct DECLSPEC_UUID("F2BCE54E-4835-4f8a-836E-7981E29904D1") IHostDataModelAccess;
struct DECLSPEC_UUID("0FC7557D-401D-4fca-9365-DA1E9850697C") IKeyStore;
struct DECLSPEC_UUID("E28C7893-3F4B-4b96-BACA-293CDC55F45D") IModelObject;
struct DECLSPEC_UUID("73FE19F4-A110-4500-8ED9-3C28896F508C") IDataModelManager;
struct DECLSPEC_UUID("5253DCF8-5AFF-4c62-B302-56A289E00998") IModelKeyReference;
struct DECLSPEC_UUID("5A0C63D9-0526-42b8-960C-9516A3254C85") IModelPropertyAccessor;
struct DECLSPEC_UUID("80600C1F-B90B-4896-82AD-1C00207909E8") IModelMethod;
struct DECLSPEC_UUID("345FA92E-5E00-4319-9CAE-971F7601CDCF") IKeyEnumerator;
struct DECLSPEC_UUID("E13613F9-3A3C-40b5-8F48-1E5EBFB9B21B") IRawEnumerator;
struct DECLSPEC_UUID("FCB98D1D-1114-4fbf-B24C-EFFCB5DEF0D3") IDataModelConcept;
struct DECLSPEC_UUID("D28E8D70-6C00-4205-940D-501016601EA3") IStringDisplayableConcept;
struct DECLSPEC_UUID("E4622136-927D-4490-874F-581F3E4E3688") IModelIterator;
struct DECLSPEC_UUID("F5D49D0C-0B02-4301-9C9B-B3A6037628F3") IIterableConcept;
struct DECLSPEC_UUID("D1FAD99F-3F53-4457-850C-8051DF2D3FB5") IIndexableConcept;
struct DECLSPEC_UUID("9D6C1D7B-A76F-4618-8068-5F76BD9A4E8A") IPreferredRuntimeTypeConcept;
struct DECLSPEC_UUID("B8C74943-6B2C-4eeb-B5C5-35D378A6D99D") IDebugHost;
struct DECLSPEC_UUID("A68C70D8-5EC0-46e5-B775-3134A48EA2E3") IDebugHostContext;
struct DECLSPEC_UUID("854FD751-C2E1-4eb2-B525-6619CB97A588") IDebugHostSymbols;
struct DECLSPEC_UUID("31E53A5A-01EE-4BBB-B899-4B46AE7D595C") IDebugHostModuleSignature;
struct DECLSPEC_UUID("3AADC353-2B14-4abb-9893-5E03458E07EE") IDebugHostTypeSignature;
struct DECLSPEC_UUID("212149C9-9183-4a3e-B00E-4FD1DC95339B") IDebugHostMemory;
struct DECLSPEC_UUID("C8FF0F0B-FCE9-467e-8BB3-5D69EF109C00") IDebugHostErrorSink;
struct DECLSPEC_UUID("0FEF9A21-577E-4997-AC7B-1C4883241D99") IDebugHostEvaluator;
struct DECLSPEC_UUID("28D96C86-10A3-4976-B14E-EAEF4790AA1F") IDebugHostSymbolEnumerator;
struct DECLSPEC_UUID("0F819103-87DE-4e96-8277-E05CD441FB22") IDebugHostSymbol;
struct DECLSPEC_UUID("C9BA3E18-D070-4378-BBD0-34613B346E1E") IDebugHostModule;
struct DECLSPEC_UUID("3AADC353-2B14-4abb-9893-5E03458E07EE") IDebugHostType;
struct DECLSPEC_UUID("62787EDC-FA76-4690-BD71-5E8C3E2937EC") IDebugHostConstant;
struct DECLSPEC_UUID("E06F6495-16BC-4cc9-B11D-2A6B23FA72F3") IDebugHostField;
struct DECLSPEC_UUID("A3D64993-826C-44fa-897D-926F2FE7AD0B") IDebugHostData;
struct DECLSPEC_UUID("B94D57D2-390B-40f7-B5B4-B6DB897D974B") IDebugHostBaseClass;
struct DECLSPEC_UUID("6C597AC9-FB4D-4f6d-9F39-22488539F8F4") IDebugHostPublic;
struct DECLSPEC_UUID("B28632B9-8506-4676-87CE-8F7E05E59876") IDebugHostType2;
struct DECLSPEC_UUID("4F3E1CE2-86B2-4C7A-9C65-D0A9D0EECF44") IDebugHostStatus;
struct DECLSPEC_UUID("3B362B0E-89F0-46c6-A663-DFDC95194AEF") IDataModelScriptClient;
struct DECLSPEC_UUID("1303DEC4-FA3B-4F1B-9224-B953D16BABB5") IDataModelScriptTemplate;
struct DECLSPEC_UUID("7B4D30FC-B14A-49f8-8D87-D9A1480C97F7") IDataModelScript;
struct DECLSPEC_UUID("513461E0-4FCA-48ce-8658-32F3E2056F3B") IDataModelScriptProvider;
struct DECLSPEC_UUID("6FD11E33-E5AD-410b-8011-68C6BC4BF80D") IDataModelScriptManager;
struct DECLSPEC_UUID("95BA00E2-704A-4fe2-A8F1-A7E7D8FB0941") IDataModelScriptProviderEnumerator;
struct DECLSPEC_UUID("B70334A4-B92C-4570-93A1-D3EB686649A0") IDebugHostScriptHost;
struct DECLSPEC_UUID("014D366A-1F23-4981-9219-B2DB8B402054") IDataModelScriptHostContext;
struct DECLSPEC_UUID("AF352B7B-8292-4c01-B360-2DC3696C65E7") IDataModelNameBinder;
struct DECLSPEC_UUID("69CE6AE2-2268-4e6f-B062-20CE62BFE677") IDataModelScriptTemplateEnumerator;
struct DECLSPEC_UUID("E7983FA1-80A7-498c-988F-518DDC5D4025") IDynamicKeyProviderConcept;
struct DECLSPEC_UUID("95A7F7DD-602E-483f-9D06-A15C0EE13174") IDynamicConceptProviderConcept;
struct DECLSPEC_UUID("80E2F7C5-7159-4e92-887E-7E0347E88406") IModelKeyReference2;
struct DECLSPEC_UUID("A117A435-1FB4-4092-A2AB-A929576C1E87") IDebugHostEvaluator2;
struct DECLSPEC_UUID("21515B67-6720-4257-8A68-077DC944471C") IDebugHostSymbol2;
struct DECLSPEC_UUID("F412C5EA-2284-4622-A660-A697160D3312") IDataModelManager2;
struct DECLSPEC_UUID("EEA033DE-38F6-416b-A251-1D3771001270") IDebugHostMemory2;
struct DECLSPEC_UUID("3C2B24E1-11D0-4f86-8AE5-4DF166F73253") IDebugHostExtensibility;
struct DECLSPEC_UUID("DE8E0945-9750-4471-AB76-A8F79D6EC350") IDataModelScriptDebug;
struct DECLSPEC_UUID("53159B6D-D4C4-471b-A863-5B110CA800CA") IDataModelScriptDebugClient;
struct DECLSPEC_UUID("051364DD-E449-443e-9762-FE578F4A5473") IDataModelScriptDebugStack;
struct DECLSPEC_UUID("DEC6ED5E-6360-4941-AB4C-A26409DE4F82") IDataModelScriptDebugStackFrame;
struct DECLSPEC_UUID("0F9FEED7-D045-4ac3-98A8-A98942CF6A35") IDataModelScriptDebugVariableSetEnumerator;
struct DECLSPEC_UUID("6BB27B35-02E6-47cb-90A0-5371244032DE") IDataModelScriptDebugBreakpoint;
struct DECLSPEC_UUID("39484A75-B4F3-4799-86DA-691AFA57B299") IDataModelScriptDebugBreakpointEnumerator;
struct DECLSPEC_UUID("CBB10ED3-839E-426c-9243-E23535C1AE1A") IDataModelScriptDebug2;
struct DECLSPEC_UUID("A7830646-9F0C-4a31-BA19-503F33E6C8A3") IComparableConcept;
struct DECLSPEC_UUID("C52D5D3D-609D-4d5d-8A82-46B0ACDEC4F4") IEquatableConcept;
struct DECLSPEC_UUID("B51887E8-BCD0-4e8f-A8C7-434398B78C37") IDebugHostModule2;
//
// ModelObjectKind:
//
// Describes what an IModelObject is intrinsically.
//
enum ModelObjectKind
{
// The model object is a property accessor which can be called to retrieve value, etc...
//
// Calling GetIntrinsicValue on the object will yield a variant in which the punkVal
// IUnknown pointer is an IModelPropertyAccessor.
//
ObjectPropertyAccessor,
// The model object is a wrapped host context (allowing such to be used as an indexer, etc...)
//
// Calling GetIntrinsicValue on the object will yield a variant in which the punkVal
// IUnknown pointer is an IDebugHostContext.
//
ObjectContext,
// It's a typed object within the debuggee. It may or may not have a model associated with it.
// If it has a model, key/value pairs may be associated.
//
// This object type has no "intrinsic value". It always has a location which can be acquired.
//
ObjectTargetObject,
// It's a reference to an object within the debuggee (e.g.: the object *REFERS TO* a "target int" or a
// "target int&"). This is distinct from an object within the debuggee which is a reference (e.g.:
// the object *IS* a "target int&").
//
// This allows an evaluator or other client of the model to take a "reference" to a "reference"
// (object reference to a int&) or to take a "reference" to an object which is enregistered.
//
// This object type has no "intrinsic value". It always has a location which can be acquired.
// The underlying object can be acquired through the Dereference method.
//
ObjectTargetObjectReference,
// The model object is a synthetic object (a key/value/metadata store)
//
// This object type has no "intrinsic value" or location. It is purely a key/value/metadata store.
//
ObjectSynthetic,
// The model object represents no value. If a given key exists but only has a value conditionally (e.g.: it's
// a property accessor), it can return NoValue to indicate this. The caller should treat this appropriately (e.g.:
// not displaying the key/value in a visualization, etc...)
//
// This object type has no "intrinsic value" or location.
//
ObjectNoValue,
// The model object represents an error.
//
// This object type has no "intrinsci value" or location. It can always be converted to a string to determine
// the error message.
//
ObjectError,
// The type is an intrinsic which is communicated through a variant (and the resulting variant type)
//
// Calling GetIntrinsicValue on this type will yield a variant in which the value has been packed in
// its natural form. String objects are packed as VT_BSTR.
//
ObjectIntrinsic,
// The model object is a method which can be called.
//
// Calling GetIntrinsicValue on the object will yield a variant in which the punkVal
// IUnknown pointer is an IModelMethod.
//
ObjectMethod,
// The model object is a key reference.
//
// Calling GetIntrinsicValue on the object will yield a variant in which the punkVal
// IUnknown pointer is an IKeyReference.
//
ObjectKeyReference,
};
// SymbolKind:
//
// Defines the kind of a symbol.
//
enum SymbolKind
{
// Unspecified symbol type.
Symbol,
// The symbol is a module and is QI'able for IDebugHostModule
SymbolModule,
// The symbol is a type and is QI'able for IDebugHostType
SymbolType,
// The symbol is a field and is QI'able for IDebugHostField
SymbolField,
// The symbol is a constant and is QI'able for IDebugHostConstant
SymbolConstant,
// The symbol is data which is not a field of a structure and is QI'able for IDebugHostData
SymbolData,
// The symbol is a base class and is QI'able for IDebugHostBaseClass
SymbolBaseClass,
// The symbol is a public symbol and is QI'able for IDebugHostPublic
SymbolPublic,
// The symbol is a function symbol and is QI'able for IDebugHostData
SymbolFunction,
};
// TypeKind:
//
// Defines the kind of a type.
//
enum TypeKind
{
// The type is a UDT (user defined type -- a struct, class, etc...)
//
// The canonical form of an IModelObject which represents a UDT *value* is
// ObjectTargetObject where the type is always kept.
//
TypeUDT,
// The type is a pointer
//
// The canonical form of an IModelObject which represents a pointer *value* is
// ObjectIntrinsic where the type is always kept. The value of the pointer
// is zero extended to 64-bits and can be retrieved with a fetch of the intrinsic
// value of the object. The value is packed into the VT_UI8 (ullVal) field of
// the object's variant data.
//
// The base type of a pointer as returned by GetBaseType() is the type pointed to.
//
TypePointer,
// The type is a member pointer
//
// The canonical form of an IModelObject which represents a member pointer *value* is
// much the same as that of pointer. The specific meaning of the intrinsic value
// packed into the variant is compiler specific.
//
TypeMemberPointer,
// The type is an array
//
// The canonical form of an IModelObject which represents an array *value* is
// ObjectTargetObject where the type is always kept. The array is always referred
// to by a location which can be retrieved via the object's GetLocation() method.
// The actual array is not packed into the model object.
//
// The base type of an array as returned by GetBaseType() is the type of each element
// of the array.
//
TypeArray,
// The type is a function
TypeFunction,
// **************************************************************************
// This entry is **DEPRECATED**.
// **************************************************************************
//
// The canonical form of an IModelObject which is a typedef is the same as the canonical
// form of whatever the typedef is for. A typedef will appear completely transparent to
// the user of the object and the type information unless the explicit typedef methods of
// IDebugHostType2 are utilized to query typedef information or there is an explicit data
// model registered against the typedef.
//
TypeTypedef,
// The type is an enum
//
// The canonical form of an IModelObject which represents an enum *value* is
// ObjectIntrinsic where the type is always kept. The value is packed into
// the appropriate type in the object's variant data as described by the
// storage type of the enumeration.
//
TypeEnum,
// The type is an intrinsic (basic type)
//
// The canonical form of an IModelObject which represents an intrinsic *value* is
// ObjectIntrinsic. The value is packed into the appropriate tyep in the object's
// variant data as indicated by the kind of intrinsic.
//
// Note that keeping the type information associated with the IModelObject is optional
// if the underlying type is fully described by the variant data type (VT_*).
//
TypeIntrinsic,
};
// IntrinsicKind:
//
// Defines the kind of an intrinsic (basic) type. This is distinct from the variant type
// which carries the type.
//
enum IntrinsicKind
{
// void
IntrinsicVoid,
// bool
IntrinsicBool,
// char
IntrinsicChar,
// wchar_t
IntrinsicWChar,
// signed int (of some size -- not necessarily 4 bytes)
IntrinsicInt,
// unsigned int (of some size -- not necessarily 4 bytes)
IntrinsicUInt,
// long (of some size)
IntrinsicLong,
// unsigned long (of some size)
IntrinsicULong,
// floating point (of some size -- not necessarily 4 bytes)
IntrinsicFloat,
// HRESULT
IntrinsicHRESULT,
// char16_t
IntrinsicChar16,
// char32_t
IntrinsicChar32
};
// PointerKind:
//
// Defines the kind of a pointer type.
//
enum PointerKind
{
// *
PointerStandard,
// &
PointerReference,
// &&
PointerRValueReference,
// ^
PointerCXHat
};
// CallingConventionKind:
//
// Defines the kind of calling convention of a function type.
//
enum CallingConventionKind
{
// The calling convention is not known
CallingConventionUnknown,
// The calling convention is __cdecl
CallingConventionCDecl,
// The calling convention is fastcall
CallingConventionFastCall,
// The calling convention is stdcall
CallingConventionStdCall,
// The calling convention is syscall
CallingConventionSysCall,
// The calling convention is thiscall
CallingConventionThisCall,
};
// LocationKind:
//
// Defines the location of a field or other data.
//
enum LocationKind
{
// The field is a member and has an offset relative to the this pointer
LocationMember,
// The field is static and has an address
LocationStatic,
// The field is constant and has a value
LocationConstant,
// The field has no location (e.g.: it has been optimized out or was a static which was defined but not
// declared)
LocationNone,
};
//*************************************************
// Metadata Keys:
//
// "PreferredFormat"
// contains a value which is from the PreferredFormat enumeration below that indicates the preferred manner in which a given
// value should be *DISPLAYED*. It does not affect the value itself.
//
// "PreferredRadix"
// contains a value which indicates the preferred display radix for an integral value. This is either 8, 10, or 16
//
//
// PreferredFormat
//
// Predefined values of the "PreferredFormat" key which may appear as the metadata on a returned key value. This indicates
// the preferred DISPLAY FORMAT for a given value.
//
enum PreferredFormat
{
// There is no preferred format
FormatNone,
// The preferred format is a single character as '*'
FormatSingleCharacter,
// The preferred format is a quoted 8-bit string
FormatQuotedString,
// The preferred format is a non-quoted 8-bit string
FormatString,
// The preferred format is a quoted Unicode (UTF-16) string
FormatQuotedUnicodeString,
// The preferred format is a non-quoted Unicode (UTF-16) string
FormatUnicodeString,
// The preferred format is a quoted UTF-8 string
FormatQuotedUTF8String,
// The preferred format is a non-quoted UTF-8 string
FormatUTF8String,
// The preferred format is a quoted BSTR
FormatBSTRString,
// The preferred format is a quoted WinRT HSTRING
FormatQuotedHString,
// The preferred format is a non-quoted WinRT HSTRING
FormatHString,
// The preferred format is the raw (native) type
FormatRaw,
// The preferred format is the enum name only
FormatEnumNameOnly,
// The preferred format is the quoted string with escaped characters
FormatEscapedStringWithQuote,
// The preferred format is a non-quoted Unicode (UTF-32) string
FormatUTF32String,
// The preferred format is a quoted Unicode (UTF-32) string
FormatQuotedUTF32String
};
//
// IHostDataModelAccess:
//
// An interface *suggested* on the per-host extensibility mechanism to get from the host extensibility
// mechanism to the model based one. Extensions which are written to a host-specific API set can query
// this mechanism to get to the data model and create host-agnostic extensions.
//
// As an example, DbgEng based extensions can query for this interface from any IDebug* (Client/Control/etc...)
// interface to get to the model and access model APIs. Such extensions are hybrid (they are still specific
// to a particular host but contain portions that may be factored out later for a general model based extension)
//
// This is the **ONLY** interface in this set of APIs which is not intended to be host agnostic.
//
#undef INTERFACE
#define INTERFACE IHostDataModelAccess
DECLARE_INTERFACE_(IHostDataModelAccess, IUnknown)
{
//*************************************************
// IUnknown:
STDMETHOD(QueryInterface)(
THIS_
_In_ REFIID iid,
_COM_Outptr_ PVOID* iface
) PURE;
STDMETHOD_(ULONG, AddRef)(
THIS
) PURE;
STDMETHOD_(ULONG, Release)(
THIS
) PURE;
//*************************************************
// IKeyStore
// GetDataModel():
//
// Returns the core interfaces to the data model. A hybrid extension can query its host's
// extensibility interfaces for IHostDataModelAccess and subsequently call this method to
// get to the data model interfaces.
//
// There is no guarantee that any particular host supports this interface.
//
STDMETHOD(GetDataModel)(
THIS_
_COM_Outptr_ IDataModelManager** manager,
_COM_Outptr_ IDebugHost** host
) PURE;
};
//
// IKeyStore:
//
// An interface which represents a set of key/value/metadata tuples. This is primarily the
// interface by which metadata is represented.
//
#undef INTERFACE
#define INTERFACE IKeyStore
DECLARE_INTERFACE_(IKeyStore, IUnknown)
{
//*************************************************
// IUnknown:
STDMETHOD(QueryInterface)(
THIS_
_In_ REFIID iid,
_COM_Outptr_ PVOID* iface
) PURE;
STDMETHOD_(ULONG, AddRef)(
THIS
) PURE;
STDMETHOD_(ULONG, Release)(
THIS
) PURE;
//*************************************************
// IKeyStore
// GetKey():
//
// If the store or its parent has a key named according to the argument 'key', this will
// return the value of that key and, optionally, any metadata associated with that key.
//
// If the key is a property accessor, this API will return the property accessor itself. It is the responsibility
// of the caller to resolve the property by fetching the IModelPropertyAccessor interface and calling into it
// passing the appropriate context object.
//
STDMETHOD(GetKey)(
THIS_
_In_ PCWSTR key,
_COM_Errorptr_opt_ IModelObject** object,
_COM_Outptr_opt_result_maybenull_ IKeyStore** metadata
) PURE;
// SetKey():
//
// If the store or its parent has a key named according to the argument 'key', this will
// set the value of that key and optionally its associated metadata.
//
// If the key is a property accessor, this will not set the value of the property. It will explicitly
// overwrite the property with the new value.
//
// This is the only method which is capable of creating a new key. If a new key is to be created, this
// will create the key on the store where SetKey was called. It will not create a key on the parent store.
//
STDMETHOD(SetKey)(
THIS_
_In_ PCWSTR key,
_In_opt_ IModelObject* object,
_In_opt_ IKeyStore* metadata
) PURE;
// GetKeyValue():
//
// If the store or its parent has a key named according to the argument 'key', this will
// return the value of that key and, optionally, any metadata associated with that key.
//
// If the key is a property accessor, this API will fetch the value underlying the property and return it.
// It will not return the IModelPropertyAccessor interface for the property.
//
STDMETHOD(GetKeyValue)(
THIS_
_In_ PCWSTR key,
_COM_Errorptr_opt_ IModelObject** object,
_COM_Outptr_opt_result_maybenull_ IKeyStore** metadata
) PURE;
// SetKeyValue():
//
// If the store or its parent has a key named according to the argument 'key', this will
// set the value of that key.
//
// If the key is a property accessor, this API will call the underlying property to set the value of the
// property. Note that some properties are read-only and, as such, this API may return a failure if called
// on such a property. If the key is not a property accessor, it will overwrite the value of the key directly.
//
// This method will never create a new key named 'key'.
//
STDMETHOD(SetKeyValue)(
THIS_
_In_ PCWSTR key,
_In_ IModelObject* object
) PURE;
// ClearKeys():
//
// This will clear all keys on the store but *NOT* on its parent.
//
STDMETHOD(ClearKeys)(
THIS
) PURE;
};
// RawSearchFlags:
//
// Flags to GetRawValue/EnumerateRawValues
//
enum RawSearchFlags
{
// There are no search flags
RawSearchNone = 0x00000000,
// Indicates that the search should not recurse to base children (e.g.: base classes). Only names/types
// which are in the object itself should be returned.
RawSearchNoBases = 0x00000001,
};
//
// IModelObject:
//
// The core object model interface. All object instances that the model can represent are directly referred
// to by the IModelObject interface.
//
// This interface is never directly implemented by a client.
//
#undef INTERFACE
#define INTERFACE IModelObject
DECLARE_INTERFACE_(IModelObject, IUnknown)
{
//*************************************************
// IUnknown:
STDMETHOD(QueryInterface)(
THIS_
_In_ REFIID iid,
_COM_Outptr_ PVOID* iface
) PURE;
STDMETHOD_(ULONG, AddRef)(
THIS
) PURE;
STDMETHOD_(ULONG, Release)(
THIS