Win32HelperMethods.FindTopWindowViaEnumWindows Method
Retrieves the handle of the top-level matching window via EnumWindows.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Usage
'Usage
Dim processId As Integer
Dim threadId As Integer
Dim captionText As String
Dim captionMatchType As FindWindowMatchType
Dim classText As String
Dim classMatchType As FindWindowMatchType
Dim matchCount As Integer
Dim ignoreProcThread As Boolean
Dim returnValue As IntPtr
returnValue = Win32HelperMethods.FindTopWindowViaEnumWindows(processId, threadId, captionText, captionMatchType, classText, classMatchType, matchCount, ignoreProcThread)
Syntax
'Declaration
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
public static IntPtr FindTopWindowViaEnumWindows (
int processId,
int threadId,
string captionText,
FindWindowMatchType captionMatchType,
string classText,
FindWindowMatchType classMatchType,
int matchCount,
bool ignoreProcThread
)
public:
static IntPtr FindTopWindowViaEnumWindows (
int processId,
int threadId,
String^ captionText,
FindWindowMatchType captionMatchType,
String^ classText,
FindWindowMatchType classMatchType,
int matchCount,
bool ignoreProcThread
)
public static IntPtr FindTopWindowViaEnumWindows (
int processId,
int threadId,
String captionText,
FindWindowMatchType captionMatchType,
String classText,
FindWindowMatchType classMatchType,
int matchCount,
boolean ignoreProcThread
)
public static function FindTopWindowViaEnumWindows (
processId : int,
threadId : int,
captionText : String,
captionMatchType : FindWindowMatchType,
classText : String,
classMatchType : FindWindowMatchType,
matchCount : int,
ignoreProcThread : boolean
) : IntPtr
Parameters
- processId
Specifies the parent window.
- threadId
Specifies the thread ID.
- captionText
Specifies the caption.
- captionMatchType
Specifies the caption match type.
- classText
Specifies the class text.
- classMatchType
Specifies the match type.
- matchCount
Specifies the total number of matches.
- ignoreProcThread
True to ignore processor thread, otherwise false.
Return Value
Type: IntPtr
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
Win32HelperMethods Class
Win32HelperMethods Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.