SK_RegistryValueSet Function

Sets a Windows Registry key's string value.

Syntax

C/C++
SK_ResultCode SK_RegistryValueSet(int flags, const char *path, const char *value);
Visual Basic
Declare Function SK_RegistryValueSet(ByVal flags As Long, ByVal path As String, ByVal value As String) As Long

Arguments

flags
Any flags passed into this function-call.
path
The full path to the Windows Registry key.
value
The new value to store in the Windows Registry key.

Returns

All possible return values are included in the SK_ResultCode enumeration. Return codes to expect include:

Result Code Description
SK_ResultCode.SK_ERROR_NONE No error.
SK_ResultCode.SK_ERROR_INVALID_DATA The presence of invalid data has been detected.
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS Some or all of the arguments are invalid.
SK_ResultCode.SK_ERROR_COULD_NOT_OPEN_REGISTRY_KEY An attempt to open a registry key failed.
SK_ResultCode.SK_ERROR_COULD_NOT_WRITE_REGISTRY_KEY An attempt to write a registry key value failed.
SK_ResultCode.SK_ERROR_UNSUPPORTED_OS The current operating system is not supported by this feature or function.