DWORD _RegSetValue(HKEY hKey, LPSTR lpszSubKey, DWORD fdwType, LPBYTE lpbData, DWORD cbData)
Sets the value for the given registry key.
hKey
Handle of a previously opened key or one of the predefined root keys given in Predefined Keys.
lpszSubKey
Address of a null-terminated string specifying the subkey for which to set the value. Can be NULL.
fdwType
Value data type to set. Must be REG_SZ.
lpbData
Address of a buffer that contains the value data to set.
cbData
Size in bytes of the value data buffer (lpbData). Can be zero, in which case, the value length is automatically calculated.