Sets a Windows Registry key's string value.
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. |