Call this method to retrieve the DWORD data for a specified value name.
This method makes use of RegQueryValueEx and confirms that the correct type of data is returned. See RegQueryValueEx for more details.
This method allows the caller to specify any registry location, potentially reading data which cannot be trusted. Also, the RegQueryValueEx function used by this method does not explicitly handle strings which are NULL terminated. Both conditions should be checked for by the calling code.