网站首页  词典首页

请输入您要查询的函数:

 

术语 createprivatenamespace
释义 CreatePrivateNamespace
语法:
C++
HANDLE WINAPI CreatePrivateNamespace(
__in_opt LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes,
__in LPVOID lpBoundaryDescriptor,
__in LPCTSTR lpAliasPrefix
);
CreatePrivateNamespace功能
创建一个私人空间。
参数
lpPrivateNamespaceAttributes [中,可选]
一个 SECURITY_ATTRIBUTES结构,指定安全指针属性的命名空间的对象。
lpBoundaryDescriptor [in]
描述符定义的命名空间是如何被孤立。调用者必须在这条边界。该CreateBoundaryDescriptor函数创建一个边界描述。
lpAliasPrefix [in]
为命名空间前缀。要创建此命名空间中的对象,指定为前缀的对象名称\\的ObjectName。
该系统支持具有相同名称的多个私人空间,只要定义不同的界限。
返回值
如果函数成功,它返回的句柄新的命名空间。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
其他应用程序可以访问命名空间使用OpenPrivateNamespace功能。
应用程序创建的命名空间可以使用ClosePrivateNamespace函数关闭句柄命名空间。句柄还关闭了创建进程时终止。空间处理后已关闭,后续调用OpenPrivateNamespace失败,但在空间上的所有对象的操作成功。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesCreatePrivateNamespaceW(Unicode)和CreatePrivateNamespaceA(ANSI)的
参见
ClosePrivateNamespace
Object Namespaces
OpenPrivateNamespace
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==CreatePrivateNamespace Function
Creates a private namespace.
Syntax
C++
HANDLE WINAPI CreatePrivateNamespace(
__in_opt LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes,
__in LPVOID lpBoundaryDescriptor,
__in LPCTSTR lpAliasPrefix
);
Parameters
lpPrivateNamespaceAttributes [in, optional]
A pointer to a SECURITY_ATTRIBUTES structure that specifies the security attributes of the namespace object.
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.
The system supports multiple private namespaces with the same name, as long as they define different boundaries.
Return Value
If the function succeeds, it returns a handle to the new namespace.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
Other applications can access the namespace using the OpenPrivateNamespace function.
The application that created the namespace can use the ClosePrivateNamespace function to close the handle to the namespace. The handle is also closed when the creating process terminates. After the namespace handle is closed, subsequent calls to OpenPrivateNamespace fail, but all operations on objects in the namespace succeed.
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesCreatePrivateNamespaceW (Unicode) and CreatePrivateNamespaceA (ANSI)
See Also
ClosePrivateNamespace
Object Namespaces
OpenPrivateNamespace
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682419(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:17:45