函数参考


_WinAPI_EnumDesktops

Enumerates all desktops associated with the specified window station of the calling process.

#Include <WinAPIEx.au3>
_WinAPI_EnumDesktops ( $hStation )

参数

$hStation Handle to the window station whose desktops are to be enumerated. This handle must have the
$WINSTA_ENUMDESKTOPS access right.

返回值

Success The array of the desktop names. The zeroth array element contains the number of desktop.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

The _WinAPI_EnumDesktops() enumerates only those desktops for which the calling process has the
$DESKTOP_ENUMERATE access right.

相关

详情参考

在MSDN中搜索


示例/演示


#Include <Array.au3>
#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $Data = _WinAPI_EnumDesktops(_WinAPI_GetProcessWindowStation())

_ArrayDisplay($Data, '_WinAPI_EnumDesktops')