Hello,
I'm not very familiar in c++....
I have pb trying to load a .reg file in the registry.
I'm working under XP but the pb should work on NT....

I've used the fonction RegLoadKey :

<code>
char * fileName = "C:\\myRegFile.reg";
HKEY hKey;

error_succes = RegLoadKey(HKEY_LOCAL_MACHINE, "SOFTWARE", fileName);
if(error_succes == ERROR_SUCCESS) {
AfxMessageBox("File imported", MB_YESNO);
} else {
AfxMessageBox("Error during the import...", MB_YESNO);
}
</code>

I get an error code 1314 (A required privilege is not held by the client), how can i set the right priviledge to run my program ?

thanks.