Win32HelperMethods.FindWindowByPosition Method (IntPtr, Int32, Int32, Int32, 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 window whose upper left corner coordinates matches the position given through a BFS (Breadth-First Search) of the window handle tree rooted at hWndParent.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Syntax
public static IntPtr FindWindowByPosition(
IntPtr hWndParent,
int processId,
int threadId,
int x,
int y,
bool ignoreProcThread
)
Public Shared Function FindWindowByPosition (
hWndParent As IntPtr,
processId As Integer,
threadId As Integer,
x As Integer,
y As Integer,
ignoreProcThread As Boolean
) As IntPtr
Parameters
hWndParent
Type: System.IntPtrSpecifies the parent window.
processId
Type: System.Int32Specifies the process ID.
threadId
Type: System.Int32Specifies the thread ID.
x
Type: System.Int32Specifies the x co-ordinate
y
Type: System.Int32Specifies the y co-ordinate
ignoreProcThread
Type: System.BooleanTrue to ignore processor thread, otherwise false.
Return Value
Type: System.IntPtr
Type: IntPtr
Remarks
The position, specified by the x, y parameters, are relative to the upper left corner coordinates of the root window identified by hWndParent.
See Also
Win32HelperMethods Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Return to top
Unified Service Desk 2.0
© 2017 Microsoft. All rights reserved. Copyright