Source code of Windows XP (NT5)
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.

51 lines
1.3 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991 - 1992
  6. //
  7. // File:
  8. //
  9. // Contents:
  10. //
  11. //
  12. // History:
  13. //
  14. //------------------------------------------------------------------------
  15. #include <ntsdexts.h>
  16. extern "C" PNTSD_EXTENSION_APIS pExtApis;
  17. extern "C" HANDLE hDbgThread;
  18. extern "C" HANDLE hDbgProcess;
  19. extern "C" char *pszToken;
  20. extern "C" char *pszTokenNext;
  21. #define ntsdPrintf (pExtApis->lpOutputRoutine)
  22. #define ntsdGetSymbol (pExtApis->lpGetSymbolRoutine)
  23. #define ntsdGetExpr (pExtApis->lpGetExpressionRoutine)
  24. #define ntsdCheckC (pExtApis->lpCheckControlCRoutine)
  25. inline void InitDebugHelp(
  26. HANDLE hProc,
  27. HANDLE hThd,
  28. PNTSD_EXTENSION_APIS pApis)
  29. {
  30. hDbgProcess = hProc;
  31. hDbgThread = hThd;
  32. pExtApis = pApis;
  33. }
  34. // #define InitDebugHelp(hProc,hThd,pApis) {hDbgProcess = hProc; hDbgThread = hThd; pExtApis = pApis;}
  35. extern void InitTokenStr(LPSTR lpzString);
  36. extern DWORD ReadMemory( PVOID pvAddress, ULONG cbMemory, PVOID pvLocalMemory);
  37. extern DWORD WriteMemory(PVOID pvLocalMemory, ULONG cbMemory, PVOID pvAddress);
  38. extern void ShowBinaryData(PBYTE pData,DWORD cbData);
  39. extern BOOL IsDebug_olethk32();
  40. extern BOOL IsDebug_ole32();