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.

91 lines
2.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) Microsoft Corporation all rights reserved.
  4. //
  5. // Module: DoUpgrade.h
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description: Declaration of CDoNT4OrCleanUpgrade, CMigrateOrUpgradeWindowsDB
  10. // and CUpgradeNT4
  11. //
  12. /////////////////////////////////////////////////////////////////////////////
  13. #ifndef _DOUPGRADE_H_FC532313_DB66_459d_B499_482834B55EC2
  14. #define _DOUPGRADE_H_FC532313_DB66_459d_B499_482834B55EC2
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. #include "globaltransaction.h"
  19. #include "GlobalData.h"
  20. #include "nocopy.h"
  21. #include "datastore2.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CDoUpgrade
  24. class CDoNT4OrCleanUpgrade : private NonCopyable
  25. {
  26. public:
  27. CDoNT4OrCleanUpgrade():m_Utils(CUtils::Instance())
  28. {
  29. }
  30. void Execute();
  31. private:
  32. CUtils& m_Utils;
  33. };
  34. //////////////////////////////////////////////////////////////////////////////
  35. // class CMigrateOrUpgradeWindowsDB
  36. //////////////////////////////////////////////////////////////////////////////
  37. class CMigrateOrUpgradeWindowsDB
  38. {
  39. public:
  40. CMigrateOrUpgradeWindowsDB(IAS_SHOW_TOKEN_LIST configType = CONFIG);
  41. ~CMigrateOrUpgradeWindowsDB();
  42. void Execute();
  43. private:
  44. LONG GetVersionNumber();
  45. CUtils& m_Utils;
  46. CGlobalTransaction& m_GlobalTransaction;
  47. CGlobalData m_GlobalData;
  48. _bstr_t m_IASWhistlerPath;
  49. _bstr_t m_IASOldPath;
  50. HRESULT m_Outcome;
  51. IAS_SHOW_TOKEN_LIST m_ConfigType;
  52. };
  53. //////////////////////////////////////////////////////////////////////////////
  54. // class CUpgradeNT4
  55. //////////////////////////////////////////////////////////////////////////////
  56. class CUpgradeNT4
  57. {
  58. public:
  59. CUpgradeNT4();
  60. ~CUpgradeNT4() throw();
  61. void Execute();
  62. private:
  63. void FinishNewNT4Migration(LONG Result);
  64. CUtils& m_Utils;
  65. CGlobalTransaction& m_GlobalTransaction;
  66. CGlobalData m_GlobalData;
  67. HRESULT m_Outcome;
  68. _bstr_t m_IASNT4Path;
  69. _bstr_t m_IasMdbTemp;
  70. _bstr_t m_Ias2MdbString;
  71. _bstr_t m_DnaryMdbString;
  72. _bstr_t m_AuthSrvMdbString;
  73. _bstr_t m_IASWhistlerPath;
  74. };
  75. #endif //_DOUPGRADE_H_FC532313_DB66_459d_B499_482834B55EC2