Write the registry value without redirect in Wow6432Node

前提是你 提交于 2019-12-01 18:29:28

You need to open the key using RegistryView.Registry64. You specify this in the OpenBaseKey method so you'll need to rejig your code a little.

RegistryView is available only on .NET 4. You might want to consider allowing your program to run as a 64-bit process so no redirection takes place. VS2010 has new behavior, it forces apps to run in 32-bit mode on new projects. Project + Properties, Build tab, change Platform target to AnyCPU.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!