Results 1 to 2 of 2

Thread: Wrong write to registry in Windows 7 64-Bit

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    131

    Wrong write to registry in Windows 7 64-Bit

    Ok, so my code is as below.

    vb Code:
    1. Dim RegKey As RegistryKey = Registry.LocalMachine
    2.               RegKey = RegKey.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background", True)
    3.               RegKey.SetValue("OEMBackground", "00000000")
    4.               RegKey.Close()

    If I output the contents of it on a msgbox, things are fine, but when I go to regedit, the change doesn't happen where it should as it actually happens in another registry key located at
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Back ground
    which I guess happens since I am on windows 7 64 bit, but I don't want that to happen as doing that doesn't change anything.

    The key I'm trying to change makes changing the default logon screen possible in Win7, but it's not working like this since the wrong key is being modified.

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Wrong write to registry in Windows 7 64-Bit

    I have no knowledge on the subj, but maybe it depends on if the app is compiled as 32 or 64 bit, searching for "Wow6432Node" found this...

    32-bit and 64-bit Application Data in the Registry

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