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)
229if (!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); 465if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
264if (SafeNativeMethods.IsWindowVisible(cbInfo.hwndList)) 377if (GetComboInfo(_hwnd, ref cbInfo) && SafeNativeMethods.IsWindowVisible(cbInfo.hwndItem)) 415if (!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)
113if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 118if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsHyperlink.cs (2)
427if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 432if (!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)
174return IsParentedByCombo() || SafeNativeMethods.IsWindowVisible(_hwnd); 183if (!SafeNativeMethods.IsWindowVisible(_hwnd)) 771if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 828if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 880if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 931if (_listBox._parentedByCombo && !SafeNativeMethods.IsWindowVisible(_hwnd)) 953if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 957if (!SafeNativeMethods.IsWindowVisible(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (9)
499if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 528if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 607if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 618if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 793if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 919return SafeNativeMethods.IsWindowVisible(hwndHeader); 1168if (_groupsCollection.Contains (hwnd) && !SafeNativeMethods.IsWindowVisible (hwnd) && !SafeNativeMethods.IsWindowEnabled (hwnd)) 1837if (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)
194return SafeNativeMethods.IsWindowVisible(_hwnd); 203if (SafeNativeMethods.IsWindowVisible(_hwnd) && 620if (!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)
467if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 644if (!SafeNativeMethods.IsWindowEnabled (_hwnd) || !SafeNativeMethods.IsWindowVisible (_hwnd) || HeaderIsHidden (_hwnd)) 715if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsTab.cs (9)
456if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 480if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1043if (hwndChild != IntPtr.Zero && SafeNativeMethods.IsWindowVisible(hwndChild)) 1066if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1086if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1129if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1211if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1290return (SafeNativeMethods.IsWindowEnabled(_hwnd) && SafeNativeMethods.IsWindowVisible(_hwnd));
MS\Internal\AutomationProxies\WindowsTitleBar.cs (1)
403if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
646if (!SafeNativeMethods.IsWindowEnabled(_hwnd)
MS\Internal\AutomationProxies\WindowsTreeView.cs (7)
962if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 993if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1028if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1078if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1107if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1149if (!SafeNativeMethods.IsWindowEnabled(_hwnd)) 1189if (!SafeNativeMethods.IsWindowEnabled(_hwnd))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
207if (!SafeNativeMethods.IsWindowEnabled (_hwnd)) 512if (!SafeNativeMethods.IsWindowEnabled(_hwnd))