308 references to NativeMethods
UIAutomationClient (308)
MS\Internal\Automation\Accessible.cs (1)
102return ProxyManager.GetClassName(NativeMethods.HWND.Cast(hwnd)) == szClass;
MS\Internal\Automation\BoundingRectTracker.cs (14)
36: base(new int[]{NativeMethods.EVENT_OBJECT_LOCATIONCHANGE, NativeMethods.EVENT_OBJECT_HIDE}) 61case NativeMethods.EVENT_OBJECT_HIDE: OnHide(hwnd, idObject, idChild); break; 62case NativeMethods.EVENT_OBJECT_LOCATIONCHANGE: OnLocationChange(hwnd, idObject, idChild); break; 87if (!SafeNativeMethods.IsWindowVisible(NativeMethods.HWND.Cast( hwnd ))) 95NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd ); 96NativeMethods.RECT rc32 = new NativeMethods.RECT(0,0,0,0); 138private static bool Compare( NativeMethods.RECT rc1, NativeMethods.RECT rc2 ) 157private static NativeMethods.RECT _emptyRect = new NativeMethods.RECT(0,0,0,0); 159private NativeMethods.RECT _lastRect; // keep track of last location
MS\Internal\Automation\ClickablePoint.cs (2)
44NativeMethods.RECT winRect = new NativeMethods.RECT((int)rect.Left, (int)rect.Top, (int)rect.Height, (int)rect.Bottom);
MS\Internal\Automation\ClientEventManager.cs (2)
610if ( rawEl != null && !HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( hwnd ) ) ) 665if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( hwnd ) ) )
MS\Internal\Automation\FocusTracker.cs (22)
60case NativeMethods.EVENT_OBJECT_FOCUS: OnEventObjectFocus(eventId, hwnd, idObject, idChild, eventTime); break; 61case NativeMethods.EVENT_SYSTEM_MENUSTART: OnEventSystemMenuStart(eventId, hwnd, idObject, idChild, eventTime); break; 62case NativeMethods.EVENT_SYSTEM_MENUEND: OnEventSystemMenuEnd(eventId, hwnd, idObject, idChild, eventTime); break; 63case NativeMethods.EVENT_SYSTEM_SWITCHSTART: OnEventSystemMenuStart(eventId, hwnd, idObject, idChild, eventTime); break; 64case NativeMethods.EVENT_SYSTEM_SWITCHEND: OnEventSystemMenuEnd(eventId, hwnd, idObject, idChild, eventTime); break; 65case NativeMethods.EVENT_OBJECT_DESTROY: OnEventObjectDestroy(eventId, hwnd, idObject, idChild, eventTime); break; 66case NativeMethods.EVENT_SYSTEM_MENUPOPUPSTART: OnEventSystemMenuPopupStart(eventId, hwnd, idObject, idChild, eventTime); break; 67case NativeMethods.EVENT_SYSTEM_CAPTURESTART: OnEventSystemCaptureStart(eventId, hwnd, idObject, idChild, eventTime); break; 68case NativeMethods.EVENT_SYSTEM_CAPTUREEND: OnEventSystemCaptureEnd(eventId, hwnd, idObject, idChild, eventTime); break; 141provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), idChild, UnsafeNativeMethods.OBJID_CLIENT); 170provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), idChild, idObject); 262if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(NativeMethods.HWND.Cast(hwndCur))) 302IntPtr i = Misc.SendMessageTimeout(NativeMethods.HWND.Cast(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero); 349NativeMethods.EVENT_OBJECT_FOCUS, 350NativeMethods.EVENT_SYSTEM_MENUSTART, 351NativeMethods.EVENT_SYSTEM_MENUPOPUPSTART, 352NativeMethods.EVENT_SYSTEM_MENUEND, 353NativeMethods.EVENT_OBJECT_DESTROY, 354NativeMethods.EVENT_SYSTEM_CAPTURESTART, 355NativeMethods.EVENT_SYSTEM_CAPTUREEND, 356NativeMethods.EVENT_SYSTEM_SWITCHSTART, 357NativeMethods.EVENT_SYSTEM_SWITCHEND
MS\Internal\Automation\HwndProxyElementProvider.cs (134)
54internal HwndProxyElementProvider( NativeMethods.HWND hwnd ) 56Debug.Assert( hwnd != NativeMethods.HWND.NULL ); 58if( hwnd == NativeMethods.HWND.NULL ) 253NativeMethods.RECT rcW32 = new NativeMethods.RECT(); 552NativeMethods.HWND hwndOwner = GetRealOwner( _hwnd ); 553if ( hwndOwner != NativeMethods.HWND.NULL ) 656NativeMethods.POINT point = new NativeMethods.POINT((int)x, (int)y); 657NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(NativeMethods.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT); 658if (!MapWindowPoints(NativeMethods.HWND.NULL, hwndParent, ref point, 1)) 666NativeMethods.RECT currentRect = new NativeMethods.RECT(); 690NativeMethods.RECT parentRect = new NativeMethods.RECT(); 713if (!Misc.SetWindowPos(_hwnd, NativeMethods.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE)) 750NativeMethods.RECT currentRect = new NativeMethods.RECT(); 808minMaxInfo.ptMaxSize = new NativeMethods.POINT( x, y ); 809minMaxInfo.ptMaxPosition = new NativeMethods.POINT(0, 0); 810minMaxInfo.ptMinTrackSize = new NativeMethods.POINT(1, 1); 811minMaxInfo.ptMaxTrackSize = new NativeMethods.POINT( x, y ); 973NativeMethods.HWND desktop = SafeNativeMethods.GetDesktopWindow(); 989unsafe private static bool GetMenuBarInfo(NativeMethods.HWND hwnd, int idObject, uint idItem, out UnsafeNativeMethods.MENUBARINFO mbi) 1023private static HwndProxyElementProvider Wrap(NativeMethods.HWND hwnd) 1025if( hwnd == NativeMethods.HWND.NULL ) 1035internal static bool IsWindowPatternWindow( NativeMethods.HWND hwnd ) 1080private static bool IsTransformPatternWindow( NativeMethods.HWND hwnd ) 1101internal static int[] MakeRuntimeId( NativeMethods.HWND hwnd ) 1154private static NativeMethods.HWND ScanVisible( NativeMethods.HWND hwnd, int dir, bool includeSelf, NativeMethods.HWND hwndOwnedBy ) 1156if( hwnd == NativeMethods.HWND.NULL ) 1164for( ; hwnd != NativeMethods.HWND.NULL ; hwnd = Misc.GetWindow( hwnd, dir ) ) 1171NativeMethods.HWND hwndOwner = GetRealOwner( hwnd ); 1184private NativeMethods.HWND GetFirstOrLastOwnedWindow( NativeMethods.HWND parent, bool wantFirst ) 1188return NativeMethods.HWND.NULL; 1191NativeMethods.HWND desktop = SafeNativeMethods.GetDesktopWindow(); 1192NativeMethods.HWND scan = Misc.GetWindow(desktop, SafeNativeMethods.GW_CHILD); 1215NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1220NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1221if (hwndOwner != NativeMethods.HWND.NULL) 1242NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1243if (hwndOwner != NativeMethods.HWND.NULL) 1246NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanNext, ExcludeSelf, hwndOwner); 1247if (hwnd == NativeMethods.HWND.NULL) 1251hwnd = ScanVisible(hwnd, ScanNext, IncludeSelf, NativeMethods.HWND.NULL); 1260NativeMethods.HWND next = ScanVisible(_hwnd, ScanNext, ExcludeSelf, NativeMethods.HWND.NULL); 1275NativeMethods.HWND hwndOwner = GetRealOwner(_hwnd); 1276if (hwndOwner != NativeMethods.HWND.NULL) 1280NativeMethods.HWND hwnd = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, hwndOwner); 1287NativeMethods.HWND prev = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, NativeMethods.HWND.NULL); 1288if (prev == NativeMethods.HWND.NULL) 1292NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT); 1313NativeMethods.HWND hwnd = GetFirstOrLastOwnedWindow(_hwnd, true); 1314if (hwnd == NativeMethods.HWND.NULL) 1318hwnd = ScanVisible(hwnd, ScanNext, IncludeSelf, NativeMethods.HWND.NULL); 1339NativeMethods.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD); 1340if (hwnd != NativeMethods.HWND.NULL) 1343hwnd = ScanVisible(hwnd, ScanPrev, IncludeSelf, NativeMethods.HWND.NULL); 1346if (hwnd == NativeMethods.HWND.NULL) 1358private static void GetAllUIFragmentRoots(NativeMethods.HWND hwnd, bool includeThis, ArrayList uiFragmentRoots) 1420for (NativeMethods.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD); 1421hChild != NativeMethods.HWND.NULL && --SanityLoopCount > 0; 1447private static bool IsWindowReallyEnabled( NativeMethods.HWND hwnd ) 1459if( hwnd == NativeMethods.HWND.NULL ) 1465private static bool IsWindowReallyVisible( NativeMethods.HWND hwnd ) 1474NativeMethods.RECT rcW32; 1496private static bool IsWindowCloaked(NativeMethods.HWND hwnd) 1511private static bool IsTopLevelWindow( NativeMethods.HWND hwnd ) 1516private static NativeMethods.HWND GetRealOwner( NativeMethods.HWND hwnd ) 1518NativeMethods.HWND hwndOwner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER); 1519if( hwndOwner == NativeMethods.HWND.NULL ) 1521return NativeMethods.HWND.NULL; 1528return NativeMethods.HWND.NULL; 1599private bool EnumWindows( NativeMethods.HWND hwnd, NativeMethods.HWND possibleOwner ) 1604NativeMethods.HWND owner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER); 1659private static HwndProxyElementProvider ElementProviderFromPoint(NativeMethods.HWND current, double x, double y) 1668NativeMethods.HWND child = NativeMethods.HWND.NULL; 1675if (child == NativeMethods.HWND.NULL) 1701private static bool PtInRect( NativeMethods.RECT rc, double x, double y ) 1707private static bool Rect1InRect2( NativeMethods.RECT rc1, NativeMethods.RECT rc2 ) 1725private static NativeMethods.HWND ChildWindowFromPoint( NativeMethods.HWND hwnd, double x, double y, out bool isClientArea ) 1727NativeMethods.HWND hBestFitTransparent = NativeMethods.HWND.NULL; 1728NativeMethods.RECT rcBest = new NativeMethods.RECT(); 1734return NativeMethods.HWND.NULL; 1740for (NativeMethods.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD); 1741hChild != NativeMethods.HWND.NULL && --SanityLoopCount > 0 ; 1749NativeMethods.RECT rc = new NativeMethods.RECT(); 1761NativeMethods.HWND hwndTopLevel = SafeNativeMethods.GetAncestor(hChild, SafeNativeMethods.GA_ROOT); 1762NativeMethods.POINT pt = new NativeMethods.POINT((int)x, (int)y); 1841if( hBestFitTransparent == NativeMethods.HWND.NULL ) 1853NativeMethods.RECT rcChild = new NativeMethods.RECT(); 1872NativeMethods.RECT rcClient = new NativeMethods.RECT(); 1874!MapWindowPoints(hChild, NativeMethods.HWND.NULL, ref rcClient, 2) || 1889return NativeMethods.HWND.NULL; 1894if( hBestFitTransparent != NativeMethods.HWND.NULL ) 1903private static bool IsProgmanWindow(NativeMethods.HWND hwnd) 1905while (hwnd != NativeMethods.HWND.NULL) 1917private static bool MapWindowPoints(NativeMethods.HWND hWndFrom, NativeMethods.HWND hWndTo, ref NativeMethods.RECT rect, int cPoints) 1925if ((IsProgmanWindow(hWndFrom) && hWndTo == NativeMethods.HWND.NULL) || 1926(hWndFrom == NativeMethods.HWND.NULL && IsProgmanWindow(hWndTo))) 1942private static bool MapWindowPoints(NativeMethods.HWND hWndFrom, NativeMethods.HWND hWndTo, ref NativeMethods.POINT pt, int cPoints) 1950if ((IsProgmanWindow(hWndFrom) && hWndTo == NativeMethods.HWND.NULL) || 1951(hWndFrom == NativeMethods.HWND.NULL && IsProgmanWindow(hWndTo))) 1971private static int GetWindowStyle(NativeMethods.HWND hwnd) 1982private static int GetWindowExStyle(NativeMethods.HWND hwnd) 1991private static bool SetFocus( NativeMethods.HWND hwnd ) 2004NativeMethods.HWND parent = SafeNativeMethods.GetAncestor(hwnd, SafeNativeMethods.GA_PARENT); 2026if( Misc.RegisterHotKey( NativeMethods.HWND.NULL, atom, 0, vk ) ) 2069if (Misc.GetMessage(ref msg, NativeMethods.HWND.NULL, 0, 0) == 0) 2091Misc.UnregisterHotKey(NativeMethods.HWND.NULL, atom); 2101private static NativeMethods.HWND GetFocusedWindow() 2107return NativeMethods.HWND.NULL; 2156private NativeMethods.HWND _hwnd;
MS\Internal\Automation\MenuTracker.cs (5)
38: base(new int[] {NativeMethods.EVENT_SYSTEM_MENUPOPUPSTART, NativeMethods.EVENT_SYSTEM_MENUPOPUPEND}) 57bool menuHasOpened = eventId == NativeMethods.EVENT_SYSTEM_MENUPOPUPSTART; 70NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );
MS\Internal\Automation\Misc.cs (22)
345internal static bool GetClientRect(NativeMethods.HWND hwnd, out NativeMethods.RECT rc) 380internal static bool GetMenuBarInfo(NativeMethods.HWND hwnd, int idObject, uint item, ref UnsafeNativeMethods.MENUBARINFO mbi) 406internal static int GetMessage(ref UnsafeNativeMethods.MSG msg, NativeMethods.HWND hwnd, int nMsgFilterMin, int nMsgFilterMax) 419internal static NativeMethods.HWND GetWindow(NativeMethods.HWND hwnd, int uCmd) 421NativeMethods.HWND result = NativeMethodsSetLastError.GetWindow(hwnd, uCmd); 424if (result == NativeMethods.HWND.NULL) 433internal static int GetWindowLong(NativeMethods.HWND hWnd, int nIndex) 462internal static bool GetWindowPlacement(NativeMethods.HWND hwnd, ref UnsafeNativeMethods.WINDOWPLACEMENT wp) 475internal static bool GetWindowRect(NativeMethods.HWND hwnd, out NativeMethods.RECT rc) 550internal static IntPtr OpenProcess(int dwDesiredAccess, bool fInherit, int dwProcessId, NativeMethods.HWND hwnd) 580internal static bool PostMessage(NativeMethods.HWND hWnd, int nMsg, IntPtr wParam, IntPtr lParam) 593internal static bool RegisterHotKey(NativeMethods.HWND hWnd, int id, int fsModifiers, int vk) 619internal static IntPtr SendMessageTimeout(NativeMethods.HWND hwnd, int Msg, IntPtr wParam, IntPtr lParam) 636internal static IntPtr SendMessageTimeout(NativeMethods.HWND hwnd, int Msg, IntPtr wParam, ref UnsafeNativeMethods.MINMAXINFO lParam) 653internal static IntPtr SendMessageTimeout(NativeMethods.HWND hwnd, int Msg, IntPtr wParam, StringBuilder lParam) 671internal static bool SetWindowPlacement(NativeMethods.HWND hwnd, ref UnsafeNativeMethods.WINDOWPLACEMENT wp) 684internal static bool SetWindowPos(NativeMethods.HWND hWnd, NativeMethods.HWND hWndInsertAfter, int x, int y, int cx, int cy, int flags) 697internal static bool UnregisterHotKey(NativeMethods.HWND hWnd, int id)
MS\Internal\Automation\ProxyManager.cs (18)
236internal static string GetClassName( NativeMethods.HWND hwnd ) 238StringBuilder str = new StringBuilder( NativeMethods.MAX_PATH ); 240int result = SafeNativeMethods.GetClassName(hwnd, str, NativeMethods.MAX_PATH); 250internal static string RealGetWindowClass( NativeMethods.HWND hwnd ) 252StringBuilder str = new StringBuilder( NativeMethods.MAX_PATH ); 254int result = SafeNativeMethods.RealGetWindowClass(hwnd, str, NativeMethods.MAX_PATH); 276internal static bool IsKnownBadWindow( NativeMethods.HWND hwnd ) 296NativeMethods.HWND hwndParent = SafeNativeMethods.GetAncestor(hwnd, SafeNativeMethods.GA_PARENT); 297if (hwndParent != NativeMethods.HWND.NULL) 312internal static string GetImageName( NativeMethods.HWND hwnd ) 320StringBuilder sb = new StringBuilder(NativeMethods.MAX_PATH); 328if (Misc.GetModuleFileNameEx(processHandle, (IntPtr)instance, sb, NativeMethods.MAX_PATH) == 0) 475internal static IRawElementProviderSimple ProxyProviderFromHwnd(NativeMethods.HWND hwnd, int idChild, int idObject) 498if (hwnd == NativeMethods.HWND.NULL) 562static private IRawElementProviderSimple FindProxyFromImageFallback(ref string imageName, NativeMethods.HWND hwnd, int idChild, int idObject) 597static private IRawElementProviderSimple FindProxyInEntryOrArrayList(ProxyScoping findType, object entryOrArrayList, ref string imageName, NativeMethods.HWND hwnd, int idChild, int idObject, string classNameForPartialMatch) 642static private IRawElementProviderSimple GetProxyFromEntry(ProxyScoping findType, object entry, ref string imageName, NativeMethods.HWND hwnd, int idChild, int idObject, string classNameForPartialMatch) 799private static string GetBaseClassName( NativeMethods.HWND hwnd )
MS\Internal\Automation\QueueProcessor.cs (1)
134while (UnsafeNativeMethods.PeekMessage(ref msg, NativeMethods.HWND.NULL, 0, 0, UnsafeNativeMethods.PM_REMOVE))
MS\Internal\Automation\SafeProcessHandle.cs (1)
34internal SafeProcessHandle(NativeMethods.HWND hwnd) : base(true)
MS\Internal\Automation\UiaCoreAPI.cs (2)
1569provider = new HwndProxyElementProvider(NativeMethods.HWND.Cast(hwnd)); 1573provider = ProxyManager.ProxyProviderFromHwnd(NativeMethods.HWND.Cast(hwnd), 0, UnsafeNativeMethods.OBJID_CLIENT);
MS\Internal\Automation\WindowHideOrCloseTracker.cs (6)
42{NativeMethods.EVENT_OBJECT_DESTROY, NativeMethods.EVENT_OBJECT_HIDE}) 68NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd ); 72if (eventId == NativeMethods.EVENT_OBJECT_HIDE && !SafeNativeMethods.IsWindow( nativeHwnd )) 80if (eventId == NativeMethods.EVENT_OBJECT_DESTROY)
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
38: base(new int[] { NativeMethods.EVENT_OBJECT_STATECHANGE }) 85NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast(hwnd);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (6)
44{NativeMethods.EventObjectUIFragmentCreate, NativeMethods.EVENT_OBJECT_CREATE, NativeMethods.EVENT_OBJECT_SHOW}) 70NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd ); 81if (eventId == NativeMethods.EVENT_OBJECT_CREATE)
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
35: base(new int[] { NativeMethods.EVENT_OBJECT_LOCATIONCHANGE }) 82NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast(hwnd);
MS\Internal\Automation\WinEventWrap.cs (3)
265_winEventProc = new NativeMethods.WinEventProcDef(WinEventReentrancyFilter); 270_fFlags = NativeMethods.WINEVENT_OUTOFCONTEXT; 307private NativeMethods.WinEventProcDef _winEventProc; // the callback handed to USER for WinEvents
MS\Win32\SafeNativeMethods.cs (29)
36public static extern int GetWindowThreadProcessId( NativeMethods.HWND hWnd, out int lpdwProcessId); 74public NativeMethods.HWND hwndActive; 75public NativeMethods.HWND hwndFocus; 76public NativeMethods.HWND hwndCapture; 77public NativeMethods.HWND hwndMenuOwner; 78public NativeMethods.HWND hwndMoveSize; 79public NativeMethods.HWND hwndCaret; 80public NativeMethods.RECT rc; 127public static extern NativeMethods.HWND GetAncestor( NativeMethods.HWND hwnd, int gaFlags ); 137public static extern NativeMethods.HWND GetDesktopWindow(); 143public delegate bool EnumThreadWndProc( NativeMethods.HWND hwnd, NativeMethods.HWND lParam); 151public static extern bool GetClientRect( NativeMethods.HWND hwnd, out NativeMethods.RECT rc ); 154public static extern bool GetWindowRect( NativeMethods.HWND hwnd, out NativeMethods.RECT rc ); 157public static extern bool IsWindow( NativeMethods.HWND hwnd ); 160public static extern bool IsWindowEnabled( NativeMethods.HWND hwnd ); 163public static extern bool IsWindowVisible( NativeMethods.HWND hwnd ); 166public static extern bool IsIconic(NativeMethods.HWND hwnd); 169public static extern int GetClassName( NativeMethods.HWND hWnd, StringBuilder classname, int nMax ); 172public static extern int RealGetWindowClass( NativeMethods.HWND hWnd, StringBuilder classname, int nMax ); 175internal extern static bool IsChild( NativeMethods.HWND parent, NativeMethods.HWND child ); 181NativeMethods.HWND hwnd, 221public static extern IntPtr MonitorFromRect( ref NativeMethods.RECT rect, int dwFlags ); 227public static extern bool PhysicalToLogicalPoint(NativeMethods.HWND hwnd, ref NativeMethods.POINT pt);
MS\Win32\UnsafeNativeMethods.cs (25)
122public static extern bool RegisterHotKey( NativeMethods.HWND hWnd, int id, int fsModifiers, int vk ); 125public static extern bool UnregisterHotKey( NativeMethods.HWND hWnd, int id ); 133public static extern void SwitchToThisWindow(NativeMethods.HWND hwnd, bool fAltTab); 164internal static extern IntPtr SetWinEventHook(int eventMin, int eventMax, IntPtr hmodWinEventProc, NativeMethods.WinEventProcDef WinEventReentrancyFilter, uint idProcess, uint idThread, int dwFlags); 204NativeMethods.HWND hwnd, int Msg, IntPtr wParam, IntPtr lParam, int flags, int uTimeout, out IntPtr pResult ); 208NativeMethods.HWND hwnd, int Msg, IntPtr wParam, ref MINMAXINFO lParam, int flags, int uTimeout, out IntPtr pResult ); 214NativeMethods.HWND hwnd, int Msg, IntPtr wParam, StringBuilder lParam, int flags, int uTimeout, out IntPtr pResult); 222public NativeMethods.HWND hwnd; 234ref MSG msg, NativeMethods.HWND hwnd, int nMsgFilterMin, int nMsgFilterMax); 238ref MSG msg, NativeMethods.HWND hwnd, int nMsgFilterMin, int nMsgFilterMax, int wRemoveMsg); 250NativeMethods.HWND hWnd, int nMsg, IntPtr wParam, IntPtr lParam); 266public NativeMethods.POINT ptReserved; 267public NativeMethods.POINT ptMaxSize; 268public NativeMethods.POINT ptMaxPosition; 269public NativeMethods.POINT ptMinTrackSize; 270public NativeMethods.POINT ptMaxTrackSize; 335public NativeMethods.POINT ptMinPosition; 336public NativeMethods.POINT ptMaxPosition; 337public NativeMethods.RECT rcNormalPosition; 341public static extern bool SetWindowPlacement( NativeMethods.HWND hwnd, ref WINDOWPLACEMENT wp ); 344public static extern bool GetWindowPlacement( NativeMethods.HWND hwnd, ref WINDOWPLACEMENT wp ); 351internal static extern bool SetWindowPos(NativeMethods.HWND hWnd, NativeMethods.HWND hWndInsertAfter, int x, int y, int cx, int cy, int flags); 366internal NativeMethods.RECT rcBar; 368internal NativeMethods.HWND hwndMenu;
parent\parent\Shared\MS\Win32\NativeMethodsSetLastError.cs (8)
76public static extern NativeMethods.HWND GetWindow(NativeMethods.HWND hWnd, int uCmd); 79public static extern int MapWindowPoints(NativeMethods.HWND hWndFrom, NativeMethods.HWND hWndTo, [In, Out] ref NativeMethods.RECT rect, int cPoints); 82public static extern int MapWindowPoints(NativeMethods.HWND hWndFrom, NativeMethods.HWND hWndTo, [In, Out] ref NativeMethods.POINT pt, int cPoints);
System\Windows\Automation\Automation.cs (1)
201if ( HwndProxyElementProvider.IsWindowPatternWindow( NativeMethods.HWND.Cast( new IntPtr( (int)val ) ) ) )