I am trying to read a registry key from a Windows server, and I can\'t seem to get it to work either with or without leading slashes. If I try:
lError = Reg
Open the key, not the value:
lError = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Company\\Product", 0, KEY_QUERY_VALUE, &hDomainKey);
and then read the value using RegQueryValueEx() (or RegGetValue()).