-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathIDebugControl5.cs
More file actions
1032 lines (852 loc) · 27 KB
/
Copy pathIDebugControl5.cs
File metadata and controls
1032 lines (852 loc) · 27 KB
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
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
using System.Text;
#pragma warning disable 1591
namespace Microsoft.Diagnostics.Runtime.Interop
{
[ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("b2ffe162-2412-429f-8d1d-5bf6dd824696")]
public interface IDebugControl5 : IDebugControl4
{
/* IDebugControl */
[PreserveSig]
new int GetInterrupt();
[PreserveSig]
new int SetInterrupt(
[In] DEBUG_INTERRUPT Flags);
[PreserveSig]
new int GetInterruptTimeout(
[Out] out uint Seconds);
[PreserveSig]
new int SetInterruptTimeout(
[In] uint Seconds);
[PreserveSig]
new int GetLogFile(
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint FileSize,
[Out, MarshalAs(UnmanagedType.Bool)] out bool Append);
[PreserveSig]
new int OpenLogFile(
[In, MarshalAs(UnmanagedType.LPStr)] string File,
[In, MarshalAs(UnmanagedType.Bool)] bool Append);
[PreserveSig]
new int CloseLogFile();
[PreserveSig]
new int GetLogMask(
[Out] out DEBUG_OUTPUT Mask);
[PreserveSig]
new int SetLogMask(
[In] DEBUG_OUTPUT Mask);
[PreserveSig]
new int Input(
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint InputSize);
[PreserveSig]
new int ReturnInput(
[In, MarshalAs(UnmanagedType.LPStr)] string Buffer);
[PreserveSig]
new int Output(
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPStr)] string Format);
[PreserveSig]
new int OutputVaList( /* THIS SHOULD NEVER BE CALLED FROM C# */
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPStr)] string Format,
[In] IntPtr va_list_Args);
[PreserveSig]
new int ControlledOutput(
[In] DEBUG_OUTCTL OutputControl,
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPStr)] string Format);
[PreserveSig]
new int ControlledOutputVaList( /* THIS SHOULD NEVER BE CALLED FROM C# */
[In] DEBUG_OUTCTL OutputControl,
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPStr)] string Format,
[In] IntPtr va_list_Args);
[PreserveSig]
new int OutputPrompt(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPStr)] string Format);
[PreserveSig]
new int OutputPromptVaList( /* THIS SHOULD NEVER BE CALLED FROM C# */
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPStr)] string Format,
[In] IntPtr va_list_Args);
[PreserveSig]
new int GetPromptText(
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint TextSize);
[PreserveSig]
new int OutputCurrentState(
[In] DEBUG_OUTCTL OutputControl,
[In] DEBUG_CURRENT Flags);
[PreserveSig]
new int OutputVersionInformation(
[In] DEBUG_OUTCTL OutputControl);
[PreserveSig]
new int GetNotifyEventHandle(
[Out] out ulong Handle);
[PreserveSig]
new int SetNotifyEventHandle(
[In] ulong Handle);
[PreserveSig]
new int Assemble(
[In] ulong Offset,
[In, MarshalAs(UnmanagedType.LPStr)] string Instr,
[Out] out ulong EndOffset);
[PreserveSig]
new int Disassemble(
[In] ulong Offset,
[In] DEBUG_DISASM Flags,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint DisassemblySize,
[Out] out ulong EndOffset);
[PreserveSig]
new int GetDisassembleEffectiveOffset(
[Out] out ulong Offset);
[PreserveSig]
new int OutputDisassembly(
[In] DEBUG_OUTCTL OutputControl,
[In] ulong Offset,
[In] DEBUG_DISASM Flags,
[Out] out ulong EndOffset);
[PreserveSig]
new int OutputDisassemblyLines(
[In] DEBUG_OUTCTL OutputControl,
[In] uint PreviousLines,
[In] uint TotalLines,
[In] ulong Offset,
[In] DEBUG_DISASM Flags,
[Out] out uint OffsetLine,
[Out] out ulong StartOffset,
[Out] out ulong EndOffset,
[Out, MarshalAs(UnmanagedType.LPArray)] ulong[] LineOffsets);
[PreserveSig]
new int GetNearInstruction(
[In] ulong Offset,
[In] int Delta,
[Out] out ulong NearOffset);
[PreserveSig]
new int GetStackTrace(
[In] ulong FrameOffset,
[In] ulong StackOffset,
[In] ulong InstructionOffset,
[Out, MarshalAs(UnmanagedType.LPArray)] DEBUG_STACK_FRAME[] Frames,
[In] int FrameSize,
[Out] out uint FramesFilled);
[PreserveSig]
new int GetReturnOffset(
[Out] out ulong Offset);
[PreserveSig]
new int OutputStackTrace(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPArray)] DEBUG_STACK_FRAME[] Frames,
[In] int FramesSize,
[In] DEBUG_STACK Flags);
[PreserveSig]
new int GetDebuggeeType(
[Out] out DEBUG_CLASS Class,
[Out] out DEBUG_CLASS_QUALIFIER Qualifier);
[PreserveSig]
new int GetActualProcessorType(
[Out] out IMAGE_FILE_MACHINE Type);
[PreserveSig]
new int GetExecutingProcessorType(
[Out] out IMAGE_FILE_MACHINE Type);
[PreserveSig]
new int GetNumberPossibleExecutingProcessorTypes(
[Out] out uint Number);
[PreserveSig]
new int GetPossibleExecutingProcessorTypes(
[In] uint Start,
[In] uint Count,
[Out, MarshalAs(UnmanagedType.LPArray)] IMAGE_FILE_MACHINE[] Types);
[PreserveSig]
new int GetNumberProcessors(
[Out] out uint Number);
[PreserveSig]
new int GetSystemVersion(
[Out] out uint PlatformId,
[Out] out uint Major,
[Out] out uint Minor,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder ServicePackString,
[In] int ServicePackStringSize,
[Out] out uint ServicePackStringUsed,
[Out] out uint ServicePackNumber,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder BuildString,
[In] int BuildStringSize,
[Out] out uint BuildStringUsed);
[PreserveSig]
new int GetPageSize(
[Out] out uint Size);
[PreserveSig]
new int IsPointer64Bit();
[PreserveSig]
new int ReadBugCheckData(
[Out] out uint Code,
[Out] out ulong Arg1,
[Out] out ulong Arg2,
[Out] out ulong Arg3,
[Out] out ulong Arg4);
[PreserveSig]
new int GetNumberSupportedProcessorTypes(
[Out] out uint Number);
[PreserveSig]
new int GetSupportedProcessorTypes(
[In] uint Start,
[In] uint Count,
[Out, MarshalAs(UnmanagedType.LPArray)] IMAGE_FILE_MACHINE[] Types);
[PreserveSig]
new int GetProcessorTypeNames(
[In] IMAGE_FILE_MACHINE Type,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder FullNameBuffer,
[In] int FullNameBufferSize,
[Out] out uint FullNameSize,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder AbbrevNameBuffer,
[In] int AbbrevNameBufferSize,
[Out] out uint AbbrevNameSize);
[PreserveSig]
new int GetEffectiveProcessorType(
[Out] out IMAGE_FILE_MACHINE Type);
[PreserveSig]
new int SetEffectiveProcessorType(
[In] IMAGE_FILE_MACHINE Type);
[PreserveSig]
new int GetExecutionStatus(
[Out] out DEBUG_STATUS Status);
[PreserveSig]
new int SetExecutionStatus(
[In] DEBUG_STATUS Status);
[PreserveSig]
new int GetCodeLevel(
[Out] out DEBUG_LEVEL Level);
[PreserveSig]
new int SetCodeLevel(
[In] DEBUG_LEVEL Level);
[PreserveSig]
new int GetEngineOptions(
[Out] out DEBUG_ENGOPT Options);
[PreserveSig]
new int AddEngineOptions(
[In] DEBUG_ENGOPT Options);
[PreserveSig]
new int RemoveEngineOptions(
[In] DEBUG_ENGOPT Options);
[PreserveSig]
new int SetEngineOptions(
[In] DEBUG_ENGOPT Options);
[PreserveSig]
new int GetSystemErrorControl(
[Out] out ERROR_LEVEL OutputLevel,
[Out] out ERROR_LEVEL BreakLevel);
[PreserveSig]
new int SetSystemErrorControl(
[In] ERROR_LEVEL OutputLevel,
[In] ERROR_LEVEL BreakLevel);
[PreserveSig]
new int GetTextMacro(
[In] uint Slot,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint MacroSize);
[PreserveSig]
new int SetTextMacro(
[In] uint Slot,
[In, MarshalAs(UnmanagedType.LPStr)] string Macro);
[PreserveSig]
new int GetRadix(
[Out] out uint Radix);
[PreserveSig]
new int SetRadix(
[In] uint Radix);
[PreserveSig]
new int Evaluate(
[In, MarshalAs(UnmanagedType.LPStr)] string Expression,
[In] DEBUG_VALUE_TYPE DesiredType,
[Out] out DEBUG_VALUE Value,
[Out] out uint RemainderIndex);
[PreserveSig]
new int CoerceValue(
[In] DEBUG_VALUE In,
[In] DEBUG_VALUE_TYPE OutType,
[Out] out DEBUG_VALUE Out);
[PreserveSig]
new int CoerceValues(
[In] uint Count,
[In, MarshalAs(UnmanagedType.LPArray)] DEBUG_VALUE[] In,
[In, MarshalAs(UnmanagedType.LPArray)] DEBUG_VALUE_TYPE[] OutType,
[Out, MarshalAs(UnmanagedType.LPArray)] DEBUG_VALUE[] Out);
[PreserveSig]
new int Execute(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPStr)] string Command,
[In] DEBUG_EXECUTE Flags);
[PreserveSig]
new int ExecuteCommandFile(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPStr)] string CommandFile,
[In] DEBUG_EXECUTE Flags);
[PreserveSig]
new int GetNumberBreakpoints(
[Out] out uint Number);
[PreserveSig]
new int GetBreakpointByIndex(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.Interface)] out IDebugBreakpoint bp);
[PreserveSig]
new int GetBreakpointById(
[In] uint Id,
[Out, MarshalAs(UnmanagedType.Interface)] out IDebugBreakpoint bp);
[PreserveSig]
new int GetBreakpointParameters(
[In] uint Count,
[In, MarshalAs(UnmanagedType.LPArray)] uint[] Ids,
[In] uint Start,
[Out, MarshalAs(UnmanagedType.LPArray)] DEBUG_BREAKPOINT_PARAMETERS[] Params);
[PreserveSig]
new int AddBreakpoint(
[In] DEBUG_BREAKPOINT_TYPE Type,
[In] uint DesiredId,
[Out, MarshalAs(UnmanagedType.Interface)] out IDebugBreakpoint Bp);
[PreserveSig]
new int RemoveBreakpoint(
[In, MarshalAs(UnmanagedType.Interface)] IDebugBreakpoint Bp);
[PreserveSig]
new int AddExtension(
[In, MarshalAs(UnmanagedType.LPStr)] string Path,
[In] uint Flags,
[Out] out ulong Handle);
[PreserveSig]
new int RemoveExtension(
[In] ulong Handle);
[PreserveSig]
new int GetExtensionByPath(
[In, MarshalAs(UnmanagedType.LPStr)] string Path,
[Out] out ulong Handle);
[PreserveSig]
new int CallExtension(
[In] ulong Handle,
[In, MarshalAs(UnmanagedType.LPStr)] string Function,
[In, MarshalAs(UnmanagedType.LPStr)] string Arguments);
[PreserveSig]
new int GetExtensionFunction(
[In] ulong Handle,
[In, MarshalAs(UnmanagedType.LPStr)] string FuncName,
[Out] out IntPtr Function);
[PreserveSig]
new int GetWindbgExtensionApis32(
[In, Out] ref WINDBG_EXTENSION_APIS Api);
/* Must be In and Out as the nSize member has to be initialized */
[PreserveSig]
new int GetWindbgExtensionApis64(
[In, Out] ref WINDBG_EXTENSION_APIS Api);
/* Must be In and Out as the nSize member has to be initialized */
[PreserveSig]
new int GetNumberEventFilters(
[Out] out uint SpecificEvents,
[Out] out uint SpecificExceptions,
[Out] out uint ArbitraryExceptions);
[PreserveSig]
new int GetEventFilterText(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint TextSize);
[PreserveSig]
new int GetEventFilterCommand(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint CommandSize);
[PreserveSig]
new int SetEventFilterCommand(
[In] uint Index,
[In, MarshalAs(UnmanagedType.LPStr)] string Command);
[PreserveSig]
new int GetSpecificFilterParameters(
[In] uint Start,
[In] uint Count,
[Out, MarshalAs(UnmanagedType.LPArray)] DEBUG_SPECIFIC_FILTER_PARAMETERS[] Params);
[PreserveSig]
new int SetSpecificFilterParameters(
[In] uint Start,
[In] uint Count,
[In, MarshalAs(UnmanagedType.LPArray)] DEBUG_SPECIFIC_FILTER_PARAMETERS[] Params);
[PreserveSig]
new int GetSpecificEventFilterArgument(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint ArgumentSize);
[PreserveSig]
new int SetSpecificEventFilterArgument(
[In] uint Index,
[In, MarshalAs(UnmanagedType.LPStr)] string Argument);
[PreserveSig]
new int GetExceptionFilterParameters(
[In] uint Count,
[In, MarshalAs(UnmanagedType.LPArray)] uint[] Codes,
[In] uint Start,
[Out, MarshalAs(UnmanagedType.LPArray)] DEBUG_EXCEPTION_FILTER_PARAMETERS[] Params);
[PreserveSig]
new int SetExceptionFilterParameters(
[In] uint Count,
[In, MarshalAs(UnmanagedType.LPArray)] DEBUG_EXCEPTION_FILTER_PARAMETERS[] Params);
[PreserveSig]
new int GetExceptionFilterSecondCommand(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint CommandSize);
[PreserveSig]
new int SetExceptionFilterSecondCommand(
[In] uint Index,
[In, MarshalAs(UnmanagedType.LPStr)] string Command);
[PreserveSig]
new int WaitForEvent(
[In] DEBUG_WAIT Flags,
[In] uint Timeout);
[PreserveSig]
new int GetLastEventInformation(
[Out] out DEBUG_EVENT Type,
[Out] out uint ProcessId,
[Out] out uint ThreadId,
[In] IntPtr ExtraInformation,
[In] uint ExtraInformationSize,
[Out] out uint ExtraInformationUsed,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Description,
[In] int DescriptionSize,
[Out] out uint DescriptionUsed);
/* IDebugControl2 */
[PreserveSig]
new int GetCurrentTimeDate(
[Out] out uint TimeDate);
[PreserveSig]
new int GetCurrentSystemUpTime(
[Out] out uint UpTime);
[PreserveSig]
new int GetDumpFormatFlags(
[Out] out DEBUG_FORMAT FormatFlags);
[PreserveSig]
new int GetNumberTextReplacements(
[Out] out uint NumRepl);
[PreserveSig]
new int GetTextReplacement(
[In, MarshalAs(UnmanagedType.LPStr)] string SrcText,
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder SrcBuffer,
[In] int SrcBufferSize,
[Out] out uint SrcSize,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder DstBuffer,
[In] int DstBufferSize,
[Out] out uint DstSize);
[PreserveSig]
new int SetTextReplacement(
[In, MarshalAs(UnmanagedType.LPStr)] string SrcText,
[In, MarshalAs(UnmanagedType.LPStr)] string DstText);
[PreserveSig]
new int RemoveTextReplacements();
[PreserveSig]
new int OutputTextReplacements(
[In] DEBUG_OUTCTL OutputControl,
[In] DEBUG_OUT_TEXT_REPL Flags);
/* IDebugControl3 */
[PreserveSig]
new int GetAssemblyOptions(
[Out] out DEBUG_ASMOPT Options);
[PreserveSig]
new int AddAssemblyOptions(
[In] DEBUG_ASMOPT Options);
[PreserveSig]
new int RemoveAssemblyOptions(
[In] DEBUG_ASMOPT Options);
[PreserveSig]
new int SetAssemblyOptions(
[In] DEBUG_ASMOPT Options);
[PreserveSig]
new int GetExpressionSyntax(
[Out] out DEBUG_EXPR Flags);
[PreserveSig]
new int SetExpressionSyntax(
[In] DEBUG_EXPR Flags);
[PreserveSig]
new int SetExpressionSyntaxByName(
[In, MarshalAs(UnmanagedType.LPStr)] string AbbrevName);
[PreserveSig]
new int GetNumberExpressionSyntaxes(
[Out] out uint Number);
[PreserveSig]
new int GetExpressionSyntaxNames(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder FullNameBuffer,
[In] int FullNameBufferSize,
[Out] out uint FullNameSize,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder AbbrevNameBuffer,
[In] int AbbrevNameBufferSize,
[Out] out uint AbbrevNameSize);
[PreserveSig]
new int GetNumberEvents(
[Out] out uint Events);
[PreserveSig]
new int GetEventIndexDescription(
[In] uint Index,
[In] DEBUG_EINDEX Which,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint DescSize);
[PreserveSig]
new int GetCurrentEventIndex(
[Out] out uint Index);
[PreserveSig]
new int SetNextEventIndex(
[In] DEBUG_EINDEX Relation,
[In] uint Value,
[Out] out uint NextIndex);
/* IDebugControl4 */
[PreserveSig]
new int GetLogFileWide(
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint FileSize,
[Out, MarshalAs(UnmanagedType.Bool)] out bool Append);
[PreserveSig]
new int OpenLogFileWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string File,
[In, MarshalAs(UnmanagedType.Bool)] bool Append);
[PreserveSig]
new int InputWide(
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint InputSize);
[PreserveSig]
new int ReturnInputWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string Buffer);
[PreserveSig]
new int OutputWide(
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPWStr)] string Format);
[PreserveSig]
new int OutputVaListWide( /* THIS SHOULD NEVER BE CALLED FROM C# */
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPWStr)] string Format,
[In] IntPtr va_list_Args);
[PreserveSig]
new int ControlledOutputWide(
[In] DEBUG_OUTCTL OutputControl,
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPWStr)] string Format);
[PreserveSig]
new int ControlledOutputVaListWide( /* THIS SHOULD NEVER BE CALLED FROM C# */
[In] DEBUG_OUTCTL OutputControl,
[In] DEBUG_OUTPUT Mask,
[In, MarshalAs(UnmanagedType.LPWStr)] string Format,
[In] IntPtr va_list_Args);
[PreserveSig]
new int OutputPromptWide(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPWStr)] string Format);
[PreserveSig]
new int OutputPromptVaListWide( /* THIS SHOULD NEVER BE CALLED FROM C# */
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPWStr)] string Format,
[In] IntPtr va_list_Args);
[PreserveSig]
new int GetPromptTextWide(
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint TextSize);
[PreserveSig]
new int AssembleWide(
[In] ulong Offset,
[In, MarshalAs(UnmanagedType.LPWStr)] string Instr,
[Out] out ulong EndOffset);
[PreserveSig]
new int DisassembleWide(
[In] ulong Offset,
[In] DEBUG_DISASM Flags,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint DisassemblySize,
[Out] out ulong EndOffset);
[PreserveSig]
new int GetProcessorTypeNamesWide(
[In] IMAGE_FILE_MACHINE Type,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder FullNameBuffer,
[In] int FullNameBufferSize,
[Out] out uint FullNameSize,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder AbbrevNameBuffer,
[In] int AbbrevNameBufferSize,
[Out] out uint AbbrevNameSize);
[PreserveSig]
new int GetTextMacroWide(
[In] uint Slot,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint MacroSize);
[PreserveSig]
new int SetTextMacroWide(
[In] uint Slot,
[In, MarshalAs(UnmanagedType.LPWStr)] string Macro);
[PreserveSig]
new int EvaluateWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string Expression,
[In] DEBUG_VALUE_TYPE DesiredType,
[Out] out DEBUG_VALUE Value,
[Out] out uint RemainderIndex);
[PreserveSig]
new int ExecuteWide(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPWStr)] string Command,
[In] DEBUG_EXECUTE Flags);
[PreserveSig]
new int ExecuteCommandFileWide(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPWStr)] string CommandFile,
[In] DEBUG_EXECUTE Flags);
[PreserveSig]
new int GetBreakpointByIndex2(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.Interface)] out IDebugBreakpoint2 bp);
[PreserveSig]
new int GetBreakpointById2(
[In] uint Id,
[Out, MarshalAs(UnmanagedType.Interface)] out IDebugBreakpoint2 bp);
[PreserveSig]
new int AddBreakpoint2(
[In] DEBUG_BREAKPOINT_TYPE Type,
[In] uint DesiredId,
[Out, MarshalAs(UnmanagedType.Interface)] out IDebugBreakpoint2 Bp);
[PreserveSig]
new int RemoveBreakpoint2(
[In, MarshalAs(UnmanagedType.Interface)] IDebugBreakpoint2 Bp);
[PreserveSig]
new int AddExtensionWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string Path,
[In] uint Flags,
[Out] out ulong Handle);
[PreserveSig]
new int GetExtensionByPathWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string Path,
[Out] out ulong Handle);
[PreserveSig]
new int CallExtensionWide(
[In] ulong Handle,
[In, MarshalAs(UnmanagedType.LPWStr)] string Function,
[In, MarshalAs(UnmanagedType.LPWStr)] string Arguments);
[PreserveSig]
new int GetExtensionFunctionWide(
[In] ulong Handle,
[In, MarshalAs(UnmanagedType.LPWStr)] string FuncName,
[Out] out IntPtr Function);
[PreserveSig]
new int GetEventFilterTextWide(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint TextSize);
[PreserveSig]
new int GetEventFilterCommandWide(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint CommandSize);
[PreserveSig]
new int SetEventFilterCommandWide(
[In] uint Index,
[In, MarshalAs(UnmanagedType.LPWStr)] string Command);
[PreserveSig]
new int GetSpecificEventFilterArgumentWide(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint ArgumentSize);
[PreserveSig]
new int SetSpecificEventFilterArgumentWide(
[In] uint Index,
[In, MarshalAs(UnmanagedType.LPWStr)] string Argument);
[PreserveSig]
new int GetExceptionFilterSecondCommandWide(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint CommandSize);
[PreserveSig]
new int SetExceptionFilterSecondCommandWide(
[In] uint Index,
[In, MarshalAs(UnmanagedType.LPWStr)] string Command);
[PreserveSig]
new int GetLastEventInformationWide(
[Out] out DEBUG_EVENT Type,
[Out] out uint ProcessId,
[Out] out uint ThreadId,
[In] IntPtr ExtraInformation,
[In] int ExtraInformationSize,
[Out] out uint ExtraInformationUsed,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Description,
[In] int DescriptionSize,
[Out] out uint DescriptionUsed);
[PreserveSig]
new int GetTextReplacementWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string SrcText,
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder SrcBuffer,
[In] int SrcBufferSize,
[Out] out uint SrcSize,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder DstBuffer,
[In] int DstBufferSize,
[Out] out uint DstSize);
[PreserveSig]
new int SetTextReplacementWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string SrcText,
[In, MarshalAs(UnmanagedType.LPWStr)] string DstText);
[PreserveSig]
new int SetExpressionSyntaxByNameWide(
[In, MarshalAs(UnmanagedType.LPWStr)] string AbbrevName);
[PreserveSig]
new int GetExpressionSyntaxNamesWide(
[In] uint Index,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder FullNameBuffer,
[In] int FullNameBufferSize,
[Out] out uint FullNameSize,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder AbbrevNameBuffer,
[In] int AbbrevNameBufferSize,
[Out] out uint AbbrevNameSize);
[PreserveSig]
new int GetEventIndexDescriptionWide(
[In] uint Index,
[In] DEBUG_EINDEX Which,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint DescSize);
[PreserveSig]
new int GetLogFile2(
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint FileSize,
[Out] out DEBUG_LOG Flags);
[PreserveSig]
new int OpenLogFile2(
[In, MarshalAs(UnmanagedType.LPStr)] string File,
[Out] out DEBUG_LOG Flags);
[PreserveSig]
new int GetLogFile2Wide(
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint FileSize,
[Out] out DEBUG_LOG Flags);
[PreserveSig]
new int OpenLogFile2Wide(
[In, MarshalAs(UnmanagedType.LPWStr)] string File,
[Out] out DEBUG_LOG Flags);
[PreserveSig]
new int GetSystemVersionValues(
[Out] out uint PlatformId,
[Out] out uint Win32Major,
[Out] out uint Win32Minor,
[Out] out uint KdMajor,
[Out] out uint KdMinor);
[PreserveSig]
new int GetSystemVersionString(
[In] DEBUG_SYSVERSTR Which,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint StringSize);
[PreserveSig]
new int GetSystemVersionStringWide(
[In] DEBUG_SYSVERSTR Which,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder Buffer,
[In] int BufferSize,
[Out] out uint StringSize);
[PreserveSig]
new int GetContextStackTrace(
[In] IntPtr StartContext,
[In] uint StartContextSize,
[Out, MarshalAs(UnmanagedType.LPArray)] DEBUG_STACK_FRAME[] Frames,
[In] int FrameSize,
[In] IntPtr FrameContexts,
[In] uint FrameContextsSize,
[In] uint FrameContextsEntrySize,
[Out] out uint FramesFilled);
[PreserveSig]
new int OutputContextStackTrace(
[In] DEBUG_OUTCTL OutputControl,
[In, MarshalAs(UnmanagedType.LPArray)] DEBUG_STACK_FRAME[] Frames,
[In] int FramesSize,
[In] IntPtr FrameContexts,
[In] uint FrameContextsSize,
[In] uint FrameContextsEntrySize,
[In] DEBUG_STACK Flags);
[PreserveSig]
new int GetStoredEventInformation(
[Out] out DEBUG_EVENT Type,
[Out] out uint ProcessId,
[Out] out uint ThreadId,
[In] IntPtr Context,
[In] uint ContextSize,
[Out] out uint ContextUsed,
[In] IntPtr ExtraInformation,
[In] uint ExtraInformationSize,
[Out] out uint ExtraInformationUsed);
[PreserveSig]
new int GetManagedStatus(
[Out] out DEBUG_MANAGED Flags,
[In] DEBUG_MANSTR WhichString,
[Out, MarshalAs(UnmanagedType.LPStr)] StringBuilder String,
[In] int StringSize,
[Out] out uint StringNeeded);
[PreserveSig]
new int GetManagedStatusWide(
[Out] out DEBUG_MANAGED Flags,
[In] DEBUG_MANSTR WhichString,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder String,
[In] int StringSize,
[Out] out uint StringNeeded);
[PreserveSig]
new int ResetManagedStatus(
[In] DEBUG_MANRESET Flags);
/* IDebugControl5 */
[PreserveSig]
int GetStackTraceEx(
[In] ulong FrameOffset,
[In] ulong StackOffset,
[In] ulong InstructionOffset,
[Out, MarshalAs(UnmanagedType.LPArray)] DEBUG_STACK_FRAME_EX[] Frames,
[In] int FramesSize,
[Out] out uint FramesFilled);
[PreserveSig]
int OutputStackTraceEx(