Source code of Windows XP (NT5)
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.
|
|
#ifndef __RGSPRTC_H
#define __RGSPRTC_H
#include "regsuprt.h"
class CRegSupportCached : public CRegSupport { public: CRegSupportCached(); virtual ~CRegSupportCached();
BOOL RSValueExist(LPCTSTR pszSubKey, LPCTSTR pszValueName); BOOL RSSubKeyExist(LPCTSTR pszSubKey);
BOOL RSDeleteValue(LPCTSTR pszSubKey, LPCTSTR pszValueName); BOOL RSDeleteSubKey(LPCTSTR pszSubKey);
HKEY RSDuplicateRootKey();
protected: void _CloseRegSubKey(HKEY hkeyVolumeSubKey);
HKEY _GetRootKey(BOOL fCreate, DWORD dwOptions = REG_OPTION_INVALID);
BOOL _SetGeneric(LPCTSTR pszSubKey, LPCTSTR pszValueName, PBYTE pb, DWORD cb, DWORD dwType, DWORD dwOptions); BOOL _GetGeneric(LPCTSTR pszSubKey, LPCTSTR pszValueName, PBYTE pb, DWORD* pcb);
private: void _CloseCachedRootKey();
HKEY _hkeyRoot;
public: static BOOL _fUseCaching; };
#endif //__RGSPRTC_H
|