124 references to SafeNativeMethods
UIAutomationClientsideProviders (124)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
237if (!SafeNativeMethods.IsWindowVisible(hwnd))
MS\Internal\AutomationProxies\EventManager.cs (1)
160bool fIsReadOnly = SafeNativeMethods.IsWindowEnabled(hwnd);
MS\Internal\AutomationProxies\Input.cs (1)
137ki.union.keyboardInput.wScan = (short)SafeNativeMethods.MapVirtualKey(ki.union.keyboardInput.wVk, 0);
MS\Internal\AutomationProxies\Misc.cs (7)
766if (!SafeNativeMethods.IsWindowEnabled(hwnd)) 797bool result = SafeNativeMethods.IntersectRect(ref rcDest, ref rc1, ref rc2); 1467int result = SafeNativeMethods.RegisterWindowMessage(msg); 1518if (!SafeNativeMethods.IsWindowVisible(hwnd) || !SafeNativeMethods.IsWindowEnabled(hwnd)) 1752bool result = SafeNativeMethods.UnionRect(out rcDst, ref rc1, ref rc2); 1875IntPtr hwndShell = SafeNativeMethods.GetShellWindow();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
640if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 654if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 668if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 710if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1225if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
250if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
291if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 546if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsButton.cs (2)
280return SafeNativeMethods.IsWindowVisible(_hwnd); 481if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
281if (SafeNativeMethods.IsWindowVisible(cbInfo.hwndList)) 394if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 432if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
164if (!SafeNativeMethods.IsWindowVisible(hwnd)) 198if (hwndTab == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
737return (!SafeNativeMethods.IsWindowEnabled(WindowHandle) || Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY));
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
781return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOW); 816return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (2)
133if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 138if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
440if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 445if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (3)
131if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 380if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 419return !SafeNativeMethods.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsListBox.cs (8)
186return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 195if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 783if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 840if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 892if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 943if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 965if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 969if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (9)
509if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 538if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 617if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 628if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 803if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 930return SafeNativeMethods.IsWindowVisible(hwndHeader); 1179if (_groupsCollection.Contains (hwnd) && !SafeNativeMethods.IsWindowVisible (hwnd) && !SafeNativeMethods.IsWindowEnabled (hwnd)) 1844if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
414if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
395if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 420if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 458if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 527if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 556if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 668if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 980int scanCode = SafeNativeMethods.MapVirtualKey (NativeMethods.VK_RETURN, 0);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
247if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
59if (!SafeNativeMethods.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
226if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 336if (SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsMenu.cs (24)
253if (!SafeNativeMethods.IsWindowVisible(hwndPopup)) 634if (SafeNativeMethods.IsWindowVisible (hwndPossibleParent)) 662if (SafeNativeMethods.IsWindowVisible (hwndSubMenu)) 731if (SafeNativeMethods.IsWindowVisible (hwnd)) 954if (!SafeNativeMethods.IsWindowVisible(hwndPopup)) 991if (SafeNativeMethods.IsWindowVisible (parentInfo._hwndParent)) 1232if (!SafeNativeMethods.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer) 1446if (!SafeNativeMethods.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer) 1524UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 1529(dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut) 1999return (hwndSubMenu == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndSubMenu)); 2040if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2085if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 2118if (SafeNativeMethods.IsWindowVisible (hwndSubMenu)) 2181UInt32 dwTicks = SafeNativeMethods.GetTickCount (), dwDelta = 0; 2197|| (dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut) 2208UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2226} while (SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut); 2247if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2283UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2287while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut) 2348UInt32 dwTicks = SafeNativeMethods.GetTickCount (); 2353(dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut) 2664return SafeNativeMethods.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
391if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
179if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 504return (!SafeNativeMethods.IsWindowEnabled(WindowHandle) ||
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
656return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOW); 797return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
208return SafeNativeMethods.IsWindowVisible(_hwnd); 217if (SafeNativeMethods.IsWindowVisible(_hwnd) && 633if (!SafeNativeMethods.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
121return SafeNativeMethods.IsWindowVisible(_hwnd); 157if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
173if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 447if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
479if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 656if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 727if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (9)
455if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 479if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1041if (hwndChild != IntPtr.Zero && SafeNativeMethods.IsWindowVisible(hwndChild)) 1064if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1084if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1127if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1209if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1288return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
415if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
657if (!SafeNativeMethods.IsWindowEnabled(_hwnd)
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
973if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1004if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1039if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1089if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1118if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1160if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1200if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
224if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 529if (!SafeNativeMethods.IsWindowEnabled(_hwnd))