📄 lregistry.h
字号:
// LRegistry.h: interface for the CLRegistry class.
//作者:孟庆远
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LREGISTRY_H__A9B30D0F_FE67_11D8_AA68_9A1092EC0F7E__INCLUDED_)
#define AFX_LREGISTRY_H__A9B30D0F_FE67_11D8_AA68_9A1092EC0F7E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CLRegistry : public CObject
{
public:
CLRegistry();
virtual ~CLRegistry();
struct REGINFO
{
LONG lMessage;
DWORD dwType;
DWORD dwSize;
} m_Info;
protected:
HKEY m_hKey;
CString m_sPath;
public:
BOOL CreateKey(HKEY hKeyRoot,LPCTSTR pszPath);
BOOL Open(HKEY hKeyRoot,LPCTSTR pszPath);
void Close();
BOOL VerifyKey(HKEY hKeyRoot,LPCTSTR pszPath);
BOOL VerifyKey(LPCTSTR pszPath);
BOOL VerifyValue(LPCTSTR pszValue);
BOOL DeleteValue(LPCTSTR pszValue);
BOOL DeleteValueKey(HKEY hKeyRoot,LPCTSTR pszPath);
BOOL Write(LPCTSTR pszKey,int iVal);
BOOL Write(LPCTSTR pszKey,DWORD dwVal);
BOOL Write(LPCTSTR pszKey,LPCTSTR pszVal);
BOOL Read(LPCTSTR pszKey,int &iVal);
BOOL Read(LPCTSTR pszKey,DWORD &dwVal);
BOOL Read(LPCTSTR pszKey,CString &pszVal);
BOOL EnumValue(CString &pszKey,CString &pszVal,DWORD index);
BOOL EnumValueA(CString &pszKey,CString &pszVal,DWORD index);
BOOL EnumKey(CString &nsKey,DWORD index);
};
#endif // !defined(AFX_LREGISTRY_H__A9B30D0F_FE67_11D8_AA68_9A1092EC0F7E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -