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
.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function EnumWindows (
lpEnumFunc As DelegatesEnumWindowsProc,
lParam As IntPtr
) As Boolean
Dim lpEnumFunc As DelegatesEnumWindowsProc
Dim lParam As IntPtr
Dim returnValue As Boolean
returnValue = User32.EnumWindows(lpEnumFunc,
lParam)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool EnumWindows(
DelegatesEnumWindowsProc^ lpEnumFunc,
IntPtr lParam
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member EnumWindows :
lpEnumFunc : DelegatesEnumWindowsProc *
lParam : IntPtr -> bool
No code example is currently available or this language may not be supported.
- lpEnumFunc DelegatesEnumWindowsProc
-
A pointer to an application-defined callback function.
- lParam IntPtr
-
An application-defined value to be passed to the callback function.
Boolean if the function succeeds,
otherwise.
If
EnumWindowsProc returns
, the return value is also
.
To get extended error information, call
GetLastWin32Error.