RegistryValueKind kind = x.GetValueKind("Update Status"); Object o = x.GetValue("Update Status");Kevin doesn't want to use an Object o, he wanted to be able to cast the object returned from x.GetValue() to the proper type ... which, I'm assuming from your reply, has something to do with the RegistryValueKind kind. But the question is: what do you do with kind?
> RegistryKey rk = Registry.LocalMachine; > RegistryKey x = rk.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0"); > RegistryValueKind kind = x.GetValueKind("Update Status"); > Object o = x.GetValue("Update Status");