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
24 lines
609 B
#pragma once
|
|
|
|
class CMcRegistry
|
|
{
|
|
public:
|
|
CMcRegistry();
|
|
~CMcRegistry();
|
|
|
|
public:
|
|
bool OpenKey(HKEY hkeyStart, LPCTSTR strKey, REGSAM sam = KEY_READ | KEY_WRITE);
|
|
bool CreateKey(HKEY hkeyStart, LPCTSTR strKey);
|
|
bool CloseKey();
|
|
|
|
bool GetValue(LPCTSTR strValue, LPTSTR strData, ULONG nBufferSize);
|
|
bool GetValue(LPCTSTR strValue, DWORD& rdw);
|
|
|
|
bool SetValue(LPCTSTR strValue, LPCTSTR strData);
|
|
bool SetValue(LPCTSTR strValue, DWORD rdw);
|
|
|
|
private:
|
|
HKEY m_hkey;
|
|
};
|
|
|
|
//---------------------------------------------------------------------------
|