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.

48 lines
1.1 KiB

  1. ///+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (c) Microsoft Corporation, 1999
  5. //
  6. // File: removcat.hxx
  7. //
  8. // Contents: Class for configuring the registry for catalogs on removable
  9. // volumes.
  10. //
  11. // Classes: CRemovableCatalog
  12. //
  13. // History: 6-Apr-99 dlee Created.
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Class: CRemovableCatalog
  20. //
  21. // Purpose: Creates and destroys registry information for temporary
  22. // catalogs mounted from removable volumes
  23. //
  24. // History: 6-Apr-99 dlee created
  25. //
  26. //----------------------------------------------------------------------------
  27. class CRemovableCatalog
  28. {
  29. public:
  30. CRemovableCatalog( WCHAR wc ) : _wcDrive( wc ) {}
  31. void Create();
  32. void Destroy();
  33. void MakeCatalogName( WCHAR * awcBuf )
  34. {
  35. wsprintf( awcBuf, L"removable_%wc", _wcDrive );
  36. }
  37. private:
  38. WCHAR _wcDrive;
  39. };