Gentee Programming Language > Documentation > Libraries Download documentation

str.regset

Write a string as a registry key value. If there is no key, it will be created.
 
uint str.regset(
      uint   root,
      str   subkey,
      str   valname,
      arr   ret of str
)

Parameters

rootA root key.
$HKEY_CLASSES_ROOT
$HKEY_CURRENT_USER
$HKEY_LOCAL_MACHINE
$HKEY_USERS
subkeyA name of the registry key.
valnameThe name of the value being written.
ret of strThe array of strings all the created keys will be written to. It can be 0.

Return value

0no data has been written
1the value of the key was created during the writing process
2data is written into the existing value

See also

    Working with the Registry


 Copyright © 2004-2006 Gentee Inc. All rights reserved.