Stores all desktops associated with the specified window station of the calling process into an array.

ADesktops(cArrayName [, nHWINSTA])

Parameters

cArrayName
ColumnContent
1Name of the desktop
nHWINSTA (optional)

default = the windowstation returned from GetProcessWindowStation.

A HWINSTA api handle.

Return Value

The number of desktops.

See Also

Reference

ADesktopArea
ADisplayDevices
AResolutions
AWindowStations
ExpandEnvironmentStrings
GetLocaleInfoEx
GetSystemDirectory
GetWindowsDirectory
OsEx

Used WinApi functions

EnumDesktops
GetProcessWindowStation