Click or drag to resize

Advapi32FuncRegCreateKeyEx Method

Creates or opens the specified registry key.

Namespace: Altaxo.UnmanagedApi.Advapi32
Assembly: AltaxoDom (in AltaxoDom.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static int RegCreateKeyEx(
	SafeRegistryHandle hKey,
	string lpSubKey,
	int Reserved,
	string lpClass,
	RegOption dwOptions,
	RegSAM samDesired,
	IntPtr lpSecurityAttributes,
	out SafeRegistryHandle phkResult,
	out RegResult lpdwDisposition
)

Parameters

hKey  SafeRegistryHandle
A handle to an open registry key.
lpSubKey  String
The name of the subkey to create or open.
Reserved  Int32
Reserved. Must be zero.
lpClass  String
The class of the key.
dwOptions  RegOption
The registry key options.
samDesired  RegSAM
The requested security access mask.
lpSecurityAttributes  IntPtr
A pointer to the security attributes for the key, or Zero.
phkResult  SafeRegistryHandle
When this method returns, contains the handle to the opened or created key.
lpdwDisposition  RegResult
When this method returns, contains information about whether the key was created or opened.

Return Value

Int32
The Win32 status code returned by the registry operation.
See Also