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.

67 lines
1.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: migratecontent.cpp
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description: Win2k and early Whistler mdb to Whistler Migration
  10. // class CMigrateContent
  11. //
  12. // Author: tperraut 06/08/2000
  13. //
  14. // Revision
  15. //
  16. /////////////////////////////////////////////////////////////////////////////
  17. #ifndef _MIGRATECONTENT_H_66418310_AD32_4e40_867E_1705E4373A5A
  18. #define _MIGRATECONTENT_H_66418310_AD32_4e40_867E_1705E4373A5A
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. #include "nocopy.h"
  23. class CMigrateContent : private NonCopyable
  24. {
  25. public:
  26. explicit CMigrateContent(
  27. CUtils& pUtils,
  28. CGlobalData& pGlobalData,
  29. IAS_SHOW_TOKEN_LIST configType
  30. )
  31. : m_Utils(pUtils),
  32. m_GlobalData(pGlobalData),
  33. m_ConfigType(configType)
  34. {
  35. }
  36. // Flags passed to UpdateWhistler.
  37. static const DWORD updateChangePassword = 1;
  38. static const DWORD migrateEapConfig = 2;
  39. void Migrate();
  40. void UpdateWhistler(DWORD flags);
  41. private:
  42. HRESULT CopyTree(LONG RefId, LONG ParentParam);
  43. void MigrateWin2kRealms();
  44. void MigrateClients();
  45. void MigrateProfilesPolicies();
  46. void MigrateProxyProfilesPolicies();
  47. void MigrateAccounting();
  48. void MigrateEventLog();
  49. void MigrateService();
  50. void MigrateServerGroups();
  51. void ApplyProfileFlags(DWORD flags);
  52. CUtils& m_Utils;
  53. CGlobalData& m_GlobalData;
  54. IAS_SHOW_TOKEN_LIST m_ConfigType;
  55. };
  56. #endif // _MIGRATECONTENT_H_66418310_AD32_4e40_867E_1705E4373A5A