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.

50 lines
1.2 KiB

  1. //
  2. // rmigrate.h
  3. //
  4. // Implementation of CTscRegMigrate
  5. //
  6. // CTscRegMigrate migrates Tsc settings from the registry
  7. // to .RDP files
  8. //
  9. // Copyright(C) Microsoft Corporation 2000
  10. // Author: Nadim Abdo (nadima)
  11. //
  12. //
  13. #ifndef _rmigrate_h_
  14. #define _rmigrate_h_
  15. #include "setstore.h"
  16. class CTscRegMigrate
  17. {
  18. public:
  19. CTscRegMigrate();
  20. ~CTscRegMigrate();
  21. BOOL MigrateAll(LPTSTR szRootDirectory);
  22. BOOL MigrateSession(LPTSTR szSessionName, ISettingsStore* pStore,
  23. BOOL fDeleteUnsafeRegKeys = FALSE);
  24. private:
  25. BOOL MigrateHiveSettings(HKEY hKey,
  26. LPCTSTR szRootName,
  27. ISettingsStore* pSto);
  28. BOOL MigrateAsRealBinary(LPCTSTR szName);
  29. BOOL FilterStringMigrate(LPTSTR szName);
  30. BOOL MungeForWin2kDefaults(ISettingsStore* pSto);
  31. #ifndef OS_WINCE
  32. BOOL ConvertPasswordFormat(ISettingsStore* pSto);
  33. #endif
  34. BOOL DeleteRegValue(HKEY hKeyRoot,
  35. LPCTSTR szRootName,
  36. LPCTSTR szValueName);
  37. BOOL RemoveUnsafeRegEntries(HKEY hKeyRoot,
  38. LPCTSTR szRootName);
  39. };
  40. #endif _rmigrate_h_