RegSetValue function advapi32
WIN32_ERROR
RegSetValue(
- HKEY hKey,
- PCWSTR? lpSubKey,
- REG_VALUE_TYPE dwType,
- PCWSTR? lpData,
- int cbData,
Sets the data for the default or unnamed value of a specified registry key.
The data must be a text string.
To learn more, see learn.microsoft.com/windows/win32/api/winreg/nf-winreg-regsetvaluew.
Implementation
@pragma('vm:prefer-inline')
WIN32_ERROR RegSetValue(
HKEY hKey,
PCWSTR? lpSubKey,
REG_VALUE_TYPE dwType,
PCWSTR? lpData,
int cbData,
) => WIN32_ERROR(
_RegSetValue(hKey, lpSubKey ?? nullptr, dwType, lpData ?? nullptr, cbData),
);