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

  1. extern HANDLE ProcessHandle;
  2. extern BOOL fKD;
  3. #undef DECLARE_API
  4. #undef d_printf
  5. #undef GetExpression
  6. #undef GetSymbol
  7. #undef Disasm
  8. #undef CheckControlC
  9. #define d_printf (ExtensionApis.lpOutputRoutine)
  10. #define d_GetExpression (ExtensionApis.lpGetExpressionRoutine)
  11. #define d_GetSymbol (ExtensionApis.lpGetSymbolRoutine)
  12. #define d_Disasm (ExtensionApis.lpGetDisasmRoutine)
  13. #define d_CheckControlC (ExtensionApis.lpCheckControlCRoutine)
  14. #define DECLARE_API(s) \
  15. VOID \
  16. s( \
  17. HANDLE hCurrentProcess, \
  18. HANDLE hCurrentThread, \
  19. DWORD dwCurrentPc, \
  20. PWINDBG_EXTENSION_APIS pExtensionApis, \
  21. LPSTR lpArgumentString \
  22. )
  23. #define INIT_DPRINTF() { if (!fKD) ExtensionApis = *pExtensionApis; ProcessHandle = hCurrentProcess; }
  24. extern WINDBG_EXTENSION_APIS ExtensionApis;
  25. #define MIN(x, y) ((x) < (y)) ? x:y
  26. extern
  27. BOOL
  28. GetData(IN DWORD dwAddress, IN LPVOID ptr, IN ULONG size, IN PCSTR type );