EnumWindowsProc Callback Function

Public Function EnumWindowsProc (ByVal hwnd As Long, ByVal lParam As Long) As Long
  ' application-defined code goes here
End Function

Description & Usage

EnumWindowsProc is an application-defined callback function used by EnumWindows for each window enumerated. This function should process the window in whatever manner is required. This function does not necessarily have to be named EnumWindowsProc -- that is merely the name given to it in discussions about the API.

Return Value

If the function returns 0, EnumWindows will immediately stop enumerating windows. If the function returns a non-zero value, EnumWindows will continue enumerating windows until it can no longer find any.

Visual Basic-Specific Issues

Like all callback functions, EnumWindowsProc must be declared Public and be defined in a module.

Parameters

hwnd
A handle to the window which EnumWindows has just found.
lParam
Whatever value was specified in the parameter list of EnumWindows.

Used By

EnumWindows

Back to the index.


Last Modified: August 15, 1999
This page is copyright © 1999 Paul Kuliniewicz. Copyright Information

Go to Paul Kuliniewicz's Home Page.
E-mail: rogue953@hotmail.com
This page is at http://skyscraper.fortunecity.com/transmission/45/api/e/enumwindowsproc.html