-
Registry Questions
I have a couple of problems relating to the registry:
This isn't really related to VB but, in regedit, what's the difference between a registry key's default value being blank and "(value not set)"?
Also, what are the possibilities why my program can access nearly all registry keys except for a few but regedit can view those keys fine. I'm reading the files with KEY_READ
-
Re: Registry Questions
-
Re: Registry Questions
"Value not set" means that the default key contains nothing. If it's blank, then it could contain a space, Chr(0), null etc. (Edited out by SBD) Some installers use the default key but fail to clean-up properly. (Edited out by SBD).
Different flags wil cause different behaviours depending on whether you're logged-in as admin, user, power-user etc. You should always use the appropriate (minimum) flag for registry permission. Using a "catch-all" may fail in one of it's options. Try using KEY_QUERY_VALUE. (Also try logging-in as a non-admin and using regedit - see what happens :) )
-
Re: Registry Questions
I'm still kind of confused on the difference between a blank value and "(value not set)". How can I tell if a value is blank or not set? Can I do something like:
If RegistryValueExists(HKEY_LOCAL_MACHINE, ANYKEY, "") = False Then
Msgbox "Value doesn't exist"
Else
Msgbox "Value Exists"
End If
-
Re: Registry Questions
I've edited out parts of my previous post because the information could be used maliciously. Furthermore I believe PUBLIC posting on this topic would be irresponsible because it would be too revealing ;). @abazabam, I've sent you a PM of what this post WOULD have contained. I think this should be kept to PMs.