308 references to NativeMethods
UIAutomationClient (308)
MS\Internal\Automation\Accessible.cs (1)
83
return ProxyManager.GetClassName(
NativeMethods
.HWND.Cast(hwnd)) == szClass;
MS\Internal\Automation\BoundingRectTracker.cs (14)
26
: base(new int[]{
NativeMethods
.EVENT_OBJECT_LOCATIONCHANGE,
NativeMethods
.EVENT_OBJECT_HIDE})
51
case
NativeMethods
.EVENT_OBJECT_HIDE: OnHide(hwnd, idObject, idChild); break;
52
case
NativeMethods
.EVENT_OBJECT_LOCATIONCHANGE: OnLocationChange(hwnd, idObject, idChild); break;
77
if (!SafeNativeMethods.IsWindowVisible(
NativeMethods
.HWND.Cast( hwnd )))
85
NativeMethods
.HWND nativeHwnd =
NativeMethods
.HWND.Cast( hwnd );
86
NativeMethods
.RECT rc32 = new
NativeMethods
.RECT(0,0,0,0);
128
private static bool Compare(
NativeMethods
.RECT rc1,
NativeMethods
.RECT rc2 )
147
private static
NativeMethods
.RECT _emptyRect = new
NativeMethods
.RECT(0,0,0,0);
149
private
NativeMethods
.RECT _lastRect; // keep track of last location
MS\Internal\Automation\ClickablePoint.cs (2)
33
NativeMethods
.RECT winRect = new
NativeMethods
.RECT((int)rect.Left, (int)rect.Top, (int)rect.Height, (int)rect.Bottom);
MS\Internal\Automation\ClientEventManager.cs (2)
593
if ( rawEl != null && !HwndProxyElementProvider.IsWindowPatternWindow(
NativeMethods
.HWND.Cast( hwnd ) ) )
647
if ( HwndProxyElementProvider.IsWindowPatternWindow(
NativeMethods
.HWND.Cast( hwnd ) ) )
MS\Internal\Automation\FocusTracker.cs (22)
52
case
NativeMethods
.EVENT_OBJECT_FOCUS: OnEventObjectFocus(eventId, hwnd, idObject, idChild, eventTime); break;
53
case
NativeMethods
.EVENT_SYSTEM_MENUSTART: OnEventSystemMenuStart(eventId, hwnd, idObject, idChild, eventTime); break;
54
case
NativeMethods
.EVENT_SYSTEM_MENUEND: OnEventSystemMenuEnd(eventId, hwnd, idObject, idChild, eventTime); break;
55
case
NativeMethods
.EVENT_SYSTEM_SWITCHSTART: OnEventSystemMenuStart(eventId, hwnd, idObject, idChild, eventTime); break;
56
case
NativeMethods
.EVENT_SYSTEM_SWITCHEND: OnEventSystemMenuEnd(eventId, hwnd, idObject, idChild, eventTime); break;
57
case
NativeMethods
.EVENT_OBJECT_DESTROY: OnEventObjectDestroy(eventId, hwnd, idObject, idChild, eventTime); break;
58
case
NativeMethods
.EVENT_SYSTEM_MENUPOPUPSTART: OnEventSystemMenuPopupStart(eventId, hwnd, idObject, idChild, eventTime); break;
59
case
NativeMethods
.EVENT_SYSTEM_CAPTURESTART: OnEventSystemCaptureStart(eventId, hwnd, idObject, idChild, eventTime); break;
60
case
NativeMethods
.EVENT_SYSTEM_CAPTUREEND: OnEventSystemCaptureEnd(eventId, hwnd, idObject, idChild, eventTime); break;
133
provider = ProxyManager.ProxyProviderFromHwnd(
NativeMethods
.HWND.Cast(hwnd), idChild, UnsafeNativeMethods.OBJID_CLIENT);
162
provider = ProxyManager.ProxyProviderFromHwnd(
NativeMethods
.HWND.Cast(hwnd), idChild, idObject);
254
if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(
NativeMethods
.HWND.Cast(hwndCur)))
294
IntPtr i = Misc.SendMessageTimeout(
NativeMethods
.HWND.Cast(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
341
NativeMethods
.EVENT_OBJECT_FOCUS,
342
NativeMethods
.EVENT_SYSTEM_MENUSTART,
343
NativeMethods
.EVENT_SYSTEM_MENUPOPUPSTART,
344
NativeMethods
.EVENT_SYSTEM_MENUEND,
345
NativeMethods
.EVENT_OBJECT_DESTROY,
346
NativeMethods
.EVENT_SYSTEM_CAPTURESTART,
347
NativeMethods
.EVENT_SYSTEM_CAPTUREEND,
348
NativeMethods
.EVENT_SYSTEM_SWITCHSTART,
349
NativeMethods
.EVENT_SYSTEM_SWITCHEND
MS\Internal\Automation\HwndProxyElementProvider.cs (134)
38
internal HwndProxyElementProvider(
NativeMethods
.HWND hwnd )
40
Debug.Assert( hwnd !=
NativeMethods
.HWND.NULL );
42
if( hwnd ==
NativeMethods
.HWND.NULL )
236
NativeMethods
.RECT rcW32 = new
NativeMethods
.RECT();
531
NativeMethods
.HWND hwndOwner = GetRealOwner( _hwnd );
532
if ( hwndOwner !=
NativeMethods
.HWND.NULL )
633
NativeMethods
.POINT point = new
NativeMethods
.POINT((int)x, (int)y);
634
NativeMethods
.HWND hwndParent = SafeNativeMethods.GetAncestor(
NativeMethods
.HWND.Cast(_hwnd), SafeNativeMethods.GA_PARENT);
635
if (!MapWindowPoints(
NativeMethods
.HWND.NULL, hwndParent, ref point, 1))
643
NativeMethods
.RECT currentRect = new
NativeMethods
.RECT();
667
NativeMethods
.RECT parentRect = new
NativeMethods
.RECT();
690
if (!Misc.SetWindowPos(_hwnd,
NativeMethods
.HWND.NULL, (int)x, (int)y, 0, 0, UnsafeNativeMethods.SWP_NOSIZE | UnsafeNativeMethods.SWP_NOZORDER | UnsafeNativeMethods.SWP_NOACTIVATE))
729
NativeMethods
.RECT currentRect = new
NativeMethods
.RECT();
786
minMaxInfo.ptMaxSize = new
NativeMethods
.POINT( x, y );
787
minMaxInfo.ptMaxPosition = new
NativeMethods
.POINT(0, 0);
788
minMaxInfo.ptMinTrackSize = new
NativeMethods
.POINT(1, 1);
789
minMaxInfo.ptMaxTrackSize = new
NativeMethods
.POINT( x, y );
951
NativeMethods
.HWND desktop = SafeNativeMethods.GetDesktopWindow();
967
unsafe private static bool GetMenuBarInfo(
NativeMethods
.HWND hwnd, int idObject, uint idItem, out UnsafeNativeMethods.MENUBARINFO mbi)
1003
private static HwndProxyElementProvider Wrap(
NativeMethods
.HWND hwnd)
1005
if( hwnd ==
NativeMethods
.HWND.NULL )
1015
internal static bool IsWindowPatternWindow(
NativeMethods
.HWND hwnd )
1060
private static bool IsTransformPatternWindow(
NativeMethods
.HWND hwnd )
1081
internal static int[] MakeRuntimeId(
NativeMethods
.HWND hwnd )
1134
private static
NativeMethods
.HWND ScanVisible(
NativeMethods
.HWND hwnd, int dir, bool includeSelf,
NativeMethods
.HWND hwndOwnedBy )
1136
if( hwnd ==
NativeMethods
.HWND.NULL )
1144
for( ; hwnd !=
NativeMethods
.HWND.NULL ; hwnd = Misc.GetWindow( hwnd, dir ) )
1151
NativeMethods
.HWND hwndOwner = GetRealOwner( hwnd );
1164
private
NativeMethods
.HWND GetFirstOrLastOwnedWindow(
NativeMethods
.HWND parent, bool wantFirst )
1168
return
NativeMethods
.HWND.NULL;
1171
NativeMethods
.HWND desktop = SafeNativeMethods.GetDesktopWindow();
1172
NativeMethods
.HWND scan = Misc.GetWindow(desktop, SafeNativeMethods.GW_CHILD);
1195
NativeMethods
.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT);
1200
NativeMethods
.HWND hwndOwner = GetRealOwner(_hwnd);
1201
if (hwndOwner !=
NativeMethods
.HWND.NULL)
1222
NativeMethods
.HWND hwndOwner = GetRealOwner(_hwnd);
1223
if (hwndOwner !=
NativeMethods
.HWND.NULL)
1226
NativeMethods
.HWND hwnd = ScanVisible(_hwnd, ScanNext, ExcludeSelf, hwndOwner);
1227
if (hwnd ==
NativeMethods
.HWND.NULL)
1231
hwnd = ScanVisible(hwnd, ScanNext, IncludeSelf,
NativeMethods
.HWND.NULL);
1240
NativeMethods
.HWND next = ScanVisible(_hwnd, ScanNext, ExcludeSelf,
NativeMethods
.HWND.NULL);
1255
NativeMethods
.HWND hwndOwner = GetRealOwner(_hwnd);
1256
if (hwndOwner !=
NativeMethods
.HWND.NULL)
1260
NativeMethods
.HWND hwnd = ScanVisible(_hwnd, ScanPrev, ExcludeSelf, hwndOwner);
1267
NativeMethods
.HWND prev = ScanVisible(_hwnd, ScanPrev, ExcludeSelf,
NativeMethods
.HWND.NULL);
1268
if (prev ==
NativeMethods
.HWND.NULL)
1272
NativeMethods
.HWND parent = SafeNativeMethods.GetAncestor(_hwnd, SafeNativeMethods.GA_PARENT);
1293
NativeMethods
.HWND hwnd = GetFirstOrLastOwnedWindow(_hwnd, true);
1294
if (hwnd ==
NativeMethods
.HWND.NULL)
1298
hwnd = ScanVisible(hwnd, ScanNext, IncludeSelf,
NativeMethods
.HWND.NULL);
1319
NativeMethods
.HWND hwnd = Misc.GetWindow(_hwnd, SafeNativeMethods.GW_CHILD);
1320
if (hwnd !=
NativeMethods
.HWND.NULL)
1323
hwnd = ScanVisible(hwnd, ScanPrev, IncludeSelf,
NativeMethods
.HWND.NULL);
1326
if (hwnd ==
NativeMethods
.HWND.NULL)
1338
private static void GetAllUIFragmentRoots(
NativeMethods
.HWND hwnd, bool includeThis, ArrayList uiFragmentRoots)
1400
for (
NativeMethods
.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD);
1401
hChild !=
NativeMethods
.HWND.NULL && --SanityLoopCount > 0;
1424
private static bool IsWindowReallyEnabled(
NativeMethods
.HWND hwnd )
1436
if( hwnd ==
NativeMethods
.HWND.NULL )
1442
private static bool IsWindowReallyVisible(
NativeMethods
.HWND hwnd )
1465
NativeMethods
.RECT rcW32;
1487
private static bool IsWindowCloaked(
NativeMethods
.HWND hwnd)
1502
private static bool IsTopLevelWindow(
NativeMethods
.HWND hwnd )
1507
private static
NativeMethods
.HWND GetRealOwner(
NativeMethods
.HWND hwnd )
1509
NativeMethods
.HWND hwndOwner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER);
1510
if( hwndOwner ==
NativeMethods
.HWND.NULL )
1512
return
NativeMethods
.HWND.NULL;
1519
return
NativeMethods
.HWND.NULL;
1588
private bool EnumWindows(
NativeMethods
.HWND hwnd,
NativeMethods
.HWND possibleOwner )
1593
NativeMethods
.HWND owner = Misc.GetWindow(hwnd, SafeNativeMethods.GW_OWNER);
1648
private static HwndProxyElementProvider ElementProviderFromPoint(
NativeMethods
.HWND current, double x, double y)
1657
NativeMethods
.HWND child =
NativeMethods
.HWND.NULL;
1664
if (child ==
NativeMethods
.HWND.NULL)
1690
private static bool PtInRect(
NativeMethods
.RECT rc, double x, double y )
1696
private static bool Rect1InRect2(
NativeMethods
.RECT rc1,
NativeMethods
.RECT rc2 )
1714
private static
NativeMethods
.HWND ChildWindowFromPoint(
NativeMethods
.HWND hwnd, double x, double y, out bool isClientArea )
1716
NativeMethods
.HWND hBestFitTransparent =
NativeMethods
.HWND.NULL;
1717
NativeMethods
.RECT rcBest = new
NativeMethods
.RECT();
1723
return
NativeMethods
.HWND.NULL;
1729
for (
NativeMethods
.HWND hChild = Misc.GetWindow(hwnd, SafeNativeMethods.GW_CHILD);
1730
hChild !=
NativeMethods
.HWND.NULL && --SanityLoopCount > 0 ;
1738
NativeMethods
.RECT rc = new
NativeMethods
.RECT();
1750
NativeMethods
.HWND hwndTopLevel = SafeNativeMethods.GetAncestor(hChild, SafeNativeMethods.GA_ROOT);
1751
NativeMethods
.POINT pt = new
NativeMethods
.POINT((int)x, (int)y);
1830
if( hBestFitTransparent ==
NativeMethods
.HWND.NULL )
1842
NativeMethods
.RECT rcChild = new
NativeMethods
.RECT();
1861
NativeMethods
.RECT rcClient = new
NativeMethods
.RECT();
1863
!MapWindowPoints(hChild,
NativeMethods
.HWND.NULL, ref rcClient, 2) ||
1878
return
NativeMethods
.HWND.NULL;
1883
if( hBestFitTransparent !=
NativeMethods
.HWND.NULL )
1892
private static bool IsProgmanWindow(
NativeMethods
.HWND hwnd)
1894
while (hwnd !=
NativeMethods
.HWND.NULL)
1906
private static bool MapWindowPoints(
NativeMethods
.HWND hWndFrom,
NativeMethods
.HWND hWndTo, ref
NativeMethods
.RECT rect, int cPoints)
1914
if ((IsProgmanWindow(hWndFrom) && hWndTo ==
NativeMethods
.HWND.NULL) ||
1915
(hWndFrom ==
NativeMethods
.HWND.NULL && IsProgmanWindow(hWndTo)))
1931
private static bool MapWindowPoints(
NativeMethods
.HWND hWndFrom,
NativeMethods
.HWND hWndTo, ref
NativeMethods
.POINT pt, int cPoints)
1939
if ((IsProgmanWindow(hWndFrom) && hWndTo ==
NativeMethods
.HWND.NULL) ||
1940
(hWndFrom ==
NativeMethods
.HWND.NULL && IsProgmanWindow(hWndTo)))
1960
private static int GetWindowStyle(
NativeMethods
.HWND hwnd)
1971
private static int GetWindowExStyle(
NativeMethods
.HWND hwnd)
1980
private static bool SetFocus(
NativeMethods
.HWND hwnd )
1993
NativeMethods
.HWND parent = SafeNativeMethods.GetAncestor(hwnd, SafeNativeMethods.GA_PARENT);
2015
if( Misc.RegisterHotKey(
NativeMethods
.HWND.NULL, atom, 0, vk ) )
2058
if (Misc.GetMessage(ref msg,
NativeMethods
.HWND.NULL, 0, 0) == 0)
2077
Misc.UnregisterHotKey(
NativeMethods
.HWND.NULL, atom);
2087
private static
NativeMethods
.HWND GetFocusedWindow()
2093
return
NativeMethods
.HWND.NULL;
2142
private
NativeMethods
.HWND _hwnd;
MS\Internal\Automation\MenuTracker.cs (5)
28
: base(new int[] {
NativeMethods
.EVENT_SYSTEM_MENUPOPUPSTART,
NativeMethods
.EVENT_SYSTEM_MENUPOPUPEND})
47
bool menuHasOpened = eventId ==
NativeMethods
.EVENT_SYSTEM_MENUPOPUPSTART;
60
NativeMethods
.HWND nativeHwnd =
NativeMethods
.HWND.Cast( hwnd );
MS\Internal\Automation\Misc.cs (22)
309
internal static bool GetClientRect(
NativeMethods
.HWND hwnd, out
NativeMethods
.RECT rc)
344
internal static bool GetMenuBarInfo(
NativeMethods
.HWND hwnd, int idObject, uint item, ref UnsafeNativeMethods.MENUBARINFO mbi)
370
internal static int GetMessage(ref UnsafeNativeMethods.MSG msg,
NativeMethods
.HWND hwnd, int nMsgFilterMin, int nMsgFilterMax)
383
internal static
NativeMethods
.HWND GetWindow(
NativeMethods
.HWND hwnd, int uCmd)
385
NativeMethods
.HWND result = NativeMethodsSetLastError.GetWindow(hwnd, uCmd);
388
if (result ==
NativeMethods
.HWND.NULL)
396
internal static int GetWindowLong(
NativeMethods
.HWND hWnd, int nIndex)
425
internal static bool GetWindowPlacement(
NativeMethods
.HWND hwnd, ref UnsafeNativeMethods.WINDOWPLACEMENT wp)
438
internal static bool GetWindowRect(
NativeMethods
.HWND hwnd, out
NativeMethods
.RECT rc)
511
internal static IntPtr OpenProcess(int dwDesiredAccess, bool fInherit, int dwProcessId,
NativeMethods
.HWND hwnd)
541
internal static bool PostMessage(
NativeMethods
.HWND hWnd, int nMsg, IntPtr wParam, IntPtr lParam)
554
internal static bool RegisterHotKey(
NativeMethods
.HWND hWnd, int id, int fsModifiers, int vk)
580
internal static IntPtr SendMessageTimeout(
NativeMethods
.HWND hwnd, int Msg, IntPtr wParam, IntPtr lParam)
597
internal static IntPtr SendMessageTimeout(
NativeMethods
.HWND hwnd, int Msg, IntPtr wParam, ref UnsafeNativeMethods.MINMAXINFO lParam)
614
internal static IntPtr SendMessageTimeout(
NativeMethods
.HWND hwnd, int Msg, IntPtr wParam, StringBuilder lParam)
632
internal static bool SetWindowPlacement(
NativeMethods
.HWND hwnd, ref UnsafeNativeMethods.WINDOWPLACEMENT wp)
645
internal static bool SetWindowPos(
NativeMethods
.HWND hWnd,
NativeMethods
.HWND hWndInsertAfter, int x, int y, int cx, int cy, int flags)
658
internal static bool UnregisterHotKey(
NativeMethods
.HWND hWnd, int id)
MS\Internal\Automation\ProxyManager.cs (18)
220
internal static string GetClassName(
NativeMethods
.HWND hwnd )
222
StringBuilder str = new StringBuilder(
NativeMethods
.MAX_PATH );
224
int result = SafeNativeMethods.GetClassName(hwnd, str,
NativeMethods
.MAX_PATH);
234
internal static string RealGetWindowClass(
NativeMethods
.HWND hwnd )
236
StringBuilder str = new StringBuilder(
NativeMethods
.MAX_PATH );
238
int result = SafeNativeMethods.RealGetWindowClass(hwnd, str,
NativeMethods
.MAX_PATH);
260
internal static bool IsKnownBadWindow(
NativeMethods
.HWND hwnd )
280
NativeMethods
.HWND hwndParent = SafeNativeMethods.GetAncestor(hwnd, SafeNativeMethods.GA_PARENT);
281
if (hwndParent !=
NativeMethods
.HWND.NULL)
296
internal static string GetImageName(
NativeMethods
.HWND hwnd )
304
StringBuilder sb = new StringBuilder(
NativeMethods
.MAX_PATH);
312
if (Misc.GetModuleFileNameEx(processHandle, (IntPtr)instance, sb,
NativeMethods
.MAX_PATH) == 0)
461
internal static IRawElementProviderSimple ProxyProviderFromHwnd(
NativeMethods
.HWND hwnd, int idChild, int idObject)
484
if (hwnd ==
NativeMethods
.HWND.NULL)
548
static private IRawElementProviderSimple FindProxyFromImageFallback(ref string imageName,
NativeMethods
.HWND hwnd, int idChild, int idObject)
581
static private IRawElementProviderSimple FindProxyInEntryOrArrayList(ProxyScoping findType, object entryOrArrayList, ref string imageName,
NativeMethods
.HWND hwnd, int idChild, int idObject, string classNameForPartialMatch)
626
static private IRawElementProviderSimple GetProxyFromEntry(ProxyScoping findType, object entry, ref string imageName,
NativeMethods
.HWND hwnd, int idChild, int idObject, string classNameForPartialMatch)
782
private static string GetBaseClassName(
NativeMethods
.HWND hwnd )
MS\Internal\Automation\QueueProcessor.cs (1)
120
while (UnsafeNativeMethods.PeekMessage(ref msg,
NativeMethods
.HWND.NULL, 0, 0, UnsafeNativeMethods.PM_REMOVE))
MS\Internal\Automation\SafeProcessHandle.cs (1)
18
internal SafeProcessHandle(
NativeMethods
.HWND hwnd) : base(true)
MS\Internal\Automation\UiaCoreApi.cs (2)
1574
provider = new HwndProxyElementProvider(
NativeMethods
.HWND.Cast(hwnd));
1578
provider = ProxyManager.ProxyProviderFromHwnd(
NativeMethods
.HWND.Cast(hwnd), 0, UnsafeNativeMethods.OBJID_CLIENT);
MS\Internal\Automation\WindowHideOrCloseTracker.cs (6)
33
{
NativeMethods
.EVENT_OBJECT_DESTROY,
NativeMethods
.EVENT_OBJECT_HIDE})
59
NativeMethods
.HWND nativeHwnd =
NativeMethods
.HWND.Cast( hwnd );
63
if (eventId ==
NativeMethods
.EVENT_OBJECT_HIDE && !SafeNativeMethods.IsWindow( nativeHwnd ))
71
if (eventId ==
NativeMethods
.EVENT_OBJECT_DESTROY)
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
27
: base(new int[] {
NativeMethods
.EVENT_OBJECT_STATECHANGE })
74
NativeMethods
.HWND nativeHwnd =
NativeMethods
.HWND.Cast(hwnd);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (6)
33
{
NativeMethods
.EventObjectUIFragmentCreate,
NativeMethods
.EVENT_OBJECT_CREATE,
NativeMethods
.EVENT_OBJECT_SHOW})
59
NativeMethods
.HWND nativeHwnd =
NativeMethods
.HWND.Cast( hwnd );
70
if (eventId ==
NativeMethods
.EVENT_OBJECT_CREATE)
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
27
: base(new int[] {
NativeMethods
.EVENT_OBJECT_LOCATIONCHANGE })
74
NativeMethods
.HWND nativeHwnd =
NativeMethods
.HWND.Cast(hwnd);
MS\Internal\Automation\WinEventWrap.cs (3)
243
_winEventProc = new
NativeMethods
.WinEventProcDef(WinEventReentrancyFilter);
248
_fFlags =
NativeMethods
.WINEVENT_OUTOFCONTEXT;
285
private
NativeMethods
.WinEventProcDef _winEventProc; // the callback handed to USER for WinEvents
MS\Win32\SafeNativeMethods.cs (29)
23
public static extern int GetWindowThreadProcessId(
NativeMethods
.HWND hWnd, out int lpdwProcessId);
61
public
NativeMethods
.HWND hwndActive;
62
public
NativeMethods
.HWND hwndFocus;
63
public
NativeMethods
.HWND hwndCapture;
64
public
NativeMethods
.HWND hwndMenuOwner;
65
public
NativeMethods
.HWND hwndMoveSize;
66
public
NativeMethods
.HWND hwndCaret;
67
public
NativeMethods
.RECT rc;
114
public static extern
NativeMethods
.HWND GetAncestor(
NativeMethods
.HWND hwnd, int gaFlags );
124
public static extern
NativeMethods
.HWND GetDesktopWindow();
130
public delegate bool EnumThreadWndProc(
NativeMethods
.HWND hwnd,
NativeMethods
.HWND lParam);
138
public static extern bool GetClientRect(
NativeMethods
.HWND hwnd, out
NativeMethods
.RECT rc );
141
public static extern bool GetWindowRect(
NativeMethods
.HWND hwnd, out
NativeMethods
.RECT rc );
144
public static extern bool IsWindow(
NativeMethods
.HWND hwnd );
147
public static extern bool IsWindowEnabled(
NativeMethods
.HWND hwnd );
150
public static extern bool IsWindowVisible(
NativeMethods
.HWND hwnd );
153
public static extern bool IsIconic(
NativeMethods
.HWND hwnd);
156
public static extern int GetClassName(
NativeMethods
.HWND hWnd, StringBuilder classname, int nMax );
159
public static extern int RealGetWindowClass(
NativeMethods
.HWND hWnd, StringBuilder classname, int nMax );
162
internal extern static bool IsChild(
NativeMethods
.HWND parent,
NativeMethods
.HWND child );
168
NativeMethods
.HWND hwnd,
208
public static extern IntPtr MonitorFromRect( ref
NativeMethods
.RECT rect, int dwFlags );
214
public static extern bool PhysicalToLogicalPoint(
NativeMethods
.HWND hwnd, ref
NativeMethods
.POINT pt);
MS\Win32\UnsafeNativeMethods.cs (25)
108
public static extern bool RegisterHotKey(
NativeMethods
.HWND hWnd, int id, int fsModifiers, int vk );
111
public static extern bool UnregisterHotKey(
NativeMethods
.HWND hWnd, int id );
119
public static extern void SwitchToThisWindow(
NativeMethods
.HWND hwnd, bool fAltTab);
150
internal static extern IntPtr SetWinEventHook(int eventMin, int eventMax, IntPtr hmodWinEventProc,
NativeMethods
.WinEventProcDef WinEventReentrancyFilter, uint idProcess, uint idThread, int dwFlags);
190
NativeMethods
.HWND hwnd, int Msg, IntPtr wParam, IntPtr lParam, int flags, int uTimeout, out IntPtr pResult );
194
NativeMethods
.HWND hwnd, int Msg, IntPtr wParam, ref MINMAXINFO lParam, int flags, int uTimeout, out IntPtr pResult );
200
NativeMethods
.HWND hwnd, int Msg, IntPtr wParam, StringBuilder lParam, int flags, int uTimeout, out IntPtr pResult);
208
public
NativeMethods
.HWND hwnd;
220
ref MSG msg,
NativeMethods
.HWND hwnd, int nMsgFilterMin, int nMsgFilterMax);
224
ref MSG msg,
NativeMethods
.HWND hwnd, int nMsgFilterMin, int nMsgFilterMax, int wRemoveMsg);
236
NativeMethods
.HWND hWnd, int nMsg, IntPtr wParam, IntPtr lParam);
252
public
NativeMethods
.POINT ptReserved;
253
public
NativeMethods
.POINT ptMaxSize;
254
public
NativeMethods
.POINT ptMaxPosition;
255
public
NativeMethods
.POINT ptMinTrackSize;
256
public
NativeMethods
.POINT ptMaxTrackSize;
321
public
NativeMethods
.POINT ptMinPosition;
322
public
NativeMethods
.POINT ptMaxPosition;
323
public
NativeMethods
.RECT rcNormalPosition;
327
public static extern bool SetWindowPlacement(
NativeMethods
.HWND hwnd, ref WINDOWPLACEMENT wp );
330
public static extern bool GetWindowPlacement(
NativeMethods
.HWND hwnd, ref WINDOWPLACEMENT wp );
337
internal static extern bool SetWindowPos(
NativeMethods
.HWND hWnd,
NativeMethods
.HWND hWndInsertAfter, int x, int y, int cx, int cy, int flags);
352
internal
NativeMethods
.RECT rcBar;
354
internal
NativeMethods
.HWND hwndMenu;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (8)
56
public static extern
NativeMethods
.HWND GetWindow(
NativeMethods
.HWND hWnd, int uCmd);
59
public static extern int MapWindowPoints(
NativeMethods
.HWND hWndFrom,
NativeMethods
.HWND hWndTo, [In, Out] ref
NativeMethods
.RECT rect, int cPoints);
62
public static extern int MapWindowPoints(
NativeMethods
.HWND hWndFrom,
NativeMethods
.HWND hWndTo, ref
NativeMethods
.POINT pt, int cPoints);
System\Windows\Automation\Automation.cs (1)
162
if ( HwndProxyElementProvider.IsWindowPatternWindow(
NativeMethods
.HWND.Cast( new IntPtr( (int)val ) ) ) )