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.

49 lines
1.1 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // Command-line parsing and main routine.
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999-2001.
  6. //
  7. //----------------------------------------------------------------------------
  8. #ifndef __MAIN_HPP__
  9. #define __MAIN_HPP__
  10. #define MAX_INPUT_NESTING 32
  11. enum
  12. {
  13. IO_CONSOLE,
  14. IO_DEBUG,
  15. IO_NONE,
  16. };
  17. extern BOOL g_RemoteClient;
  18. extern BOOL g_DetachOnExitRequired;
  19. extern BOOL g_DetachOnExitImplied;
  20. extern PSTR g_DumpFile;
  21. extern PSTR g_DumpPageFile;
  22. extern PSTR g_InitialCommand;
  23. extern PSTR g_ConnectOptions;
  24. extern PSTR g_CommandLine;
  25. extern PSTR g_RemoteOptions;
  26. extern PSTR g_ProcessServer;
  27. extern PSTR g_ProcNameToDebug;
  28. extern ULONG g_IoRequested;
  29. extern ULONG g_IoMode;
  30. extern ULONG g_CreateFlags;
  31. extern ULONG g_AttachKernelFlags;
  32. extern ULONG g_PidToDebug;
  33. extern ULONG g_AttachProcessFlags;
  34. extern PSTR g_DebuggerName;
  35. extern PSTR g_InitialInputFile;
  36. extern FILE* g_InputFile;
  37. extern FILE* g_OldInputFiles[];
  38. extern ULONG g_NextOldInputFile;
  39. void ExecuteCmd(PSTR Cmd, char CmdExtra, char Sep, PSTR Args);
  40. #endif // #ifndef __MAIN_HPP__