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.

42 lines
1.2 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // Debug engine glue.
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999-2002.
  6. //
  7. //----------------------------------------------------------------------------
  8. #ifndef __ENGINE_HPP__
  9. #define __ENGINE_HPP__
  10. // Certain calls are dynamically linked so that the user-mode
  11. // code can be used on Win9x.
  12. struct NTDLL_CALLS
  13. {
  14. ULONG (__cdecl* DbgPrint)
  15. (PCH Format, ...);
  16. ULONG (NTAPI* DbgPrompt)
  17. (PCH Prompt, PCH Response, ULONG MaximumResponseLength);
  18. };
  19. extern NTDLL_CALLS g_NtDllCalls;
  20. extern BOOL g_Exit;
  21. extern BOOL g_CanOpenUnicodeDump;
  22. extern ULONG g_PlatformId;
  23. extern IDebugClient* g_DbgClient;
  24. extern IDebugClient2* g_DbgClient2;
  25. extern IDebugClient3* g_DbgClient3;
  26. extern IDebugClient4* g_DbgClient4;
  27. extern IDebugControl* g_DbgControl;
  28. extern IDebugControl3* g_DbgControl3;
  29. extern IDebugSymbols* g_DbgSymbols;
  30. extern ULONG g_ExecStatus;
  31. extern ULONG g_LastProcessExitCode;
  32. void CreateEngine(PCSTR RemoteOptions);
  33. void ConnectEngine(PCSTR RemoteOptions);
  34. void InitializeSession(void);
  35. BOOL MainLoop(void);
  36. #endif // #ifndef __ENGINE_HPP__