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