Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windowing
Windows
Windows Reference
Functions
 EnumWindowsProc Function
EnumWindowsProc Function

The EnumWindowsProc function is an application-defined callback function used with the EnumWindows or EnumDesktopWindows function. It receives top-level window handles. The WNDENUMPROC type defines a pointer to this callback function. EnumWindowsProc is a placeholder for the application-defined function name.

Syntax

BOOL CALLBACK EnumWindowsProc(      
    HWND hwnd,     LPARAM lParam );

Parameters

hwnd
[in] Handle to a top-level window.
lParam
[in] Specifies the application-defined value given in EnumWindows or EnumDesktopWindows.

Return Value

To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.


Remarks

An application must register this callback function by passing its address to EnumWindows or EnumDesktopWindows.

Function Information

HeaderDeclared in Winuser.h, include Windows.h
Import libraryNone
Minimum operating systems Windows 95, Windows NT 3.1

See Also

Windows Overview, EnumWindows, EnumDesktopWindows
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content      
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker