winbase.h (OpenPrivateNamespaceA 函式)

開啟私人命名空間。

語法

HANDLE OpenPrivateNamespaceA(
  [in] LPVOID lpBoundaryDescriptor,
  [in] LPCSTR lpAliasPrefix
);

參數

[in] lpBoundaryDescriptor

描述項,定義如何隔離命名空間。 CreateBoundaryDescriptor 函式會建立界限描述項。

[in] lpAliasPrefix

命名空間的前置詞。 若要在此命名空間中建立物件,請將物件名稱指定為prefix\objectname

傳回值

函式會將控制碼傳回至現有的命名空間。

備註

若要編譯使用此函式的應用程式,請將 _WIN32_WINNT 定義為0x0600或更新版本。

規格需求

   
最低支援的用戶端 Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 winbase.h (包含 Windows.h)
程式庫 Kernel32.lib
DLL Kernel32.dll

另請參閱

ClosePrivateNamespace

CreateBoundaryDescriptor

CreatePrivateNamespace

物件命名空間