[in] Name of the value to read, or NULL to read the default value.
lpType
[out] Pointer to a variable that receives the type of data stored in this value. See the documentation for the Windows API RegQueryValueEx function for more information about registry data types. lpType can be set to NULL if the data type is not required.
lpData
[out] Pointer to a buffer that receives the data read from the key. The size of the buffer must be given in lpcbData. This value can be set to NULL if the data is not required.
lpcbData
[in,out] If lpData is non-NULL, this must be a pointer to a variable that specifies the size of the buffer pointed to by lpData. If lpData is set to NULL, this value may point to a variable that will receive the size of the data stored in this registry value. If the size of the data is not required this value can be NULL.
Return value
Returns ERROR_SUCCESS if successful or an error code on failure.
Description
The OpusRegQueryValueW function is used to read a value from an open registry key.