Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.2 KiB

extern HANDLE ProcessHandle;
extern BOOL fKD;
#undef DECLARE_API
#undef d_printf
#undef GetExpression
#undef GetSymbol
#undef Disasm
#undef CheckControlC
#define d_printf (ExtensionApis.lpOutputRoutine)
#define d_GetExpression (ExtensionApis.lpGetExpressionRoutine)
#define d_GetSymbol (ExtensionApis.lpGetSymbolRoutine)
#define d_Disasm (ExtensionApis.lpGetDisasmRoutine)
#define d_CheckControlC (ExtensionApis.lpCheckControlCRoutine)
#define DECLARE_API(s) \
VOID \
s( \
HANDLE hCurrentProcess, \
HANDLE hCurrentThread, \
DWORD dwCurrentPc, \
PWINDBG_EXTENSION_APIS pExtensionApis, \
LPSTR lpArgumentString \
)
#define INIT_DPRINTF() { if (!fKD) ExtensionApis = *pExtensionApis; ProcessHandle = hCurrentProcess; }
extern WINDBG_EXTENSION_APIS ExtensionApis;
#define MIN(x, y) ((x) < (y)) ? x:y
extern
BOOL
GetData(IN DWORD dwAddress, IN LPVOID ptr, IN ULONG size, IN PCSTR type );