level 6
499470593
楼主
RT,其他程序修改注册表都可以,我的程序却不行,虽然之前是可以的?
很简单的代码:
Dim OEMBackground As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\Background", True)
OEMBackground.SetValue("OEMBackground", 1, RegistryValueKind.DWord)
或者
Dim regname As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\microsoft\\windows\\currentversion\\run", True)
regname.SetValue("Win7LogUIChanger", """", "C:\Program Files\Running Cats\AutoLogUIChanger\LogUIChanger.exe""")
后者虽然注册表里没显示,但是360中却显示添加了开机项目的
PS,之前同样的代码就可以执行,是不是系统哪里出问题了?
2014年02月03日 18点02分
1
很简单的代码:
Dim OEMBackground As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\Background", True)
OEMBackground.SetValue("OEMBackground", 1, RegistryValueKind.DWord)
或者
Dim regname As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\microsoft\\windows\\currentversion\\run", True)
regname.SetValue("Win7LogUIChanger", """", "C:\Program Files\Running Cats\AutoLogUIChanger\LogUIChanger.exe""")
后者虽然注册表里没显示,但是360中却显示添加了开机项目的
PS,之前同样的代码就可以执行,是不是系统哪里出问题了?