OpusRegQueryValueW(
OPUSREGKEY:phKey,
LPCWSTR:lpValueName,
LPDWORD:lpType,
LPBYTE:lpData,
LPDWORD:lpcbData
)
→ LONG
Arguments
phKey
[in] The parent registry key. This must be a valid key returned by
OpusRegCreateKeyW or
OpusRegOpenKeyW.
lpValueName
[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