~~Title: OpusRegSetValueW~~ OpusRegSetValueW && 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 set, or **NULL** to set the default value. && dwType && DWORD && [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 && LPCBYTE && [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 && DWORD && [in] If //lpData// is non-**NULL**, this must specify the size of the data to store. If //lpData// is **NULL** this value is ignored. The **OpusRegSetValueW** function is used to set a value in an open registry key.