5 references to GetWindowThreadProcessId
System.Private.Windows.Core (2)
Windows\Win32\PInvokeCore.GetWindowThreadProcessId.cs (2)
8
/// <inheritdoc cref="
GetWindowThreadProcessId
(HWND, uint*)"/>
13
uint result =
GetWindowThreadProcessId
(hWnd.Handle, &processId);
System.Windows.Forms (3)
System\Windows\Forms\Application.cs (2)
736
PInvokeCore.
GetWindowThreadProcessId
(hwnd, &processId);
1169
ThreadContext? threadContext = ThreadContext.FromId(PInvokeCore.
GetWindowThreadProcessId
(handle.Handle, null));
System\Windows\Forms\OLE\DropSource.cs (1)
103
_lastHwndTargetThreadId = PInvokeCore.
GetWindowThreadProcessId
(hwndTarget, lpdwProcessId: null);