网站首页  词典首页

请输入您要查询的函数:

 

术语 enumwindowstations
释义 EnumWindowStations
语法:
C++
BOOL WINAPI EnumWindowStations(
__in WINSTAENUMPROC lpEnumFunc,
__in LPARAM lParam
);
EnumWindowStations功能
枚举所有当前会话窗口站。传递函数反过来,每个窗口的站名,一个应用程序定义的回调函数。
参数
lpEnumFunc [in]
对一个应用程序的指针定义EnumWindowStationProc回调函数。
lparam的 [in]
一个中的应用定义的值传递给回调函数。
返回值
如果函数成功,它将返回非零值的回调函数,是指向lpEnumFunc返回。
如果该函数不能执行枚举,返回值是零。调用GetLastError函数获取扩展的错误信息。
如果回调函数失败,返回值是零。回调函数可以调用SetLastError设置调用的错误代码通过调用GetLastError函数。
备注
该EnumWindowStations函数枚举窗口站只有那些在调用进程具有WINSTA_ENUMERATE访问的权利。有关更多信息,请参阅窗口站的安全和访问权限。
EnumWindowStations反复调用,直到最后一个窗口站lpEnumFunc回调函数枚举或回调函数返回FALSE。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
Unicode和ANSI namesEnumWindowStationsW(Unicode)和EnumWindowStationsA(ANSI)的
参见
EnumWindowStationProc
窗口站和桌面功能
窗口站
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==EnumWindowStations Function
Enumerates all window stations in the current session. The function passes the name of each window station, in turn, to an application-defined callback function.
Syntax
C++
BOOL WINAPI EnumWindowStations(
__in WINSTAENUMPROC lpEnumFunc,
__in LPARAM lParam
);
Parameters
lpEnumFunc [in]
A pointer to an application-defined EnumWindowStationProc callback function.
lParam [in]
An application-defined value to be passed to the callback function.
Return Value
If the function succeeds, it returns the nonzero value returned by the callback function that was pointed to by lpEnumFunc.
If the function is unable to perform the enumeration, the return value is zero. Call GetLastError to get extended error information.
If the callback function fails, the return value is zero. The callback function can call SetLastError to set an error code for the caller to retrieve by calling GetLastError.
Remarks
The EnumWindowStations function enumerates only those window stations for which the calling process has the WINSTA_ENUMERATE access right. For more information, see Window Station Security and Access Rights .
EnumWindowStations repeatedly invokes the lpEnumFunc callback function until the last window station is enumerated or the callback function returns FALSE.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
Unicode and ANSI namesEnumWindowStationsW (Unicode) and EnumWindowStationsA (ANSI)
See Also
EnumWindowStationProc
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/ms682644(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:26:16