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