19 references to Cast
UIAutomationClient (19)
MS\Internal\Automation\Accessible.cs (1)
82return ProxyManager.GetClassName(NativeMethods.HWND.Cast(hwnd)) == szClass;
MS\Internal\Automation\BoundingRectTracker.cs (2)
76if (!SafeNativeMethods.IsWindowVisible(NativeMethods.HWND.Cast( hwnd ))) 84NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\ClientEventManager.cs (2)
592if ( rawEl != null && !HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( hwnd ) ) ) 646if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( hwnd ) ) )
MS\Internal\Automation\FocusTracker.cs (4)
132provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), idChild, UnsafeNativeMethods.OBJID_CLIENT); 161provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), idChild, idObject); 253if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(NativeMethods.HWND.Cast(hwndCur))) 293IntPtr i = Misc.SendMessageTimeout(NativeMethods.HWND.Cast(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
633NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT);
MS\Internal\Automation\MenuTracker.cs (1)
59NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\UiaCoreApi.cs (2)
1573provider = new HwndProxyElementProvider(NativeMethods.HWND.Cast(hwnd)); 1577provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), 0, UnsafeNativeMethods.OBJID_CLIENT);
MS\Internal\Automation\WindowHideOrCloseTracker.cs (1)
58NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\WindowInteractionStateTracker.cs (1)
73NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast(hwnd);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
58NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\WindowVisualStateTracker.cs (1)
73NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast(hwnd);
MS\Win32\NativeMethods.cs (1)
73HWND hr = Cast((HWND)oCompare);
System\Windows\Automation\Automation.cs (1)
161if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( new IntPtr( (int)val ) ) ) )