19 references to Cast
UIAutomationClient (19)
MS\Internal\Automation\Accessible.cs (1)
102return ProxyManager.GetClassName(NativeMethods.HWND.Cast(hwnd)) == szClass;
MS\Internal\Automation\BoundingRectTracker.cs (2)
87if (!SafeNativeMethods.IsWindowVisible(NativeMethods.HWND.Cast( hwnd ))) 95NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\ClientEventManager.cs (2)
610if ( rawEl != null && !HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( hwnd ) ) ) 665if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( hwnd ) ) )
MS\Internal\Automation\FocusTracker.cs (4)
141provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), idChild, UnsafeNativeMethods.OBJID_CLIENT); 170provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), idChild, idObject); 262if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(NativeMethods.HWND.Cast(hwndCur))) 302IntPtr i = Misc.SendMessageTimeout(NativeMethods.HWND.Cast(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
657NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT);
MS\Internal\Automation\MenuTracker.cs (1)
70NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\UiaCoreAPI.cs (2)
1569provider = new HwndProxyElementProvider(NativeMethods.HWND.Cast(hwnd)); 1573provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), 0, UnsafeNativeMethods.OBJID_CLIENT);
MS\Internal\Automation\WindowHideOrCloseTracker.cs (1)
68NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\WindowInteractionStateTracker.cs (1)
85NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast(hwnd);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
70NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\WindowVisualStateTracker.cs (1)
82NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast(hwnd);
MS\Win32\NativeMethods.cs (1)
69HWND hr = Cast((HWND)oCompare);
System\Windows\Automation\Automation.cs (1)
201if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( new IntPtr( (int)val ) ) ) )