READING hex value in registry

  • Thread starter Thread starter James
  • Start date Start date
J

James

i've a DWORD hex value in the registry key.

i can read the key and write to event log, however it writes in "decimal"
format.

how can i ensure it is read as per hex format ?
 
James said:
i've a DWORD hex value in the registry key.

A DWORD has a value, but it does not have a format, so it's neither Hex nor
decimal. Strings do have a format.
i can read the key and write to event log, however it writes in
"decimal" format.

value.ToString("X8")

converts to a string in hex format.
how can i ensure it is read as per hex format ?

The value is read. The value has no format.


Armin
 
Back
Top