Win32HelperMethods.FindTopWindowViaEnumWindows Method (Int32, Int32, String, FindWindowMatchType, String, FindWindowMatchType, Int32, Boolean)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016
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)
Syntax
public static IntPtr FindTopWindowViaEnumWindows(
int processId,
int threadId,
string captionText,
FindWindowMatchType captionMatchType,
string classText,
FindWindowMatchType classMatchType,
int matchCount,
bool ignoreProcThread
)
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
Type: System.Int32Specifies the parent window.
threadId
Type: System.Int32Specifies the thread ID.
captionText
Type: System.StringSpecifies the caption.
captionMatchType
Type: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchTypeSpecifies the caption match type.
classText
Type: System.StringSpecifies the class text.
classMatchType
Type: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchTypeSpecifies the match type.
matchCount
Type: System.Int32Specifies the total number of matches.
ignoreProcThread
Type: System.BooleanTrue to ignore processor thread, otherwise false.
Return Value
Type: System.IntPtr
Type: IntPtr
See Also
Win32HelperMethods Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Return to top
Unified Service Desk 2.0
© 2016 Microsoft. All rights reserved. Copyright