⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reg.h

📁 wince 系统时间、音量及背光、触摸屏校正以及进程查看大集合r
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -