Share via


RegistryTools.TryGetRegistryValueKindFromLocalMachineRoot Method

Definition

Determines the kind of a property in the HKLM root registry.

public bool TryGetRegistryValueKindFromLocalMachineRoot (string regKeyPath, string regKeyName, out Microsoft.Win32.RegistryValueKind kind, bool use64Bit = false);
abstract member TryGetRegistryValueKindFromLocalMachineRoot : string * string * RegistryValueKind * bool -> bool
override this.TryGetRegistryValueKindFromLocalMachineRoot : string * string * RegistryValueKind * bool -> bool
Public Function TryGetRegistryValueKindFromLocalMachineRoot (regKeyPath As String, regKeyName As String, ByRef kind As RegistryValueKind, 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

kind
RegistryValueKind

current value kind

use64Bit
Boolean

if true, it uses the 64 bit registry, otherwise 32 bit is used

Returns

True on success, false on failure

Implements

Applies to