RegistryHelperReadRegValue(UIntPtr, RegistryHelperRegistryAccessFlags, String, String, RegistryHelperRegSAM) 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,
	RegistryHelperRegSAM samDesired
)

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.
samDesired  RegistryHelperRegSAM
Security access mask (e.g. KEY_READ or KEY_WRITE).

Return Value

RegValue
RegValue

See Also