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.

83 lines
2.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 1999-2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: migratemdb.h
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description: Implementation of CMigrateMdb
  10. // Used only by the NT4 migration code
  11. //
  12. // Author: tperraut
  13. //
  14. // Revision 02/25/2000 created
  15. //
  16. /////////////////////////////////////////////////////////////////////////////
  17. #ifndef _MIGRATEMDB_H_852AA70D_D88D_4925_8D12_BE4A607723F5
  18. #define _MIGRATEMDB_H_852AA70D_D88D_4925_8D12_BE4A607723F5
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. #include "nocopy.h"
  23. class CMigrateMdb : private NonCopyable
  24. {
  25. public:
  26. explicit CMigrateMdb(
  27. CUtils& pUtils,
  28. CGlobalData& pGlobalData
  29. )
  30. : m_Utils(pUtils),
  31. m_GlobalData(pGlobalData)
  32. {
  33. }
  34. void NewMigrate();
  35. private:
  36. void ConvertVSA(
  37. /*[in]*/ LPCWSTR pAttributeValueName,
  38. /*[in]*/ LPCWSTR pAttrValue,
  39. _bstr_t& NewString
  40. );
  41. void NewMigrateClients();
  42. void NewMigrateProfiles();
  43. void NewMigrateAccounting();
  44. void NewMigrateEventLog();
  45. void NewMigrateService();
  46. void MigrateProxyServers();
  47. void MigrateCorpProfile(
  48. const _bstr_t& ProfileName,
  49. const _bstr_t& Description
  50. );
  51. void MigrateAttribute(
  52. const _bstr_t& Attribute,
  53. LONG AttributeNumber,
  54. const _bstr_t& AttributeValueName,
  55. const _bstr_t& StringValue,
  56. LONG RASProfileIdentity
  57. );
  58. void ConvertAttribute(
  59. const _bstr_t& Value,
  60. LONG Syntax,
  61. LONG& Type,
  62. bstr_t& StrVal
  63. );
  64. void MigrateOtherProfile(
  65. const _bstr_t& ProfileName,
  66. LONG ProfileIdentity
  67. );
  68. CUtils& m_Utils;
  69. CGlobalData& m_GlobalData;
  70. };
  71. #endif // _MIGRATEMDB_H_852AA70D_D88D_4925_8D12_BE4A607723F5_