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