更新C++版本
智能大石头 authored at 2023-02-13 00:08:57
891.00 B
LuckyClover
#pragma once
#include "BaseInclude.h"

class CRegistryVisit
{
public:
	CRegistryVisit();
	~CRegistryVisit();
public:
	bool CheckIsInstallNet(CString strCheckVer);
private:
	/// <summary>
	/// ÔÚÖ¸¶¨µÄ¼ÆËã»ú×¢²á±íÄÚ¶ÁÈ¡Ò»¸öDWORDÖµ
	/// </summary>
	/// <param name="hKeyRoot">×¢²á±í¸ùÖµ</param>
	/// <param name="lpPath">×¢²á±í·¾¶</param>
	/// <param name="lpKey">¼üÃû</param>
	/// <param name="dwVal">»ñÈ¡µ½µÄ¼üÖµ</param>
	/// <returns></returns>
	BOOL ReadKeyValue(HKEY hKeyRoot, LPCTSTR lpPath, LPCTSTR lpKey, DWORD& dwVal);
	/// <summary>
	/// ÔÚÖ¸¶¨µÄ¼ÆËã»ú×¢²á±íÄÚ¶ÁÈ¡Ò»¸ö×Ö·û´®(Unicode)
	/// </summary>
	/// <param name="hKeyRoot">×¢²á±í¸ùÖµ</param>
	/// <param name="lpPath">×¢²á±í·¾¶</param>
	/// <param name="lpKey">¼üÃû</param>
	/// <param name="strVal">¼üÖµ</param>
	/// <returns></returns>
	BOOL ReadKeyValue(HKEY hKeyRoot, LPCTSTR lpPath, LPCTSTR lpKey, CString& strVal);	
};