>But Viv, I think that only answers part of Kevin's question. What do you do with it after that? IOW, you have this code:
>
>
> 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?
>
>~~Bonnie
Bonnie,
It answers the question - there was only one statement missing to make it clear
Console.WriteLine("{0}", kind);
RegistryValueKind is an enum
see (at the bottom the enum and an example)
http://msdn.microsoft.com/en-us/library/microsoft.win32.registryvaluekind.aspx
Gregory