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.

119 lines
2.0 KiB

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