|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
EnumWindows
The EnumWindows function enumerates all top-level windows on the screen by passing the handle
of each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback
function returns FALSE.
BOOL EnumWindows(
WNDENUMPROC lpEnumFunc,
| // pointer to callback function
| LPARAM lParam
| // application-defined value
| );
|
|
Parameters
lpEnumFunc
Points to an application-defined callback function. For more information, see
the EnumWindowsProc callback function.
lParam
Specifies a 32-bit, application-defined value to be passed to the callback
function.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The EnumWindows function does not enumerate child windows.
This function is more reliable than calling the GetWindow function in a loop. An application that calls GetWindow to perform this task risks being caught in an infinite loop or referencing a
handle to a window that has been destroyed.
See Also
EnumChildWindows, EnumWindowsProc, GetWindow
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|