OpusRegSetValueW(
     OPUSREGKEY:phKey,
     LPCWSTR:lpValueName,
     DWORD:dwType,
     LPCBYTE:lpData,
     DWORD:cbData
)
→ 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 set, or NULL to set the default value.

dwType

[in] The type of data to store in this value. See the documentation for the Windows API RegQueryValueEx function for more information about registry data types.

lpData

[in] Pointer to a the data to store in this value. This value can be NULL if you just wish to set a value without attaching data to it.

cbData

[in] If lpData is non-NULL, this must specify the size of the data to store. If lpData is NULL this value is ignored.

Return value

Returns ERROR_SUCCESS if successful or an error code on failure.

Description

The OpusRegSetValueW function is used to set a value in an open registry key.