Writes a string value to the windows registry.
Number | Type | Compulsory | Default | Description |
---|---|---|---|---|
1 |
string |
Yes |
|
Key path |
2 |
string |
Yes |
|
Value name |
3 |
string |
Yes |
|
Value to be written |
4 |
string |
No |
'HKCU' |
Top level tree |
Name of key. This must be a full path from the top level. E.g. 'Software\ SIMetrix\ Version42\ Options'
Name of value to be read
Value to be written to key
Top level tree. This may be either 'HKEY_CURRENT_USER' or 'HKEY_LOCAL_MACHINE' or their respective abbreviations HKCU and HKLM. Note that you must have administrator rights to write to the HKEY_LOCAL_MACHINE tree.
Return type: string
Returns one of three string values as defined below:
'Ok' | Function executed successfully |
'WriteFailed' | Could not write that value |
'InvalidTreeName' | Arg 4 invalid. |
|