ClosePrivateNamespace function (namespaceapi.h)
Closes an open namespace handle.
C++
BOOLEAN ClosePrivateNamespace(
[in] HANDLE Handle,
[in] ULONG Flags
);
[in] Handle
The namespace handle. This handle is created by CreatePrivateNamespace or OpenPrivateNamespace.
[in] Flags
If this parameter is PRIVATE_NAMESPACE_FLAG_DESTROY (0x00000001), the namespace is destroyed.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | namespaceapi.h (include Windows.h on Windows 7, Windows Server 2008 Windows Server 2008 R2) |
Library | Kernel32.lib |
DLL | Kernel32.dll |