124 references to SafeNativeMethods
UIAutomationClientSideProviders (124)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
233if (!SafeNativeMethods.IsWindowVisible(hwnd))
MS\Internal\AutomationProxies\EventManager.cs (1)
146bool fIsReadOnly = SafeNativeMethods.IsWindowEnabled(hwnd);
MS\Internal\AutomationProxies\Input.cs (1)
131ki.union.keyboardInput.wScan = (short)SafeNativeMethods.MapVirtualKey(ki.union.keyboardInput.wVk, 0);
MS\Internal\AutomationProxies\Misc.cs (7)
746if (!SafeNativeMethods.IsWindowEnabled(hwnd)) 777bool result = SafeNativeMethods.IntersectRect(ref rcDest, ref rc1, ref rc2); 1444int result = SafeNativeMethods.RegisterWindowMessage(msg); 1492if (!SafeNativeMethods.IsWindowVisible(hwnd) || !SafeNativeMethods.IsWindowEnabled(hwnd)) 1718bool result = SafeNativeMethods.UnionRect(out rcDst, ref rc1, ref rc2); 1841IntPtr hwndShell = SafeNativeMethods.GetShellWindow();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
614if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 628if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 642if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 684if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1190if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
227if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
273if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 528if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsButton.cs (2)
263return SafeNativeMethods.IsWindowVisible(_hwnd); 461if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
263if (SafeNativeMethods.IsWindowVisible(cbInfo.hwndList)) 372if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 410if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
146if (!SafeNativeMethods.IsWindowVisible(hwnd)) 180if (hwndTab == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
671return (!SafeNativeMethods.IsWindowEnabled(WindowHandle) || Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY));
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
755return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOW); 790return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (2)
108if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 113if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
422if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 427if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (3)
116if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 362if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 401return !SafeNativeMethods.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsListBox.cs (8)
170return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 179if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 761if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 818if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 870if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 921if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 943if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 947if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (9)
495if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 524if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 603if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 614if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 789if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 915return SafeNativeMethods.IsWindowVisible(hwndHeader); 1164if (_groupsCollection.Contains (hwnd) && !SafeNativeMethods.IsWindowVisible (hwnd) && !SafeNativeMethods.IsWindowEnabled (hwnd)) 1831if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
404if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
384if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 409if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 447if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 516if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 545if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 657if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 965int scanCode = SafeNativeMethods.MapVirtualKey (NativeMethods.VK_RETURN, 0);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
239if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
47if (!SafeNativeMethods.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
217if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 327if (SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsMenu.cs (24)
236if (!SafeNativeMethods.IsWindowVisible(hwndPopup)) 617if (SafeNativeMethods.IsWindowVisible (hwndPossibleParent)) 645if (SafeNativeMethods.IsWindowVisible (hwndSubMenu)) 714if (SafeNativeMethods.IsWindowVisible (hwnd)) 936if (!SafeNativeMethods.IsWindowVisible(hwndPopup)) 973if (SafeNativeMethods.IsWindowVisible (parentInfo._hwndParent)) 1213if (!SafeNativeMethods.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer) 1425if (!SafeNativeMethods.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer) 1503UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 1508(dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut) 1978return (hwndSubMenu == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndSubMenu)); 2019if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2064if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 2097if (SafeNativeMethods.IsWindowVisible (hwndSubMenu)) 2160UInt32 dwTicks = SafeNativeMethods.GetTickCount (), dwDelta = 0; 2176|| (dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut) 2187UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2205} while (SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut); 2226if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2262UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2266while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut) 2327UInt32 dwTicks = SafeNativeMethods.GetTickCount (); 2332(dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut) 2643return SafeNativeMethods.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
374if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
162if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 459return (!SafeNativeMethods.IsWindowEnabled(WindowHandle) ||
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
629return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOW); 770return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
190return SafeNativeMethods.IsWindowVisible(_hwnd); 199if (SafeNativeMethods.IsWindowVisible(_hwnd) && 616if (!SafeNativeMethods.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
111return SafeNativeMethods.IsWindowVisible(_hwnd); 147if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
156if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 430if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
463if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 637if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 708if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (9)
448if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 472if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1035if (hwndChild != IntPtr.Zero && SafeNativeMethods.IsWindowVisible(hwndChild)) 1058if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1078if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1121if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1203if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1282return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
402if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
642if (!SafeNativeMethods.IsWindowEnabled(_hwnd)
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
957if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 988if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1023if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1073if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1102if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1144if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1184if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
203if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 508if (!SafeNativeMethods.IsWindowEnabled(_hwnd))