REGSETDWORD

Top  Previous  Next

Syntax

error = REGSETDWORD(string key, pointer ValueName, Value as UINT)

Description

Sets a registry dword value.

Parameters

key - The registry key path.

ValueName - The key to set.
Value - The value to set.

Return value

Returns 0 for no error, or 1 if the value could not be set.

Remarks

Setting ValueName to NULL will set the default value.  Will create the key if it doesn't exist.

Example usage

Result=RegSetDword("HKEY_CURRENT_USER\\Software\\XYZCorp\\File","UseColor",1)