Share via


RegistryTools.SetRegistryFromLocalMachineRoot Method

Definition

Sets a value in the registry from the HKLM root Registry

public bool SetRegistryFromLocalMachineRoot (string regKeyPath, string regKeyName, object value, bool use64Bit = false);
abstract member SetRegistryFromLocalMachineRoot : string * string * obj * bool -> bool
override this.SetRegistryFromLocalMachineRoot : string * string * obj * bool -> bool
Public Function SetRegistryFromLocalMachineRoot (regKeyPath As String, regKeyName As String, value As Object, Optional use64Bit As Boolean = false) As Boolean

Parameters

regKeyPath
String

Path to the registry key in the format key\subkey\subsubkey

regKeyName
String

Variable name under the key

value
Object

value to set

use64Bit
Boolean

optional, if set to true, it uses the 64 bit registry, otherwise defaults to 32 bit

Returns

true if set or false if error

Implements

Applies to