239 references to UnsafeNativeMethods
UIAutomationClientSideProviders (239)
MS\Internal\AutomationProxies\Accessible.cs (9)
179hr = UnsafeNativeMethods.ObjectFromLresult(lResult, ref UnsafeNativeMethods.IID_IAccessible, wParam, ref acc); 218hr = UnsafeNativeMethods.AccessibleObjectFromWindow(hwnd, idObject, ref UnsafeNativeMethods.IID_IUnknown, ref obj); 863int result = UnsafeNativeMethods.WindowFromAccessibleObject(_acc, ref _hwnd); 899int hr = UnsafeNativeMethods.AccessibleObjectFromWindow(hwnd, idObject, ref UnsafeNativeMethods.IID_IUnknown, ref obj); 940if (UnsafeNativeMethods.AccessibleChildren(accessibleObject, 0, childCount, aChildren, out childrenReturned) == NativeMethods.E_INVALIDARG) 1177hr = UnsafeNativeMethods.AccessibleChildren(parent, 0, count, children, out actualCount);
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
470private static IntPtr _hwndDesktop = UnsafeNativeMethods.GetDesktopWindow();
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (8)
73size.cx = UnsafeNativeMethods.GetSystemMetrics (NativeMethods.SM_CXSIZE); 74size.cy = UnsafeNativeMethods.GetSystemMetrics (NativeMethods.SM_CXSIZE); 78size.cx = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXVSCROLL); 79size.cy = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYHSCROLL); 83size.cx = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXHSCROLL); 84size.cy = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYVSCROLL); 91size.cx = UnsafeNativeMethods.GetSystemMetrics (NativeMethods.SM_CXSIZE); 92size.cy = UnsafeNativeMethods.GetSystemMetrics (NativeMethods.SM_CXSIZE);
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (3)
43SetHandle(Misc.VirtualAllocEx(_processHandle, IntPtr.Zero, new UIntPtr((uint)cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE)); 55return Misc.VirtualFreeEx(_processHandle, handle, UIntPtr.Zero, UnsafeNativeMethods.MEM_RELEASE);
MS\Internal\AutomationProxies\CommonXSendMessage.cs (2)
1514int status = UnsafeNativeMethods.NtQueryInformationProcess(hProcess, UnsafeNativeMethods.ProcessWow64Information, ref infoWOW64, sizeof(ulong), null);
MS\Internal\AutomationProxies\Input.cs (22)
81int vscreenWidth = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXVIRTUALSCREEN); 82int vscreenHeight = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYVIRTUALSCREEN); 83int vscreenLeft = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_XVIRTUALSCREEN); 84int vscreenTop = UnsafeNativeMethods.GetSystemMetrics( NativeMethods.SM_YVIRTUALSCREEN ); 120if( UnsafeNativeMethods.SendInput( 1, ref mi, Marshal.SizeOf(mi) ) == 0 ) 143if( UnsafeNativeMethods.SendInput( 1, ref ki, Marshal.SizeOf(ki) ) == 0 ) 192return vk == unchecked((short)UnsafeNativeMethods.VK_RMENU) || 193vk == unchecked((short)UnsafeNativeMethods.VK_RCONTROL) || 194vk == unchecked((short)UnsafeNativeMethods.VK_NUMLOCK) || 195vk == unchecked((short)UnsafeNativeMethods.VK_INSERT) || 196vk == unchecked((short)UnsafeNativeMethods.VK_DELETE) || 197vk == unchecked((short)UnsafeNativeMethods.VK_HOME) || 198vk == unchecked((short)UnsafeNativeMethods.VK_END) || 199vk == unchecked((short)UnsafeNativeMethods.VK_PRIOR) || 200vk == unchecked((short)UnsafeNativeMethods.VK_NEXT) || 201vk == unchecked((short)UnsafeNativeMethods.VK_UP) || 202vk == unchecked((short)UnsafeNativeMethods.VK_DOWN) || 203vk == unchecked((short)UnsafeNativeMethods.VK_LEFT) || 204vk == unchecked((short)UnsafeNativeMethods.VK_RIGHT) || 205vk == unchecked((short)UnsafeNativeMethods.VK_APPS) || 206vk == unchecked((short)UnsafeNativeMethods.VK_RWIN) || 207vk == unchecked((short)UnsafeNativeMethods.VK_LWIN);
MS\Internal\AutomationProxies\Misc.cs (93)
123bool result = UnsafeNativeMethods.CloseHandle(processHandle); 162return UnsafeNativeMethods.DispatchMessage(ref msg); 168bool result = UnsafeNativeMethods.EnumChildWindows(hwnd, lpEnumFunc, lParam); 196int result = UnsafeNativeMethods.GetClassName(hwnd, sb, NativeMethods.MAX_PATH); 260bool result = UnsafeNativeMethods.GetClientRect(hwnd, ref rc); 277bool result = UnsafeNativeMethods.GetComboBoxInfo(hwnd, ref cbi); 291bool result = (System.Environment.OSVersion.Version.Major >= 6) ? UnsafeNativeMethods.GetPhysicalCursorPos(ref pt) 292: UnsafeNativeMethods.GetCursorPos(ref pt); 306IntPtr hdc = UnsafeNativeMethods.GetDC(hwnd); 347UnsafeNativeMethods.ENUMTOOLTIPWINDOWINFO info = new UnsafeNativeMethods.ENUMTOOLTIPWINDOWINFO(); 352UnsafeNativeMethods.EnumThreadWndProc enumToolTipWindows = new UnsafeNativeMethods.EnumThreadWndProc(EnumToolTipWindows); 354UnsafeNativeMethods.EnumThreadWindows(threadId, enumToolTipWindows, ref info); 375if (!UnsafeNativeMethods.IsWindow(hwnd)) 382if (hwndParent == IntPtr.Zero || hwndParent == UnsafeNativeMethods.GetDesktopWindow()) 413int style = UnsafeNativeMethods.GetWindowLong(peer, NativeMethods.GWL_STYLE, out error); 443int count = UnsafeNativeMethods.GetMenuItemCount(hmenu); 456bool result = UnsafeNativeMethods.GetMenuItemInfo(hmenu, item, byPosition, ref menuItemInfo); 469bool result = UnsafeNativeMethods.GetMenuItemRect(hwnd, hmenu, item, out rc); 482int result = UnsafeNativeMethods.GetMessage(ref msg, hwnd, msgFilterMin, msgFilterMax); 496int result = UnsafeNativeMethods.GetObjectW(hObject, size, ref lf); 522bool result = UnsafeNativeMethods.GetScrollBarInfo(hwnd, fnBar, ref sbi); 535bool result = UnsafeNativeMethods.GetScrollInfo(hwnd, fnBar, ref si); 584memAddr = VirtualAlloc(IntPtr.Zero, new UIntPtr(cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE); 587VirtualAlloc(new IntPtr((byte *)memAddr.ToPointer() + cbSize - pageSize), new UIntPtr(pageSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_NOACCESS); 613VirtualFree(memAddr, UIntPtr.Zero, UnsafeNativeMethods.MEM_RELEASE); 635int exstyle = UnsafeNativeMethods.GetWindowLong(hwnd, NativeMethods.GWL_EXSTYLE, out lastWin32Error); 649int id = UnsafeNativeMethods.GetWindowLong(hwnd, NativeMethods.GWL_ID, out lastWin32Error); 665int result = UnsafeNativeMethods.GetWindowLong(hwnd, NativeMethods.GWL_HWNDPARENT, out lastWin32Error); 677bool result = UnsafeNativeMethods.GetWindowRect(hwnd, ref rc); 691int style = UnsafeNativeMethods.GetWindowLong(hwnd, NativeMethods.GWL_STYLE, out lastWin32Error); 706uint threadId = UnsafeNativeMethods.GetWindowThreadProcessId(hwnd, out processId); 718short atom = UnsafeNativeMethods.GlobalAddAtom(atomName); 886bool result = UnsafeNativeMethods.IsWow64Process(hProcess, out Wow64Process); 961bool mouseSwapped = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_SWAPBUTTON) != 0; 991terminationEvent = UnsafeNativeMethods.MsgWaitForMultipleObjects(0, null, waitAll, milliseconds, wakeMask); 1001terminationEvent = UnsafeNativeMethods.MsgWaitForMultipleObjects(1, handles, waitAll, milliseconds, wakeMask); 1021IntPtr processHandle = UnsafeNativeMethods.OpenProcess(flags, inherit, processId); 1032processHandle = UnsafeNativeMethods.GetProcessHandleFromHwnd(hwnd); 1053bool result = UnsafeNativeMethods.PostMessage(hwnd, msg, wParam, lParam); 1088bool result = UnsafeNativeMethods.GetGUIThreadInfo(idThread, ref gui); 1183internal static bool ProxyGetTitleBarInfo(IntPtr hwnd, out UnsafeNativeMethods.TITLEBARINFO ti) 1185ti = new UnsafeNativeMethods.TITLEBARINFO(); 1188bool result = UnsafeNativeMethods.GetTitleBarInfo(hwnd, ref ti); 1199internal static bool ProxyGetTitleBarInfoEx(IntPtr hwnd, out UnsafeNativeMethods.TITLEBARINFOEX ti) 1201ti = new UnsafeNativeMethods.TITLEBARINFOEX(); 1204IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, NativeMethods.WM_GETTITLEBARINFOEX, IntPtr.Zero, ref ti, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1229UnsafeNativeMethods.TITLEBARINFO ti; 1259IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, msg, wParam, lParam, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1287IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, msg, wParam, lParam, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1313IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, msg, wParam, sb, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1339IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, msg, wParam, ref lParam, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1354IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, msg, out wParam, out lParam, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1390bool result = UnsafeNativeMethods.ReadProcessMemory(hProcess, source, dest, size, out bytesRead); 1403bool result = UnsafeNativeMethods.ReadProcessMemory(hProcess, source, destAddress, size, out bytesRead); 1419uint result = UnsafeNativeMethods.RealGetWindowClass(hwnd, className, NativeMethods.MAX_PATH); 1433bool result = UnsafeNativeMethods.RegisterHotKey(hwnd, atom, modifiers, vk); 1449return UnsafeNativeMethods.ReleaseDC(hwnd, hdc); 1472return UnsafeNativeMethods.SelectObject(hdc, hObject); 1477int eventCount = UnsafeNativeMethods.SendInput(inputs, ref ki, size); 1519if (UnsafeNativeMethods.SetForegroundWindow(hwnd)) 1549bool fShiftDown = (UnsafeNativeMethods.GetAsyncKeyState(UnsafeNativeMethods.VK_SHIFT) & unchecked((int)0x80000000)) != 0; 1550bool fAltDown = (UnsafeNativeMethods.GetAsyncKeyState(UnsafeNativeMethods.VK_MENU) & unchecked((int)0x80000000)) != 0; 1551bool fCtrlDown = (UnsafeNativeMethods.GetAsyncKeyState(UnsafeNativeMethods.VK_CONTROL) & unchecked((int)0x80000000)) != 0; 1554Input.SendKeyboardInputVK(UnsafeNativeMethods.VK_SHIFT, false); 1557Input.SendKeyboardInputVK(UnsafeNativeMethods.VK_MENU, false); 1560Input.SendKeyboardInputVK(UnsafeNativeMethods.VK_CONTROL, false); 1567Input.SendKeyboardInputVK(UnsafeNativeMethods.VK_SHIFT, true); 1570Input.SendKeyboardInputVK(UnsafeNativeMethods.VK_MENU, true); 1573Input.SendKeyboardInputVK(UnsafeNativeMethods.VK_CONTROL, true); 1592UnsafeNativeMethods.TranslateMessage(ref msg); 1599UnsafeNativeMethods.DispatchMessage(ref msg); 1612return UnsafeNativeMethods.SetForegroundWindow(hwnd); 1639return UnsafeNativeMethods.SetWinEventHook(eventMin, eventMax, hmodWinEventProc, WinEventReentrancyFilter, idProcess, idThread, dwFlags); 1734return UnsafeNativeMethods.UnhookWinEvent(winEventHook); 1752bool result = UnsafeNativeMethods.UnregisterHotKey(hwnd, atom); 1765IntPtr result = UnsafeNativeMethods.VirtualAlloc(address, size, allocationType, protect); 1778IntPtr result = UnsafeNativeMethods.VirtualAllocEx(hProcess, address, size, allocationType, protect); 1791bool result = UnsafeNativeMethods.VirtualFree(address, size, freeType); 1804bool result = UnsafeNativeMethods.VirtualFreeEx(hProcess, address, size, freeType); 1817bool result = UnsafeNativeMethods.WriteProcessMemory(hProcess, dest, sourceAddress, size, out bytesWritten); 1911private static bool EnumToolTipWindows(IntPtr hwnd, ref UnsafeNativeMethods.ENUMTOOLTIPWINDOWINFO lParam) 1957UnsafeNativeMethods.GetSystemInfo(out sysInfo); 1993UnsafeNativeMethods.TITLEBARINFO tiDL; 2010int buttonWidth = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXSIZE) - 1; 2011int buttonHeight = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CYSIZE) - 1; 2064UnsafeNativeMethods.TITLEBARINFOEX ti;
MS\Internal\AutomationProxies\MSAANativeProvider.cs (2)
142if (!UnsafeNativeMethods.IsWindow(hwnd) || IsKnownBadWindow(hwnd)) 228Debug.Assert(_hwnd == UnsafeNativeMethods.WindowFromPhysicalPoint((int)x, (int)y));
MS\Internal\AutomationProxies\NonClientArea.cs (3)
110if (!UnsafeNativeMethods.IsWindow(hwnd)) 149IntPtr menu = UnsafeNativeMethods.GetMenu(hwnd); 545IntPtr menu = UnsafeNativeMethods.GetMenu(_hwnd);
MS\Internal\AutomationProxies\OleObject.cs (2)
76[PreserveSig]int GetData(ref UnsafeNativeMethods.FORMATETC pFormatetc, [In, Out]ref UnsafeNativeMethods.STGMEDIUM pMedium);
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
243if (hwndParent != IntPtr.Zero && hwndParent != UnsafeNativeMethods.GetDesktopWindow())
MS\Internal\AutomationProxies\ProxySimple.cs (3)
336return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero; 714internal static IntPtr _hwndDesktop = UnsafeNativeMethods.GetDesktopWindow();
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
101while (UnsafeNativeMethods.PeekMessage (ref msg, IntPtr.Zero, 0, 0, NativeMethods.PM_REMOVE))
MS\Internal\AutomationProxies\WindowsAltTab.cs (9)
215UnsafeNativeMethods.ALTTABINFO altTabInfo = 216new UnsafeNativeMethods.ALTTABINFO(); 240ref UnsafeNativeMethods.ALTTABINFO altTabInfo, 243altTabInfo.cbSize = (uint)Marshal.SizeOf(typeof(UnsafeNativeMethods.ALTTABINFO)); 250UnsafeNativeMethods.GetAltTabInfo( 275private UnsafeNativeMethods.ALTTABINFO _altTabInfo = 276new UnsafeNativeMethods.ALTTABINFO(); 357UnsafeNativeMethods.ALTTABINFO altTabInfo = 358new UnsafeNativeMethods.ALTTABINFO();
MS\Internal\AutomationProxies\WindowsButton.cs (2)
152if (!UnsafeNativeMethods.IsWindow(hwnd)) 561return Misc.InTheShellProcess(_hwnd) && UnsafeNativeMethods.GetProp(_hwnd, "StartButtonTag") == new IntPtr(304);
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
537result = UnsafeNativeMethods.GetStockObject(NativeMethods.SYSTEM_FONT);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (5)
489short key = UnsafeNativeMethods.VK_LEFT; 493key = UnsafeNativeMethods.VK_RIGHT; 504short key = UnsafeNativeMethods.VK_RIGHT; 508key = UnsafeNativeMethods.VK_LEFT; 778int lpy = UnsafeNativeMethods.GetDeviceCaps(hdc, NativeMethods.LOGPIXELSY);
MS\Internal\AutomationProxies\WindowsHyperlink.cs (11)
175UnsafeNativeMethods.LITEM linkItemLast; 194UnsafeNativeMethods.LHITTESTINFO HitTestInfo = new UnsafeNativeMethods.LHITTESTINFO(); 259private ProxySimple CreateHyperlinkItem(UnsafeNativeMethods.LITEM linkItem, int index) 279fixed (UnsafeNativeMethods.LITEM* pLinkItem = &_linkItem) 281return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 335private UnsafeNativeMethods.LITEM _linkItem; 388UnsafeNativeMethods.LITEM linkItem = new UnsafeNativeMethods.LITEM(); 480UnsafeNativeMethods.LHITTESTINFO HitTestInfo = new UnsafeNativeMethods.LHITTESTINFO();
MS\Internal\AutomationProxies\WindowsListView.cs (2)
440int xAdjustment = UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXBORDER) + UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_CXFRAME);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (1)
169IntPtr desktop = UnsafeNativeMethods.GetDesktopWindow();
MS\Internal\AutomationProxies\WindowsMenu.cs (28)
165hmenu = UnsafeNativeMethods.GetMenu(hwnd); 267IntPtr hSubMenu = UnsafeNativeMethods.GetSubMenu(hmenu, i); 312IntPtr hmenu = UnsafeNativeMethods.GetMenu(gui.hwndActive); 599IntPtr hMenuPossibleParent = UnsafeNativeMethods.GetMenu (gui.hwndActive); 690if (UnsafeNativeMethods.GetSubMenu (hmenuPossibleParent, i) == hmenuChild) 820UnsafeNativeMethods.TITLEBARINFO ti; 885return UnsafeNativeMethods.GetSubMenu(mbi.hMenu, 0); 923int state = UnsafeNativeMethods.GetMenuState(hmenu, i, NativeMethods.MF_BYPOSITION); 1264UnsafeNativeMethods.TITLEBARINFO ti; 1421return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero; 1513while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 1603IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1622IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1871return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); 1886return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED); 1988IntPtr submenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2041short convert = UnsafeNativeMethods.VkKeyScan (hotKey); 2140IntPtr hSubmenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2202for (item = 0; item < cItems && !Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); item++) 2337while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 2368if (Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, i, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE)) 2402(IntPtr.Zero != UnsafeNativeMethods.GetSubMenu (_hmenu, 0)) && 2403Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, 0, NativeMethods.MF_BYPOSITION), NativeMethods.MF_BITMAP)) 2508int result = UnsafeNativeMethods.GetMenuItemID(_hmenu, _item); 2540int length = UnsafeNativeMethods.GetMenuString(_hmenu, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION); 2549if (UnsafeNativeMethods.GetMenuString(_hmenu, _item, strbldr, length + 1, NativeMethods.MF_BYPOSITION) == length) 2653int state = UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (9)
484if (UnsafeNativeMethods.AccessibleObjectFromWindow(WindowHandle, NativeMethods.OBJID_NATIVEOM, ref UnsafeNativeMethods.IID_IDispatch, ref obj) != NativeMethods.S_OK) 607UnsafeNativeMethods.FORMATETC fetc = new UnsafeNativeMethods.FORMATETC(); 614UnsafeNativeMethods.STGMEDIUM med = new UnsafeNativeMethods.STGMEDIUM(); 637IntPtr globalMem = UnsafeNativeMethods.GlobalLock(med.hGlobal); 665UnsafeNativeMethods.GlobalUnlock(med.hGlobal); 666UnsafeNativeMethods.ReleaseStgMedium(ref med);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (4)
348UnsafeNativeMethods.ENUMCHILDWINDOWFROMRECT info = new UnsafeNativeMethods.ENUMCHILDWINDOWFROMRECT(); 369UnsafeNativeMethods.ENUMCHILDWINDOWFROMRECT * info = (UnsafeNativeMethods.ENUMCHILDWINDOWFROMRECT *)lParam;
MS\Internal\AutomationProxies\WindowsSysHeader.cs (1)
590int cxBorder = 8 * UnsafeNativeMethods.GetSystemMetrics (NativeMethods.SM_CXBORDER);
MS\Internal\AutomationProxies\WindowsTab.cs (2)
258UnsafeNativeMethods.TCHITTESTINFO hti = new UnsafeNativeMethods.TCHITTESTINFO();
MS\Internal\AutomationProxies\WindowsTitleBar.cs (2)
198UnsafeNativeMethods.TITLEBARINFO ti; 219UnsafeNativeMethods.TITLEBARINFO ti;
MS\Internal\AutomationProxies\WindowsTooltip.cs (4)
172if (!UnsafeNativeMethods.IsWindow(hwnd)) 215UnsafeNativeMethods.DwmIsCompositionEnabled(out isDWMEnabled); 244IntPtr hwnd = UnsafeNativeMethods.WindowFromPhysicalPoint(pt.x, pt.y); 302IntPtr hwnd = UnsafeNativeMethods.WindowFromPhysicalPoint(pt.x, pt.y);
MS\Internal\AutomationProxies\WindowsTreeView.cs (5)
913return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero; 1570IntPtr address = UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr"); 1576int numStates = unchecked((int)UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapCount")); 1631return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero;
MS\Internal\AutomationProxies\WinEventTracker.cs (2)
225if (UnsafeNativeMethods.GetWindowThreadProcessId(hwnd, out processId) != 0) 250!UnsafeNativeMethods.IsWindow(hwnd))
MS\Win32\UnsafeNativeMethods.cs (1)
172internal static extern IntPtr SendMessageTimeout(IntPtr hwnd, int uMsg, IntPtr wParam, ref UnsafeNativeMethods.TITLEBARINFOEX lParam, int flags, int uTimeout, out IntPtr result);