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.

98 lines
2.6 KiB

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