StructHWND
Drop-in P/Invoke replacement for IntPtr window handle. Includes implicit typecasts for IntPtr, System.Windows.Window, and System.Windows.Forms.Control. This class performs no caching; all property accesses translate to immediate Win32 function calls, and failed calls will throw exceptions (unlike the P/Invoke entry points themselves).
Definition
Namespace:ArtOfTest.Common.Win32
Assembly:ArtOfTest.WebAii.dll
Syntax:
[Obsolete("Deprecated. Please use Telerik.TestStudio.Core.Win32.HWND instead.")]
public struct HWND
Fields
Properties
HINSTANCE
This is useful because some frameworks store their DLL instance handle here, allowing you to loosely identify the framework that is managing the window.
WindowRect
Gets or sets the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the screen origin.
Methods
Operators
implicit operator AutomationElement(HWND)
Declaration
public static implicit operator AutomationElement(HWND hwnd)
Parameters
hwnd
Returns
implicit operator HWND(AutomationElement)
Declaration
public static implicit operator HWND(AutomationElement element)
Parameters
element
Returns
implicit operator HWND(NativeWindow)
Declaration
public static implicit operator HWND(NativeWindow control)
Parameters
control
Returns
implicit operator NativeWindow(HWND)
Declaration
public static implicit operator NativeWindow(HWND hwnd)
Parameters
hwnd
Returns