17 references to GetWindowThreadProcessId
System.Windows.Forms (12)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
428PInvokeCore.GetWindowThreadProcessId(PInvoke.GetActiveWindow(), out uint pid);
System\Windows\Forms\Application.ParkingWindow.cs (1)
73uint id = PInvokeCore.GetWindowThreadProcessId(HWNDInternal, out _);
System\Windows\Forms\Application.ThreadContext.cs (1)
355uint hwndThread = PInvokeCore.GetWindowThreadProcessId(_parkingWindows[0], out _);
System\Windows\Forms\Control.cs (4)
1517? PInvokeCore.GetWindowThreadProcessId(this, out _) 2380return PInvokeCore.GetWindowThreadProcessId(control, out _) != PInvokeCore.GetCurrentThreadId(); 5035if (PInvokeCore.GetWindowThreadProcessId(marshaler, out _) == PInvokeCore.GetCurrentThreadId()) 6479bool syncSameThread = synchronous && PInvokeCore.GetWindowThreadProcessId(this, out _) == PInvokeCore.GetCurrentThreadId();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (2)
90PInvokeCore.GetWindowThreadProcessId(_control, out _thisProcessId); 171PInvokeCore.GetWindowThreadProcessId(hwnd, out uint pid);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
247PInvokeCore.GetWindowThreadProcessId(_handle, out _) != PInvokeCore.GetCurrentThreadId();
System\Windows\Forms\NativeWindow.cs (1)
107uint id = PInvokeCore.GetWindowThreadProcessId(handle, out _);
System\Windows\Forms\Timer.cs (1)
241return PInvokeCore.GetWindowThreadProcessId(hwnd, out _) != PInvokeCore.GetCurrentThreadId();
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (2)
74PInvokeCore.GetWindowThreadProcessId(adornerWindow, out _thisProcessID); 168PInvokeCore.GetWindowThreadProcessId(hwnd, out uint pid);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2446PInvokeCore.GetWindowThreadProcessId(hwnd, out uint pid);
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
447if (PInvokeCore.GetWindowThreadProcessId(foregroundWindow, out uint processId) == 0 ||
System.Windows.Forms.UI.IntegrationTests (1)
Infra\SendInput.cs (1)
89if (PInvokeCore.GetWindowThreadProcessId(window, out uint processId) == 0 || processId != Environment.ProcessId)