File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ Module Name:
1818#include " dbgexts.h"
1919#include < strsafe.h>
2020
21- PDEBUG_CLIENT4 g_ExtClient;
22- PDEBUG_CONTROL g_ExtControl;
23- PDEBUG_SYMBOLS2 g_ExtSymbols;
21+ PDEBUG_CLIENT4 g_ExtClient;
22+ PDEBUG_CONTROL g_ExtControl;
23+ PDEBUG_SYMBOLS2 g_ExtSymbols;
24+ PDEBUG_REGISTERS g_ExtRegisters;
2425
2526WINDBG_EXTENSION_APIS ExtensionApis;
2627
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ Module Name:
1414#include < stdio.h>
1515#include < stdlib.h>
1616#include < string.h>
17+ #include < string>
18+ #include < vector>
1719
1820//
1921// Define KDEXT_64BIT to make all wdbgexts APIs recognize 64 bit addresses
@@ -31,6 +33,25 @@ Module Name:
3133extern " C" {
3234#endif
3335
36+ typedef enum _PRINTF_DML_COLOR {
37+ Normal,
38+ Verbose,
39+ Warning,
40+ Err,
41+ Subdued,
42+ Header,
43+ Emphasized,
44+ Changed,
45+ ColorMax
46+ } PRINTF_DML_COLOR , *PPRINTF_DML_COLOR ;
47+
48+ VOID
49+ PrintDml (
50+ __in PRINTF_DML_COLOR Mask,
51+ __in PCSTR Format,
52+ ...
53+ );
54+
3455#define INIT_API () \
3556 HRESULT Status; \
3657 if ((Status = ExtQuery(Client)) != S_OK ) return Status;
@@ -41,9 +62,11 @@ extern "C" {
4162#define EXIT_API ExtRelease
4263
4364// Global variables initialized by query.
44- extern PDEBUG_CLIENT4 g_ExtClient ;
45- extern PDEBUG_CONTROL g_ExtControl ;
46- extern PDEBUG_SYMBOLS2 g_ExtSymbols ;
65+ extern PDEBUG_CLIENT4 g_ExtClient;
66+ extern PDEBUG_CONTROL g_ExtControl;
67+ extern PDEBUG_SYMBOLS2 g_ExtSymbols;
68+ extern PDEBUG_REGISTERS g_ExtRegisters;
69+ extern ULONG g_TargetMachine;
4770
4871extern BOOL Connected;
4972extern ULONG TargetMachine;
You can’t perform that action at this time.
0 commit comments