网站首页  词典首页

请输入您要查询的函数:

 

术语 getprocesswindowstation
释义 GetProcessWindowStation
语法:
C++
HWINSTA WINAPI GetProcessWindowStation(void);
GetProcessWindowStation功能
检索的句柄调用进程的当前窗口站。
参数
这个函数没有参数。
返回值
如果函数成功,返回值是一个句柄窗口站。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
该系统与相关联的过程时,创建一个过程窗口站。一个进程可以使用SetProcessWindowStation函数改变窗口站。
调用进程可以使用返回的处理向GetUserObjectInformation,GetUserObjectSecurity,SetUserObjectInformation,并SetUserObjectSecurity函数调用。
不要关闭处理这个函数返回。
一个服务应用程序创建一个相关的窗口站和桌面,因此没有必要调用用户或GDI函数连接到一个服务窗口站和桌面。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
GetThreadDesktop
GetUserObjectInformation
GetUserObjectSecurity
SetProcessWindowStation
SetUserObjectInformation
SetUserObjectSecurity
窗口站和桌面功能
窗口站
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetProcessWindowStation Function
Retrieves a handle to the current window station for the calling process.
Syntax
C++
HWINSTA WINAPI GetProcessWindowStation(void);
Parameters
This function has no parameters.
Return Value
If the function succeeds, the return value is a handle to the window station.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The system associates a window station with a process when the process is created. A process can use the SetProcessWindowStation function to change its window station.
The calling process can use the returned handle in calls to the GetUserObjectInformation , GetUserObjectSecurity , SetUserObjectInformation , and SetUserObjectSecurity functions.
Do not close the handle returned by this function.
A service application is created with an associated window station and desktop, so there is no need to call a USER or GDI function to connect the service to a window station and desktop.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
GetThreadDesktop
GetUserObjectInformation
GetUserObjectSecurity
SetProcessWindowStation
SetUserObjectInformation
SetUserObjectSecurity
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/ms683225(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:31