OpenPrivateNamespace function

Expand
This topic has not yet been rated - Rate this topic

OpenPrivateNamespace function

Applies to: desktop apps only

Opens a private namespace.

Syntax

HANDLE WINAPI OpenPrivateNamespace(
  __in  LPVOID lpBoundaryDescriptor,
  __in  LPCTSTR lpAliasPrefix
);

Parameters

lpBoundaryDescriptor [in]

A descriptor that defines how the namespace is to be isolated. The caller must be within this boundary. The CreateBoundaryDescriptor function creates a boundary descriptor.

lpAliasPrefix [in]

The prefix for the namespace. To create an object in this namespace, specify the object name as prefix\objectname.

Return value

The function returns the handle to the existing namespace.

Remarks

To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

Unicode and ANSI names

OpenPrivateNamespaceW (Unicode) and OpenPrivateNamespaceA (ANSI)

See also

ClosePrivateNamespace
CreateBoundaryDescriptor
CreatePrivateNamespace
Object Namespaces

 

 

Send comments about this topic to Microsoft

Build date: 5/5/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD