RegistryHelperOpenKey Method
Tries to open registry key. If the key cannot be found, pbExists receives false.
Namespace: MFiles.VAF.CommonAssembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
public static RegKey OpenKey(
UIntPtr hkey,
RegistryHelperRegistryAccessFlags accessFlags,
string key,
RegistryHelperRegSAM samDesired
)
- 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).
- samDesired RegistryHelperRegSAM
- Security access mask (e.g. KEY_READ or KEY_WRITE).
RegKey