regkey.h

来自「自己写的加密 Asp源码的工具」· C头文件 代码 · 共 46 行

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