Share via


Win32HelperMethods.FindTopWindowViaEnumWindows Method

Definition

Retrieves the handle of the top-level matching window via EnumWindows.

public:
 static IntPtr FindTopWindowViaEnumWindows(int processId, int threadId, System::String ^ captionText, Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::FindWindowMatchType captionMatchType, System::String ^ classText, Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::FindWindowMatchType classMatchType, int matchCount, bool ignoreProcThread);
public static IntPtr FindTopWindowViaEnumWindows (int processId, int threadId, string captionText, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType captionMatchType, string classText, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType classMatchType, int matchCount, bool ignoreProcThread);
static member FindTopWindowViaEnumWindows : int * int * string * Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType * string * Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType * int * bool -> nativeint
Public Shared Function FindTopWindowViaEnumWindows (processId As Integer, threadId As Integer, captionText As String, captionMatchType As FindWindowMatchType, classText As String, classMatchType As FindWindowMatchType, matchCount As Integer, ignoreProcThread As Boolean) As IntPtr

Parameters

processId
Int32

Specifies the parent window.

threadId
Int32

Specifies the thread ID.

captionText
String

Specifies the caption.

captionMatchType
FindWindowMatchType

Specifies the caption match type.

classText
String

Specifies the class text.

classMatchType
FindWindowMatchType

Specifies the match type.

matchCount
Int32

Specifies the total number of matches.

ignoreProcThread
Boolean

True to ignore processor thread, otherwise false.

Returns

IntPtr

nativeint

Applies to