I want to be able to be able to read and change the value of a key from the registry. I have a fairly good idea of how to change it, but I am having trouble reading the value. I have looked at the msdn, but it has not helped. Here is the code:
I have declared hKey at the beginning of the file. What am I doing wrong?
LONG strc = MAX_PATH;
hi = RegQueryValue(hKey,"Shell",str,&strc);