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.

39 lines
1001 B

  1. #ifndef __RGSPRTC_H
  2. #define __RGSPRTC_H
  3. #include "regsuprt.h"
  4. class CRegSupportCached : public CRegSupport
  5. {
  6. public:
  7. CRegSupportCached();
  8. virtual ~CRegSupportCached();
  9. BOOL RSValueExist(LPCTSTR pszSubKey, LPCTSTR pszValueName);
  10. BOOL RSSubKeyExist(LPCTSTR pszSubKey);
  11. BOOL RSDeleteValue(LPCTSTR pszSubKey, LPCTSTR pszValueName);
  12. BOOL RSDeleteSubKey(LPCTSTR pszSubKey);
  13. HKEY RSDuplicateRootKey();
  14. protected:
  15. void _CloseRegSubKey(HKEY hkeyVolumeSubKey);
  16. HKEY _GetRootKey(BOOL fCreate, DWORD dwOptions = REG_OPTION_INVALID);
  17. BOOL _SetGeneric(LPCTSTR pszSubKey, LPCTSTR pszValueName,
  18. PBYTE pb, DWORD cb, DWORD dwType,
  19. DWORD dwOptions);
  20. BOOL _GetGeneric(LPCTSTR pszSubKey, LPCTSTR pszValueName,
  21. PBYTE pb, DWORD* pcb);
  22. private:
  23. void _CloseCachedRootKey();
  24. HKEY _hkeyRoot;
  25. public:
  26. static BOOL _fUseCaching;
  27. };
  28. #endif //__RGSPRTC_H