124 references to SafeNativeMethods
UIAutomationClientSideProviders (124)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
233if (!SafeNativeMethods.IsWindowVisible(hwnd))
MS\Internal\AutomationProxies\EventManager.cs (1)
147bool fIsReadOnly = SafeNativeMethods.IsWindowEnabled(hwnd);
MS\Internal\AutomationProxies\Input.cs (1)
134ki.union.keyboardInput.wScan = (short)SafeNativeMethods.MapVirtualKey(ki.union.keyboardInput.wVk, 0);
MS\Internal\AutomationProxies\Misc.cs (7)
747if (!SafeNativeMethods.IsWindowEnabled(hwnd)) 778bool result = SafeNativeMethods.IntersectRect(ref rcDest, ref rc1, ref rc2); 1445int result = SafeNativeMethods.RegisterWindowMessage(msg); 1493if (!SafeNativeMethods.IsWindowVisible(hwnd) || !SafeNativeMethods.IsWindowEnabled(hwnd)) 1719bool result = SafeNativeMethods.UnionRect(out rcDst, ref rc1, ref rc2); 1842IntPtr hwndShell = SafeNativeMethods.GetShellWindow();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
615if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 629if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 643if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 685if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1191if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
228if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
274if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 529if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsButton.cs (2)
264return SafeNativeMethods.IsWindowVisible(_hwnd); 462if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
264if (SafeNativeMethods.IsWindowVisible(cbInfo.hwndList)) 373if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 411if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
147if (!SafeNativeMethods.IsWindowVisible(hwnd)) 181if (hwndTab == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
672return (!SafeNativeMethods.IsWindowEnabled(WindowHandle) || Misc.IsBitSet(WindowStyle, NativeMethods.ES_READONLY));
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
756return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOW); 791return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (2)
109if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 114if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
423if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 428if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (3)
117if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 363if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 402return !SafeNativeMethods.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsListBox.cs (8)
171return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 180if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 762if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 819if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 871if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 922if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 944if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 948if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (9)
496if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 525if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 604if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 615if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 790if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 916return SafeNativeMethods.IsWindowVisible(hwndHeader); 1165if (_groupsCollection.Contains (hwnd) && !SafeNativeMethods.IsWindowVisible (hwnd) && !SafeNativeMethods.IsWindowEnabled (hwnd)) 1834if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
405if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
385if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 410if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 448if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 517if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 546if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 658if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 966int scanCode = SafeNativeMethods.MapVirtualKey (NativeMethods.VK_RETURN, 0);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
240if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
48if (!SafeNativeMethods.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
218if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 328if (SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsMenu.cs (24)
237if (!SafeNativeMethods.IsWindowVisible(hwndPopup)) 618if (SafeNativeMethods.IsWindowVisible (hwndPossibleParent)) 646if (SafeNativeMethods.IsWindowVisible (hwndSubMenu)) 715if (SafeNativeMethods.IsWindowVisible (hwnd)) 937if (!SafeNativeMethods.IsWindowVisible(hwndPopup)) 974if (SafeNativeMethods.IsWindowVisible (parentInfo._hwndParent)) 1214if (!SafeNativeMethods.IsWindowVisible (_hwnd) || _type == MenuItemType.Spacer) 1426if (!SafeNativeMethods.IsWindowVisible(_hwnd) || _type == MenuItemType.Spacer) 1504UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 1509(dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) <= WindowsMenu.TimeOut) 1979return (hwndSubMenu == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndSubMenu)); 2020if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2065if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 2098if (SafeNativeMethods.IsWindowVisible (hwndSubMenu)) 2161UInt32 dwTicks = SafeNativeMethods.GetTickCount (), dwDelta = 0; 2177|| (dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) >= WindowsMenu.TimeOut) 2188UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2206} while (SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks) <= WindowsMenu.TimeOut); 2227if (!SafeNativeMethods.IsWindowVisible (_hwnd)) 2263UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2267while (Misc.InMenuMode() != fInMenuMode && (dwDelta = SubtractTicks(SafeNativeMethods.GetTickCount(), dwTicks)) < WindowsMenu.TimeOut) 2328UInt32 dwTicks = SafeNativeMethods.GetTickCount (); 2333(dwDelta = SubtractTicks (SafeNativeMethods.GetTickCount (), dwTicks)) <= WindowsMenu.TimeOut) 2644return SafeNativeMethods.IsWindowEnabled(_hwnd);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
375if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
163if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 460return (!SafeNativeMethods.IsWindowEnabled(WindowHandle) ||
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
630return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOW); 771return SafeNativeMethods.GetSysColor(NativeMethods.COLOR_WINDOWTEXT);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (3)
191return SafeNativeMethods.IsWindowVisible(_hwnd); 200if (SafeNativeMethods.IsWindowVisible(_hwnd) && 617if (!SafeNativeMethods.IsWindowEnabled (_hwnd))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
112return SafeNativeMethods.IsWindowVisible(_hwnd); 148if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
157if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 431if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
464if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 638if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 709if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (9)
449if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 473if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1036if (hwndChild != IntPtr.Zero && SafeNativeMethods.IsWindowVisible(hwndChild)) 1059if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1079if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1122if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1204if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1283return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
403if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
643if (!SafeNativeMethods.IsWindowEnabled(_hwnd)
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
958if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 989if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1024if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1074if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1103if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1145if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1185if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
204if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 509if (!SafeNativeMethods.IsWindowEnabled(_hwnd))