网站首页  词典首页

请输入您要查询的函数:

 

术语 enumdesktops
释义 EnumDesktops
语法:
C++
BOOL WINAPI EnumDesktops(
__in_opt HWINSTA hwinsta,
__in DESKTOPENUMPROC lpEnumFunc,
__in LPARAM lParam
);
EnumDesktops功能
枚举所有台式机是与调用过程中指定的窗口站。传递函数依次每个桌面的名字,一个应用程序定义的回调函数。
参数
hwinsta [中,可选]
句柄的窗口站的桌面要枚举。这种处理是由CreateWindowStation,GetProcessWindowStation,或OpenWindowStation函数返回,并必须有WINSTA_ENUMDESKTOPS访问权限。有关更多信息,请参阅窗口站的安全和访问权限。
如果该参数为NULL,当前窗口站使用。
lpEnumFunc [in]
对一个应用程序的指针定义EnumDesktopProc回调函数。
lparam的 [in]
一个中的应用定义的值传递给回调函数。
返回值
如果函数成功,它将返回非零值的回调函数,是指向lpEnumFunc返回。
如果该函数不能执行枚举,返回值是零。调用GetLastError函数获取扩展的错误信息。
如果回调函数失败,返回值是零。回调函数可以调用SetLastError设置调用的错误代码通过调用GetLastError函数。
备注
枚举函数的EnumDesktops只有台式机的调用进程具有DESKTOP_ENUMERATE访问的权利。有关更多信息,请参见桌面安全和访问权限。
该EnumDesktops功能反复调用,直到最后桌面lpEnumFunc回调函数枚举或回调函数返回FALSE。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
Unicode和ANSI namesEnumDesktopsW(Unicode)和EnumDesktopsA(ANSI)的
参见
CreateWindowStation
台式机
EnumDesktopProc
GetProcessWindowStation
OpenWindowStation
窗口站和桌面功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==EnumDesktops Function
Enumerates all desktops associated with the specified window station of the calling process. The function passes the name of each desktop, in turn, to an application-defined callback function.
Syntax
C++
BOOL WINAPI EnumDesktops(
__in_opt HWINSTA hwinsta,
__in DESKTOPENUMPROC lpEnumFunc,
__in LPARAM lParam
);
Parameters
hwinsta [in, optional]
A handle to the window station whose desktops are to be enumerated. This handle is returned by the CreateWindowStation , GetProcessWindowStation , or OpenWindowStation function, and must have the WINSTA_ENUMDESKTOPS access right. For more information, see Window Station Security and Access Rights .
If this parameter is NULL, the current window station is used.
lpEnumFunc [in]
A pointer to an application-defined EnumDesktopProc 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 EnumDesktops function enumerates only those desktops for which the calling process has the DESKTOP_ENUMERATE access right. For more information, see Desktop Security and Access Rights .
The EnumDesktops function repeatedly invokes the lpEnumFunc callback function until the last desktop 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 namesEnumDesktopsW (Unicode) and EnumDesktopsA (ANSI)
See Also
CreateWindowStation
Desktops
EnumDesktopProc
GetProcessWindowStation
OpenWindowStation
Window Station and Desktop Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682614(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:31:21