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.

24 lines
609 B

  1. #pragma once
  2. class CMcRegistry
  3. {
  4. public:
  5. CMcRegistry();
  6. ~CMcRegistry();
  7. public:
  8. bool OpenKey(HKEY hkeyStart, LPCTSTR strKey, REGSAM sam = KEY_READ | KEY_WRITE);
  9. bool CreateKey(HKEY hkeyStart, LPCTSTR strKey);
  10. bool CloseKey();
  11. bool GetValue(LPCTSTR strValue, LPTSTR strData, ULONG nBufferSize);
  12. bool GetValue(LPCTSTR strValue, DWORD& rdw);
  13. bool SetValue(LPCTSTR strValue, LPCTSTR strData);
  14. bool SetValue(LPCTSTR strValue, DWORD rdw);
  15. private:
  16. HKEY m_hkey;
  17. };
  18. //---------------------------------------------------------------------------