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.

57 lines
1.5 KiB

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