Tag: 注册表

Registry.LocalMachine.OpenSubKey()返回null

我从这次访问Windows注册表的尝试中获得了null: using (RegistryKey registry = Registry.LocalMachine.OpenSubKey(keyPath)) keyPath是SOFTWARE\\TestKey 关键是在注册表中,为什么它不在Local Machine配置单元下找到它?