Stores information about windows into an array.

AWindowsEx(cArrayName, cFlags, nType [, nParam])

Parameters

cFlags (additive)

The position of the character determines the column position in the resulting array

CharInformation
WHWND
CClass
TText
SStyle
EExStyle
HHInstance
PHWND of parent window
DUserdata
IID
RThreadID
OProcessID
VVisible
NIconic
MMaximized
UUnicode
nType

One of the following values.

TypeDescription
AWINDOWS_TOPLEVELReturns top level windows.
AWINDOWS_CHILDReturns child windows of the window passed in nParam.
AWINDOWS_THREADReturns windows owned by the thread passed in nParam.
AWINDOWS_DESKTOPReturns windows contained in the desktop passed in nParam.
nParam (optional)

Depending on the nType parameter this parameter should be on of the following values.

TypeMeaning of this parameter
AWINDOWS_TOPLEVELDon't pass this parameter.
AWINDOWS_CHILDA window handle for which to retrieve the child windows.
AWINDOWS_THREADA thread handle for which to retrieve the owned windows.
AWINDOWS_DESKTOPA desktop handle for which to retrieve the contained windows.

Return Value

The number of windows.

See Also

Reference

AWindowProps
AWindows
CenterWindowEx
GetWindowRectEx
GetWindowTextEx

Used WinApi functions

EnumWindows if nType = AWINDOWS_TOPLEVEL
EnumChildWindows if nType = AWINDOWS_CHILD
EnumThreadWindows if nType = AWINDOWS_THREAD
EnumDesktopWindows if nType = AWINDOWS_DESKTOP
GetClassName
GetWindowText
GetWindowLong
GetParent
GetWindowThreadProcessId
IsWindowVisible
IsIconic
IsZoomed
IsWindowUnicode