CPP_Beginner
May 25th, 2006, 04:39 PM
Hi, I need to load REG files into the Windows Registry on the remote Machine. I found RegLoadKey() in MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry_functions.asp), but I donīt know, how to use it. Could someone to give me a simple Example, please? Or is another way to do it? Thanks to everyone.
I tried:
HKEY hKey;
if (RegLoadKey(hKey, "Software\\", "D:\\test.reg") == ERROR_SUCCESS)
{
ShowMessage("OK");
}
I tried:
HKEY hKey;
if (RegLoadKey(hKey, "Software\\", "D:\\test.reg") == ERROR_SUCCESS)
{
ShowMessage("OK");
}