reg.h
来自「wince 系统时间、音量及背光、触摸屏校正以及进程查看大集合r」· C头文件 代码 · 共 33 行
H
33 行
#pragma once
class CReg
{
public:
CReg(void);
CReg(HKEY hkRoot, LPCTSTR pszKey);
~CReg(void);
bool DeleteKey(LPCTSTR szName);
bool DeleteValue(LPCTSTR szName);
bool SetMultiSZ(LPCTSTR szName , LPCTSTR lpszValue , DWORD dwLen);
bool SetBinary(LPCTSTR szName , LPBYTE lpbValue , DWORD dwLen);
bool SetDW(LPCTSTR szName , DWORD dwValue);
bool SetSZ(LPCTSTR szName , LPCTSTR szValue);
bool SetSZ(LPCTSTR szName , LPCTSTR szValue , DWORD dwLen);
DWORD GetValueDW(LPCTSTR szName , DWORD dwDefault = 0);
LPCTSTR GetValueSZ(LPCTSTR szName);
LPBYTE GetValueBinary(LPCTSTR szName);
DWORD GetValueBinary(LPCTSTR szName , LPBYTE lpbValue , DWORD dwLen);
bool GetValueSZ(LPCTSTR szName , LPCTSTR szValue , DWORD dwLen);
bool EnumValue(LPTSTR pszName , DWORD dwLenName , LPTSTR pszValue , DWORD dwLenValue);
bool EnumKey(LPTSTR psz , DWORD dwLen);
BOOL IsOK(void);
void Reset(void);
bool Open(HKEY hkRoot , LPCTSTR pszKey , REGSAM sam = KEY_READ);
bool Create(HKEY hkRoot , LPCTSTR pszKey);
operator HKEY();
private:
HKEY m_hKey;
int m_Index;
LPBYTE m_lpbValue;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?