Stores information about the display devices in the current session into an array.

ADisplayDevices(cArrayName [, cDeviceName])

Parameters

cArrayName

The name of the array as a string into which the function should store the information.

On return the array contains the following values from the DISPLAY_DEVICE structure.
ColumnContentDatatype
1DeviceStringC
2DeviceNameC
3DeviceIDC
4DeviceKeyC
5StateFlagsN
cDeviceName (optional)

default = NULL

A device name. If NULL, function returns information for the display adapter(s) on the machine,.

For more information, see Remarks.

Return Value

The number of display devices.

Remarks

Have a look at the remarks section for the EnumDisplayDevices API on how to retrieve
information for monitors etc ...

See Also

Reference

ADesktopArea
ADesktops
AResolutions
AWindowStations
ExpandEnvironmentStrings
GetLocaleInfoEx
GetSystemDirectory
GetWindowsDirectory
OsEx

Used WinApi functions

EnumDisplayDevices