Reference

SHRegWriteUSValueA(3w)

NAME

SHRegWriteUSValueA (SHLWAPI.@)

SYNOPSIS

LONG SHRegWriteUSValueA
(
HUSKEY hUSKey,
LPCSTR pszValue,
DWORD dwType,
LPVOID pvData,
DWORD cbData,
DWORD dwFlags
)

DESCRIPTION

Write a user-specific registry value.

PARAMS

hUSKey [In] Key to write the value to.

pszValue [In] Name of value under hUSKey to write the value as.

dwType [In] Type of the value.

pvData [In] Data to set as the value.

cbData [In] length of pvData.

dwFlags [In] SHREGSET_ flags from "shlwapi.h".

RETURNS

Success: ERROR_SUCCESS.

Failure: ERROR_INVALID_PARAMETER, if any parameter is invalid, otherwise an error code from RegSetValueExA(3w).

NOTES

dwFlags must have at least SHREGSET_FORCE_HKCU or SHREGSET_FORCE_HKLM set.

IMPLEMENTATION

Declared in "shlwapi.h".

Implemented in "dlls/shlwapi/reg.c".

Debug channel "shell".

History