📄 regkey.h
字号:
#include <winreg.h>
class CRegKey
{
// Construction
public:
CRegKey();
virtual ~CRegKey();
// Operations
public:
BOOL DeleteKey(HKEY hKey,LPCTSTR pszSubKey,LPCTSTR pszValueName=NULL);
LONG Open (HKEY hKeyRoot, LPCTSTR pszPath);
void Close();
LONG Write (LPCTSTR pszKey, DWORD dwVal);
LONG Write (LPCTSTR pszKey, LPCTSTR pszVal);
LONG Write (LPCTSTR pszKey, const BYTE* pData, DWORD dwLength);
LONG Read (LPCTSTR pszKey, DWORD& dwVal);
LONG Read (LPCTSTR pszKey, CString& sVal);
LONG Read (LPCTSTR pszKey, BYTE* pData, DWORD& dwLength);
LONG GetEnumKeys(HKEY hKeyRoot, LPCTSTR pszPath, CStringArray &strArray);
LONG GetEnumValues(HKEY hKeyRoot, LPCTSTR pszPath, CStringArray &strArray);
protected:
HKEY m_hKey;
CString m_sPath;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -