registry.h

来自「强大易用的邮件收发客户端」· C头文件 代码 · 共 29 行

H
29
字号
//// 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 + =
减小字号Ctrl + -
显示快捷键?