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.
|
|
//-----------------------------------------------------------------------------
//
// File: _optvalstore.h
// Copyright (C) 1994-1997 Microsoft Corporation
// All rights reserved.
//
//
//
//-----------------------------------------------------------------------------
#pragma once
#pragma warning(disable: 4275) // non dll-interface class 'foo' used
// as base for dll-interface class 'bar'
class LTAPIENTRY CLocOptionValStore : public CRefCount, public CObject { public: CLocOptionValStore() {};
void AssertValid(void) const;
virtual CLocOptionValSet *GetOptions(const CLString &strOptionGroup) = 0;
virtual BOOL RemoveOption(const CLString &strOptionGroup, const CLString &strOptionName) = 0; virtual BOOL StoreOption(const CLString &strOptionGroup, const CLocOptionVal *); virtual BOOL StoreOption(const CLString &strOptionGroup, const CLString &strName, const CLocVariant &) = 0; virtual BOOL RemoveOptions(const CLString &strOptionGroup) = 0;
private: CLocOptionValStore(const CLocOptionValStore &); void operator=(int); };
class LTAPIENTRY CLocOptionValRegStore : public CLocOptionValStore { public: CLocOptionValRegStore();
void AssertValid(void) const; BOOL SetRegistryKeyName(const TCHAR *);
virtual CLocOptionValSet *GetOptions(const CLString &strOptionGroup);
virtual BOOL RemoveOption(const CLString &strOptionGroup, const CLString &strOptionName); virtual BOOL StoreOption(const CLString &strOptionGroup, const CLString &strName, const CLocVariant &); virtual BOOL RemoveOptions(const CLString &strOptionGroup);
virtual ~CLocOptionValRegStore();
private: HKEY m_hkRegStorage; CLocOptionValSetList m_oslCache;
void PurgeOptionCache(void); };
#pragma warning(default: 4275)
|