arvind_cs
asked on
Registry
How can I read Key-value pairs from the registry of a remote computer? I have tried using RegConnectRegistry but the subsequent call to RegQueryValueEx gives 'file not found (error no. 2)' error. How can I solve this problem?
Here's the code that I tried:
l_Ret = RegConnectRegistry(CompNam e, HKEY_LOCAL_MACHINE, &phKey);
LPCTSTR =
lpValueName "SYSTEM\\CurrentControlSet \\Services \\EventLog \\System\\ NtServiceP ack\\Event MessageFil e";
l_Ret = RegQueryValueEx(phKey,lpVa lueName, NULL, NULL,lpData, &dSize);
RegCloseKey(phKey);
Here's the code that I tried:
l_Ret = RegConnectRegistry(CompNam
LPCTSTR =
lpValueName "SYSTEM\\CurrentControlSet
l_Ret = RegQueryValueEx(phKey,lpVa
RegCloseKey(phKey);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.