buf.regset
Writing a value. Write the data of an buf object as registry key value. If there is no key, it will be created.
method uint buf.regset (
uint root,
str subkey,
str valname,
uint regtype,
arrstr ret
)
uint root,
str subkey,
str valname,
uint regtype,
arrstr ret
)
Parameters
| root | A root key. 
  | ||||||||||||
| subkey | A name of the registry key. | ||||||||||||
| valname | The name of the value being written. | ||||||||||||
| regtype | Value type. 
  | ||||||||||||
| ret | The array of strings all the created keys will be written to. It can be 0. | 
Return value
| 0 | No data has been written. | 
| 1 | The value of the key was created during the writing process. | 
| 2 | Data is written into the existing value. | 
Related links | Source |