📄 regkey.h
字号:
#if !defined(AFX_CREGKEY1_H__15796546_EB23_11D2_8E55_00C00C02B5CD__INCLUDED_)
#define AFX_CREGKEY1_H__15796546_EB23_11D2_8E55_00C00C02B5CD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//-------------------------------------------------------
// 注册表的操作类 : CRegKey
//
// Author : JonFei
// Modify : 1999/10/29
//
// -------------------------------------------------------
class CRegKey1
{
public:
CRegKey1() { m_hKey = NULL;}
~CRegKey1() {Close();}
// Attributes
public:
HKEY m_hKey;
BOOL SetStringValue(LPCTSTR pszKey , CString strValue );
BOOL GetStringValue(LPCTSTR pszKey , CString& strValue );
BOOL SetIntValue( LPCTSTR pszKey , int nValue );
BOOL GetIntValue( LPCTSTR pszKey , int &nValue );
BOOL SetDWordValue (LPCTSTR pszKey, DWORD dwVal);
BOOL GetDWordValue(LPCTSTR pszKey, DWORD& dwVal);
// Operations
public:
BOOL Create(HKEY hKey, LPCTSTR lpszKeyName);
BOOL Open(HKEY hKey, LPCTSTR lpszKeyName);
BOOL VerifyKey (HKEY hKeyRoot, LPCTSTR pszPath);
BOOL VerifyKey (LPCTSTR pszPath);
BOOL VerifyValue (LPCTSTR pszValue);
void Close();
// Overrides
// Implementation
protected:
};
/////////////////////////////////////////////////////////////////////////////
#endif // !defined(AFX_REGKEY1_H__15796546_EB23_11D2_8E55_00C00C02B5CD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -