Gentee Programming Language > Documentation > Libraries Download documentation

buf.regset

Write the data of an buf object as registry key value. If there is no key, it will be created.
 
uint buf.regset(
      uint   root,
      str   subkey,
      str   valname,
      uint   regttype,
      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.
regttypeValue type.
$REG_SZstring
$REG_EXPAND_SZstring with environment variables
$REG_BINARYbinary data
$REG_DWORDnumber
$REG_MULTI_SZstring sequence
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.