Please help getting correct REG_DWORD value

I cannot seem to get RegistryKey.GetValue to work properly.
It converts some of the hex values to some weird string values.

For example, I am trying to retrieve this REG_DWORD from HKLM:


My code used the RegistryKey object and the GetValue function.

aKeyVal = ORegistry.GetValue(path)

Dim sVal as value = CStr(aKeyVal)

but sVal comes back as -670625524.

Please help to get the correct value.

If I return the Hex value of thr DWORD, it is correct.
But RREGCHG.EXE, something I need to do remote reg edit, does not work with hex value.
And I don't know how to convert hex to long.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!