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

///+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (c) Microsoft Corporation, 1999
//
// File: removcat.hxx
//
// Contents: Class for configuring the registry for catalogs on removable
// volumes.
//
// Classes: CRemovableCatalog
//
// History: 6-Apr-99 dlee Created.
//
//----------------------------------------------------------------------------
#pragma once
//+---------------------------------------------------------------------------
//
// Class: CRemovableCatalog
//
// Purpose: Creates and destroys registry information for temporary
// catalogs mounted from removable volumes
//
// History: 6-Apr-99 dlee created
//
//----------------------------------------------------------------------------
class CRemovableCatalog
{
public:
CRemovableCatalog( WCHAR wc ) : _wcDrive( wc ) {}
void Create();
void Destroy();
void MakeCatalogName( WCHAR * awcBuf )
{
wsprintf( awcBuf, L"removable_%wc", _wcDrive );
}
private:
WCHAR _wcDrive;
};