Click or drag to resize

RegistryHelperCreateKey Method

Creates a registry key.

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public static RegKey CreateKey(
	UIntPtr hkey,
	RegistryHelperRegistryAccessFlags accessFlags,
	string key,
	RegistryHelperRegSAM samDesired
)

Parameters

hkey
Type: SystemUIntPtr
The predefined or opened registry key (e.g. HKEY_LOCAL_MACHINE).
accessFlags
Type: MFiles.VAF.CommonRegistryHelperRegistryAccessFlags
Options for accessing the registry, see enumRegistryAccessFlags.
key
Type: SystemString
Key name (e.g. SOFTWARE\Microsoft\Windows).
samDesired
Type: MFiles.VAF.CommonRegistryHelperRegSAM
Security access mask (e.g. KEY_READ or KEY_WRITE).

Return Value

Type: RegKey
RegKey
See Also