Read binary value from registry???

G

Guest

What is the easiest .net method to read a REG_BINARY value from the registry?
I'm using a ManagementClass from the System.Management namespace and can
retrieve string values using GetMethodParameter("GetStringValue") but can't
find the method for binary, the MSDN documentation is terrible and doesn't
provide a list of possible parameters. any ideas would be appreciated. thanks
 
G

Guest

actually i figured it out, i had to use stdregprov, but what i need now i to
convert a binary value into a date?
 
J

John J. Hughes II

Depends on how the date is stored in the binary format. In the past I saved
it as DateTime.Ticks and then just read it back that way. You could also
serialize it and store it as a byte array.

Regards,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top