This function reads a DWORD value in the opened registry key.
ReadDwordValue (ValueName As String, Value As Long) As Long
Parameters
ValueName
[in] Name of the value to read.
Value
[out] Return the DWORD value.
Return Value
0: success
1: value name not accessible
2: value is not of type DWORD