Windows NT 4.0 source code leak
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.

45 lines
1.4 KiB

4 years ago
  1. /******************************Module*Header*******************************\
  2. * Module Name: dbgfns.h
  3. *
  4. * Debugger extensions helper routines
  5. *
  6. * Created: 26-Jan-95
  7. * Author: Drew Bliss
  8. *
  9. * Copyright (c) 1995 Microsoft Corporation
  10. \**************************************************************************/
  11. #ifndef __DBGFNS_H__
  12. #define __DBGFNS_H__
  13. #define DBG_ENTRY(name) \
  14. void name(HANDLE hCurrentProcess, HANDLE hCurrentThread, DWORD dwCurrentPc, \
  15. PWINDBG_EXTENSION_APIS pwea, LPSTR pszArguments)
  16. #define PRINT pwea->lpOutputRoutine
  17. #define GET_SYMBOL pwea->lpGetSymbolRoutine
  18. #define GET_EXPR pwea->lpGetExpressionRoutine
  19. #define GM_OBJ(src, obj) \
  20. GetMemory(pwea, hCurrentProcess, src, (PVOID)&(obj), sizeof(obj))
  21. #define GM_BLOCK(src, dst, cb) \
  22. GetMemory(pwea, hCurrentProcess, src, dst, cb)
  23. BOOL GetMemory(PWINDBG_EXTENSION_APIS pwea,
  24. HANDLE hCurrentProcess,
  25. DWORD dwSrc, PVOID pvDst, DWORD cb);
  26. #define CURRENT_TEB() GetTeb(pwea, hCurrentProcess, hCurrentThread)
  27. PTEB GetTeb(PWINDBG_EXTENSION_APIS pwea,
  28. HANDLE hCurrentProcess,
  29. HANDLE hThread);
  30. #define IS_CSR_SERVER_THREAD() \
  31. IsCsrServerThread(pwea, hCurrentProcess, hCurrentThread)
  32. BOOL IsCsrServerThread(PWINDBG_EXTENSION_APIS pwea,
  33. HANDLE hCurrentProcess,
  34. HANDLE hThread);
  35. #endif