Group: Registry - Library: advapi32
Class library providing access to the System Registry
LONG RegSetValueEx(
HKEY hKey,
LPCTSTR lpValueName,
DWORD Reserved,
DWORD dwType,
const BYTE* lpData,
DWORD cbData
);
DECLARE INTEGER RegSetValueEx IN advapi32;
INTEGER hKey,;
STRING lpValueName,;
INTEGER Reserved,;
INTEGER dwType,;
STRING @ lpData,;
INTEGER cbData
hKey [in] Handle to an open key.
lpValueName [in] Pointer to a string containing the name of the value to set.
Reserved Reserved; must be zero.
dwType [in] Type of data pointed to by the lpData parameter.
lpData [in] Pointer to a buffer containing the data to be stored with the specified value name.
cbData [in] Size of the information pointed to by the lpData parameter, in bytes.
If the function succeeds, the return value is ERROR_SUCCESS (0).
See also RegCreateKeyEx, RegFlushKey, RegOpenKeyEx, RegQueryValueEx.