Results 1 to 5 of 5

Thread: Registry Questions

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registry Questions

    Moved

  3. #3
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    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 )
    Last edited by schoolbusdriver; Mar 22nd, 2007 at 02:40 PM. Reason: Security issues...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    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

  5. #5
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width