Read binary value from registry???

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
actually i figured it out, i had to use stdregprov, but what i need now i to
convert a binary value into a date?
 
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
 
Back
Top