IRegistryTools4.SetRegistryFromCurrentUserRoot Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a value in the registry from the HKCU root Registry.
public bool SetRegistryFromCurrentUserRoot (string regKeyPath, string regKeyName, object value, Microsoft.Win32.RegistryValueKind valueKind);
abstract member SetRegistryFromCurrentUserRoot : string * string * obj * Microsoft.Win32.RegistryValueKind -> bool
Public Function SetRegistryFromCurrentUserRoot (regKeyPath As String, regKeyName As String, value As Object, valueKind As RegistryValueKind) 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
- valueKind
- RegistryValueKind
Supported RegistryValueKind's are bool, int, long/ulong which will convert to DWord, DWord, and QWord
Returns
true if set or false if error