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.

110 lines
1.5 KiB

  1. VOID
  2. InitAppCommon (
  3. VOID
  4. );
  5. VOID
  6. TerminateAppCommon (
  7. VOID
  8. );
  9. HINF
  10. InitRequiredInfs (
  11. IN PCTSTR AppPath,
  12. IN PCSTR FailMessageId
  13. );
  14. VOID
  15. PrintMsgOnConsole (
  16. IN UINT MsgId
  17. );
  18. VOID
  19. UploadEnvVars (
  20. IN MIG_PLATFORMTYPEID Platform
  21. );
  22. VOID
  23. SetLogVerbosity (
  24. IN INT VerboseLevel
  25. );
  26. BOOL
  27. GetFilePath (
  28. IN PCTSTR UserSpecifiedFile,
  29. OUT PTSTR Buffer,
  30. IN UINT BufferTchars
  31. );
  32. VOID
  33. WriteAppStatus (
  34. IN PCTSTR AppJournal,
  35. IN DWORD Status
  36. );
  37. DWORD
  38. ReadAppStatus (
  39. IN PCTSTR AppJournal
  40. );
  41. VOID
  42. SelectComponentsViaInf (
  43. IN HINF Inf
  44. );
  45. typedef struct {
  46. GROWBUFFER BadInfs;
  47. GROWBUFFER MultiInfs;
  48. GROWBUFFER InputInf;
  49. PCTSTR LogFile;
  50. INT VerboseLevel;
  51. BOOL SystemOn;
  52. BOOL UserOn;
  53. BOOL FilesOn;
  54. BOOL TestMode;
  55. BOOL OverwriteImage;
  56. BOOL DelayedOpsOn;
  57. BOOL NoScanStateInfs;
  58. union {
  59. BOOL ContinueOnError;
  60. BOOL CurrentUser;
  61. };
  62. PCTSTR StoragePath;
  63. BOOL FullTransport;
  64. PCTSTR TransportName;
  65. BOOL TransportNameSpecified;
  66. DWORD Capabilities;
  67. #ifdef PRERELEASE
  68. BOOL Recovery;
  69. TCHAR Tag[64];
  70. #endif
  71. } TOOLARGS, *PTOOLARGS;
  72. typedef enum {
  73. PARSE_SUCCESS,
  74. PARSE_MULTI_LOG,
  75. PARSE_BAD_LOG,
  76. PARSE_MULTI_VERBOSE,
  77. PARSE_MISSING_STORAGE_PATH,
  78. PARSE_OTHER_ERROR
  79. } PARSERESULT;
  80. PARSERESULT
  81. ParseToolCmdLine (
  82. IN BOOL ScanState,
  83. IN OUT PTOOLARGS Args,
  84. IN INT Argc,
  85. IN PCTSTR Argv[]
  86. );