13 references to GetWindowThreadProcessId
System.Windows.Forms (13)
winforms\Managed\System\WinForms\Application.cs (5)
795SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(null, handle), out processId); 1244int id = SafeNativeMethods.GetWindowThreadProcessId(handle, out pid); 2865int hwndThread = SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(parkingWindows[0], parkingWindows[0].Handle), out pid); 3968SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(null, UnsafeNativeMethods.GetActiveWindow()), out pid); 4149int id = SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(this, HandleInternal), out lpdwProcessId);
winforms\Managed\System\WinForms\Control.cs (4)
2020return SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(this, Handle), out pid); 3100int hwndThread = SafeNativeMethods.GetWindowThreadProcessId(hwnd, out pid); 6214if (SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(marshaler, marshaler.Handle), out pid) == SafeNativeMethods.GetCurrentThreadId()) { 7805if (SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(this, Handle), out pid) == SafeNativeMethods.GetCurrentThreadId()) {
winforms\Managed\System\WinForms\NativeWindow.cs (1)
176int id = SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(null, handle), out lpdwProcessId);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
7149SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(control, control.Handle), out thisProcessID); 7239SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(null, hWndAtPoint), out pid);
winforms\Managed\System\WinForms\Timer.cs (1)
347int hwndThread = SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(this, hWnd), out pid);