RegWriteValue(Path,Data,DataType)
Writes a value to the registry.
Parameters:
Path | The path of the value to be written |
Data | The data that should be written |
DataType | The type of the data |
Remarks:
If path does not exist, it is created. Existing values are overwritten without warning. If the user, that uses the plug-in, hasn't the permission to write the value, an error occurs. See Registry functions for more information about the different parameters.
To write a binary value, you have to write the same data as shown in REGEDIT.EXE. For example, to write the binary data "07 80 90" (displayed in REGEDIT.EXE) you have to write RegWriteValue(Path,"078090",3).
Example:
Call RegWriteValue("HKCU\Software\TestValue1","Data",1) 'write string
Call RegWriteValue("HKCU\Software\TestValue2",833,2) 'write DWord (numeric)
Call RegWriteValue("HKCU\Software\TestValue3","028055",3) 'write binary value