Kernel32ClosePrivateNamespace Method

Closes an open namespace handle.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool ClosePrivateNamespace(
	IntPtr handle,
	uint flags
)

Parameters

handle  IntPtr
The namespace handle. This handle is created by CreatePrivateNamespace(SecurityAttributes, IntPtr, String) or OpenPrivateNamespace(IntPtr, String).
flags  UInt32
If this parameter is PRIVATE_NAMESPACE_FLAG_DESTROY (0x00000001), the namespace is destroyed.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

To get extended error information, call GetLastWin32Error.

Remarks

See Also