User32EnumWindows Method

Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function.

EnumWindows(DelegatesEnumWindowsProc, IntPtr) continues until the last top-level window is enumerated or the callback function returns .

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool EnumWindows(
	DelegatesEnumWindowsProc lpEnumFunc,
	IntPtr lParam
)

Parameters

lpEnumFunc  DelegatesEnumWindowsProc
A pointer to an application-defined callback function.
lParam  IntPtr
An application-defined value to be passed to the callback function.

Return Value

Boolean
if the function succeeds, otherwise.

If EnumWindowsProc returns , the return value is also .

To get extended error information, call GetLastWin32Error.

Remarks

See Also