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.

49 lines
1.1 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // setup.h
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef _SETUP_H_
  11. #define _SETUP_H_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif
  15. #include "datastore2.h"
  16. class CIASMigrateOrUpgrade
  17. {
  18. public:
  19. CIASMigrateOrUpgrade();
  20. HRESULT Execute(
  21. BOOL FromNetshell = FALSE,
  22. IAS_SHOW_TOKEN_LIST configType = CONFIG
  23. );
  24. protected:
  25. LONG GetVersionNumber(LPCWSTR DatabaseName);
  26. // Reads as "Do Netshell Data Migration"
  27. void DoNetshellDataMigration(IAS_SHOW_TOKEN_LIST configType);
  28. void DoNT4UpgradeOrCleanInstall();
  29. void DoWin2000Upgrade();
  30. void DoXPOrDotNetUpgrade();
  31. enum _MigrateType
  32. {
  33. NetshellDataMigration,
  34. NT4UpgradeOrCleanInstall,
  35. Win2kUpgrade,
  36. XPOrDotNetUpgrade,
  37. };
  38. _MigrateType m_migrateType;
  39. _bstr_t m_pIASNewMdb, m_pIASMdb, m_pIASOldMdb;
  40. };
  41. #endif // _SETUP_H_