RegistryHelperReadRegValue(UIntPtr, RegistryHelperRegistryAccessFlags, String, String) Method

Reads RegValue from registry. If the key or value is missing, tells it.

Definition

Namespace: MFiles.VAF.Common
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public static RegValue ReadRegValue(
	UIntPtr hkey,
	RegistryHelperRegistryAccessFlags accessFlags,
	string key,
	string valueName
)

Parameters

hkey  UIntPtr
The predefined or opened registry key (e.g. HKEY_LOCAL_MACHINE).
accessFlags  RegistryHelperRegistryAccessFlags
Options for accessing the registry, see enumRegistryAccessFlags.
key  String
Key name (e.g. SOFTWARE\Microsoft\Windows).
valueName  String
The name of the value to fetch. If NULL, reads the default value.

Return Value

RegValue
RegValue

See Also