📄 registry.h
字号:
//// CRegistry - base class for direct Registry access
#ifndef _CREG_H_
#define _CREG_H_
class CRegistry
{
public:
CRegistry();
~CRegistry();
// RegSection = HKEY_x constant
BOOL EnumValues(HKEY RegSection, LPCTSTR RegPath,
CStringArray* pAr);
BOOL EnumKeys(HKEY RegSection, LPCTSTR RegPath,
CStringArray* pAr);
LPCTSTR GetValueString(HKEY RegSection, LPCTSTR RegPath,
LPCTSTR Value, LPCTSTR DefRes=NULL);
int GetValueInt(HKEY RegSection, LPCTSTR RegPath,
LPCTSTR Value, int DefRes=0);
BOOL SetValueInt(HKEY RegSection, LPCTSTR RegPath,
LPCTSTR Value, int V);
BOOL SetValueString(HKEY RegSection, LPCTSTR RegPath,
LPCTSTR Value, LPCTSTR V);
protected:
CString m_sResult; // for returning
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -