~~Title: OpusRegQueryValueW~~ OpusRegQueryValueW && LONG && Returns **ERROR_SUCCESS** if successful or an error code on failure. && phKey && OPUSREGKEY && [in] The parent registry key. This must be a valid key returned by [[opusregcreatekeyw|OpusRegCreateKeyW]] or [[opusregopenkeyw|OpusRegOpenKeyW]]. && lpValueName && LPCWSTR && [in] Name of the value to read, or **NULL** to read the default value. && lpType && LPDWORD && [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 && LPBYTE && [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 && LPDWORD && [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**. The **OpusRegQueryValueW** function is used to read a value from an open registry key.