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.

40 lines
1.2 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. #define InitDebugHelp(hProc,hThd,pApis) {hDbgProcess = hProc; hDbgThread = hThd; pExtApis = pApis;}
  26. extern void InitTokenStr(LPSTR lpzString);
  27. extern DWORD ReadMemory( PVOID pvAddress, ULONG cbMemory, PVOID pvLocalMemory);
  28. extern DWORD WriteMemory(PVOID pvLocalMemory, ULONG cbMemory, PVOID pvAddress);
  29. extern void ShowBinaryData(PBYTE pData,DWORD cbData);
  30. extern BOOL IsDebug_olethk32();
  31. extern BOOL IsDebug_ole32();