Writes a value to the registry.
1 if the value was written successfully, 0 if there was an error.
The Value parameter must contain the new value to be written. The value will be applied to the given Key and ValueName.
If the service returns 0, then an error occurred. In this event, the Error parameter can be one of the following messages:
|"Failed to create key"||The key could not be opened or creating.|
|"Failed to write value"||The value could not be written to ValueName.|
The WRITE service writes a value to the registry. If the Key you supply doesn't already exist, it is created. Likewise, if the ValueName you supply doesn't exist, it is created. To write to a key's default value, set the ValueName to "". To write a specific value within a key, supply a new or existing ValueName. Assuming both the key and value name created successfully, the value will be set to the Value parameter. SRP_Registry will return 1 if the new value was successfully written or 0 if there was an error.