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.

54 lines
1.0 KiB

  1. //*************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation 1998
  4. // All rights reserved
  5. //
  6. // cspath.hxx
  7. //
  8. // Class for building and setting the ClassStore path in the
  9. // registry.
  10. //
  11. //*************************************************************
  12. #define APPMGMT_INI_FILENAME L"AppMgmt.ini"
  13. #define APPMGMT_INI_CSTORE_SECTIONNAME L"ClassStore"
  14. #define APPMGMT_INI_CSPATH_KEYNAME L"ClassStorePath"
  15. class CSPath
  16. {
  17. public:
  18. CSPath();
  19. ~CSPath();
  20. DWORD
  21. AddComponent(
  22. WCHAR * pwszDSPath,
  23. WCHAR * pwszDisplayName
  24. );
  25. DWORD
  26. Commit(
  27. HANDLE hToken
  28. );
  29. DWORD
  30. WriteClassStorePath(
  31. HANDLE hToken,
  32. LPWSTR pwszClassStorePath);
  33. WCHAR* GetPath()
  34. {
  35. return _pwszPath;
  36. }
  37. private:
  38. LONG
  39. WriteClassStorePathToFile(
  40. WCHAR* wszIniFilePath,
  41. WCHAR* wszClassStorePath);
  42. WCHAR * _pwszPath;
  43. };