UtilUIAutomationWaitForChildWindow(IntPtr, String, String, TimeSpan) Method

Waits the specified amount of time for a child window to be shown in the screen, whose class name and window title matches the specified parameters.

Definition

Namespace: DevCase.Core.Diagnostics.Processes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IntPtr WaitForChildWindow(
	IntPtr parentWindow,
	string className,
	string title,
	TimeSpan timeout
)

Parameters

parentWindow  IntPtr
A handle to the parent window.
className  String
The window class name.
title  String
The window title. This value can be String.
timeout  TimeSpan
The timeout interval, in milliseconds.

Return Value

IntPtr
A handle to the child window whose class name and window name matches the specified parameters.

Returns Zero if the window is not found between the specified timeout interval.

See Also