#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);
};
|