Difference between revisions of "REG SETVALUE()"

From Lianjapedia
Jump to: navigation, search
(Created page with "==Purpose== Function to set the value data of a Windows Registry value ==Syntax== REG_SETVALUE(<cRegRoot>, <cRegValue>, <cRegValueData> [, <cRegValueType>]) ==See Also== A...")
 
 
Line 12: Line 12:
  
 
The value data of the Windows Registry value is returned.
 
The value data of the Windows Registry value is returned.
 +
 +
Note: this function is only available when the process is run as administrator.
  
 
==Example==
 
==Example==

Latest revision as of 04:16, 11 May 2020

Purpose

Function to set the value data of a Windows Registry value

Syntax

REG_SETVALUE(<cRegRoot>, <cRegValue>, <cRegValueData> [, <cRegValueType>])

See Also

ADDBS(), GETENV(), PUTENV(), REG_GETVALUE()

Description

The REG_SETVALUE() function sets the value data of the Windows registry value <cRegValue> in the Registry root <cRegRoot> to <cRegValueData>. The value type can be optionally specified in <cRegValueType>. The default is 'string'.

The value data of the Windows Registry value is returned.

Note: this function is only available when the process is run as administrator.

Example

reg_setvalue("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lianja\Lianja Server\Netserver","DB_AUTHENTICATION_REQUIRED","true","string")