windows-nt/Source/XPSP1/NT/inetsrv/query/h/removcat.hxx

49 lines
1.1 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
///+---------------------------------------------------------------------------
//
// 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;
};