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.

52 lines
1.3 KiB

  1. /*
  2. NOTE: Debugger extensions should be compiled with the headers that match the debugger
  3. you will use.
  4. You can install the latest debugger package from http://www.microsoft.com/ddk/debugging
  5. and the debugger has more up to date samples of various debugger extensions to which you
  6. can refer when you write debugger extensions.
  7. */
  8. //
  9. // Copy some definitions in mp_dbg.h here
  10. //
  11. #define MP_LOUD 4
  12. #define MP_INFO 3
  13. #define MP_TRACE 2
  14. #define MP_WARN 1
  15. #define MP_ERROR 0
  16. #define SIGN_EXTEND(_v) \
  17. if (GetTypeSize("PVOID") != sizeof(ULONG64)) \
  18. (_v) = (ULONG64) (LONG64) (LONG) (_v)
  19. #define DBG_TEST_FLAG(_V, _F) (((_V) & (_F)) != 0)
  20. void PrintMpTcbDetails(ULONG64 pMpTcb, int Verbosity);
  21. void PrintHwTcbDetails(ULONG64 pHwTcb);
  22. void PrintMpRfdDetails(ULONG64 pMpRfd, int Verbosity);
  23. void PrintHwRfdDetails(ULONG64 pHwRfd);
  24. BOOL GetData( IN LPVOID ptr, IN ULONG64 AddressPtr, IN ULONG size, IN PCSTR type );
  25. ULONG GetFieldOffsetAndSize(
  26. IN LPSTR Type,
  27. IN LPSTR Field,
  28. OUT PULONG pOffset,
  29. OUT PULONG pSize);
  30. ULONG GetUlongFromAddress(
  31. ULONG64 Location);
  32. ULONG64 GetPointerFromAddress(
  33. ULONG64 Location);
  34. ULONG GetUlongValue(
  35. PCHAR String);
  36. ULONG64 GetPointerValue(
  37. PCHAR String);