Kernel32ClosePrivateNamespace Method
Closes an open namespace handle.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function ClosePrivateNamespace (
handle As IntPtr,
flags As UInteger
) As Boolean
Dim handle As IntPtr
Dim flags As UInteger
Dim returnValue As Boolean
returnValue = Kernel32.ClosePrivateNamespace(handle,
flags)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool ClosePrivateNamespace(
[InAttribute] IntPtr handle,
[InAttribute] unsigned int flags
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member ClosePrivateNamespace :
handle : IntPtr *
flags : uint32 -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.