Opening 64-bit Registry by a 32-bit program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?TWFyaw==?=

    Opening 64-bit Registry by a 32-bit program

    I cannot Access HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows
    NT\CurrentVersi on (64-bit)
    because of registry virutalization in x64...

    How can I access this using Vb.NET?

    My.Computer.Reg istry.SetValue( "HKEY_LOCAL_MAC HINE\SOFTWARE\M icrosoft\Window s
    NT\CurrentVersi on", "RegisteredOwne r", TxtOwner.Text)

    It will be redirected to Wow6432... Any ideas? Please post the code...

    Thanks in Advance
  • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

    #2
    RE: Opening 64-bit Registry by a 32-bit program

    I don't think you can (nor should need to) unless you use the 64 bit version
    of .Net.

    "Mark" wrote:
    I cannot Access HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows
    NT\CurrentVersi on (64-bit)
    because of registry virutalization in x64...
    >
    How can I access this using Vb.NET?
    >
    My.Computer.Reg istry.SetValue( "HKEY_LOCAL_MAC HINE\SOFTWARE\M icrosoft\Window s
    NT\CurrentVersi on", "RegisteredOwne r", TxtOwner.Text)
    >
    It will be redirected to Wow6432... Any ideas? Please post the code...
    >
    Thanks in Advance

    Comment

    • Phill W.

      #3
      Re: Opening 64-bit Registry by a 32-bit program

      Mark wrote:
      I cannot Access HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows
      NT\CurrentVersi on (64-bit)
      because of registry virutalization in x64...
      How can I access this using Vb.NET?
      Build your application to target the the "x64" architecture.
      My.Computer.Reg istry.SetValue( "HKEY_LOCAL_MAC HINE\SOFTWARE\M icrosoft\Window s
      NT\CurrentVersi on", "RegisteredOwne r", TxtOwner.Text)
      >
      It will be redirected to Wow6432... Any ideas? Please post the code...
      There is no way for a 32-bit application (and IL-compiled code is still
      linked into a 32-bit process) there is no way around this.

      HTH,
      Phill W.

      Comment

      Working...