网站首页  词典首页

请输入您要查询的函数:

 

术语 createwindowstation
释义 CreateWindowStation
语法:
C++
HWINSTA WINAPI CreateWindowStation(
__in_opt LPCTSTR lpwinsta,
DWORD dwFlags,
__in ACCESS_MASK dwDesiredAccess,
__in_opt LPSECURITY_ATTRIBUTES lpsa
);
CreateWindowStation功能
创建与调用过程窗口站对象,联营它,并将其分配给本届会议。
参数
lpwinsta [中,可选]
窗口的站名被创建。窗口站名是区分大小写,且不能包含反斜杠字符(\\)。 Administrators组的成员才允许指定一个名称。如果lpwinsta为NULL或空字符串,系统构成了调用进程的一个窗口,站名使用登录会话标识符。要获得此名称,调用GetUserObjectInformation功能。
dwFlags
如果该参数CWF_CREATE_ONLY和窗口站已经存在,调用失败。如果此标志没有被指定的窗口站已经存在,函数成功,并返回一个新的句柄现有的窗口站。
Windows XP/2000操作系统:此参数是保留,必须为零。
dwDesiredAccess [in]
的访问返回的句柄类型的窗口站。此外,您可以指定任何标准访问权限,如次数READ_CONTROL或WRITE_DAC,以及对窗口站结合特定的访问权限。有关更多信息,请参阅窗口站的安全和访问权限。
lpsa [中,可选]
一个 SECURITY_ATTRIBUTES结构,决定是否返回的句柄可以被继承的子进程的指针。如果lpsa为NULL,则句柄不能被继承。
结构的lpSecurityDescriptor成员指定一个新的窗口站的安全描述符。如果lpsa为NULL,则窗口站(并在窗口创建的任何桌面)获得一个安全描述符授予GENERIC_ALL访问所有用户。
返回值
如果函数成功,返回值是一个句柄到新创建的窗口站。如果指定的窗口站已经存在,函数成功并返回处理现有的窗口站。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
之后,您对处理完成后,您必须调用CloseWindowStation释放处理。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
Unicode和ANSI namesCreateWindowStationW(Unicode)和CreateWindowStationA(ANSI)的
参见
CloseWindowStation
GetUserObjectInformation
OpenWindowStation
窗口站和桌面功能
窗口站
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==CreateWindowStation Function
Creates a window station object, associates it with the calling process, and assigns it to the current session.
Syntax
C++
HWINSTA WINAPI CreateWindowStation(
__in_opt LPCTSTR lpwinsta,
DWORD dwFlags,
__in ACCESS_MASK dwDesiredAccess,
__in_opt LPSECURITY_ATTRIBUTES lpsa
);
Parameters
lpwinsta [in, optional]
The name of the window station to be created. Window station names are case-insensitive and cannot contain backslash characters (\\). Only members of the Administrators group are allowed to specify a name. If lpwinsta is NULL or an empty string, the system forms a window station name using the logon session identifier for the calling process. To get this name, call the GetUserObjectInformation function.
dwFlags
If this parameter is CWF_CREATE_ONLY and the window station already exists, the call fails. If this flag is not specified and the window station already exists, the function succeeds and returns a new handle to the existing window station.
Windows XP/2000: This parameter is reserved and must be zero.
dwDesiredAccess [in]
The type of access the returned handle has to the window station. In addition, you can specify any of the standard access rights, such as READ_CONTROL or WRITE_DAC, and a combination of the window station-specific access rights. For more information, see Window Station Security and Access Rights .
lpsa [in, optional]
A pointer to a SECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes. If lpsa is NULL, the handle cannot be inherited.
The lpSecurityDescriptor member of the structure specifies a security descriptor for the new window station. If lpsa is NULL, the window station (and any desktops created within the window) gets a security descriptor that grants GENERIC_ALL access to all users.
Return Value
If the function succeeds, the return value is a handle to the newly created window station. If the specified window station already exists, the function succeeds and returns a handle to the existing window station.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
After you are done with the handle, you must call CloseWindowStation to free the handle.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
Unicode and ANSI namesCreateWindowStationW (Unicode) and CreateWindowStationA (ANSI)
See Also
CloseWindowStation
GetUserObjectInformation
OpenWindowStation
Window Station and Desktop Functions
Window Stations
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682496(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 11:24:42