How to determine the value of "(default)" key

I want to know how to get the default value for a key using C ++. I have already tried sending NULL or an empty string in a key parameter in the RegQueryValueEx () function.

I tried to check another key, and I understood. just can't get the default value. function returns "" instead of value.

Thanks for any help Ben

+3
source share
1 answer

What do you mean by "key parameter"? You must pass NULLor ""as a parameter lpValueName. If this does not work for you, then this is a mistake in your code. Submit your code and maybe we can provide additional assistance.

0
source

All Articles