User32EnumChildWindows(SafeHandle, DelegatesEnumChildWindowsProc, IntPtr) Method
Enumerates the child windows that belong to the specified parent window by passing the handle to each child window,
in turn, to an application-defined callback function.
EnumChildWindows(IntPtr, DelegatesEnumChildWindowsProc, IntPtr) continues until the last child 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 EnumChildWindows(
SafeHandle hWndParent,
DelegatesEnumChildWindowsProc enumFunc,
IntPtr lParam
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function EnumChildWindows (
hWndParent As SafeHandle,
enumFunc As DelegatesEnumChildWindowsProc,
lParam As IntPtr
) As Boolean
Dim hWndParent As SafeHandle
Dim enumFunc As DelegatesEnumChildWindowsProc
Dim lParam As IntPtr
Dim returnValue As Boolean
returnValue = User32.EnumChildWindows(hWndParent,
enumFunc, lParam)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool EnumChildWindows(
SafeHandle^ hWndParent,
DelegatesEnumChildWindowsProc^ enumFunc,
IntPtr lParam
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member EnumChildWindows :
hWndParent : SafeHandle *
enumFunc : DelegatesEnumChildWindowsProc *
lParam : IntPtr -> bool
No code example is currently available or this language may not be supported.
- hWndParent SafeHandle
-
A handle to the parent window whose child windows are to be enumerated.
If this parameter is Zero, this function is equivalent to calling
EnumWindows(DelegatesEnumWindowsProc, IntPtr) function.
- enumFunc DelegatesEnumChildWindowsProc
-
A pointer to an application-defined callback function.
- lParam IntPtr
-
An application-defined value to be passed to the callback function.
Boolean
The return value is not used.