I'm having a hard time figuring out RegDeleteValue. I have a registry key: HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyApp\MySubKey
I would like to remove certain values from this folder location, while preserving others. So, let's say I have a value whose name is "SQLDataSource" and whose value is "MYSERVER".
The code line
RegDeleteValue (HKEY_LOCAL_MACHINE, "SOFTWARE\MyCompany\MyApp\MySubKey\SQLDataSource"
fails. I've tried several other things, and any doc or examples that I've found are very vague about what the second argument needs to be. For example, is a "registry value" the name or the data?
Can someone enlighten me?
Thanks,
Bob
I would like to remove certain values from this folder location, while preserving others. So, let's say I have a value whose name is "SQLDataSource" and whose value is "MYSERVER".
The code line
RegDeleteValue (HKEY_LOCAL_MACHINE, "SOFTWARE\MyCompany\MyApp\MySubKey\SQLDataSource"
Can someone enlighten me?
Thanks,
Bob