17 references to GetCurrentThreadId
System.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (1)
24return EnumThreadWindows(GetCurrentThreadId(), &HandleEnumThreadWindowsNativeCallback, (LPARAM)(nint)gcHandle);
System.Windows.Forms (15)
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (2)
54PInvokeCore.GetCurrentThreadId(), 63PInvokeCore.GetCurrentThreadId(),
System\Windows\Forms\Application.ThreadContext.cs (4)
86_id = PInvokeCore.GetCurrentThreadId(); 275if (PInvokeCore.GetCurrentThreadId() != _id) 356uint currentThread = PInvokeCore.GetCurrentThreadId(); 500if (id == PInvokeCore.GetCurrentThreadId())
System\Windows\Forms\Control.cs (4)
1544: PInvokeCore.GetCurrentThreadId(); 2406return PInvokeCore.GetWindowThreadProcessId(control, out _) != PInvokeCore.GetCurrentThreadId(); 5061if (PInvokeCore.GetWindowThreadProcessId(marshaler, out _) == PInvokeCore.GetCurrentThreadId()) 6505bool syncSameThread = synchronous && PInvokeCore.GetWindowThreadProcessId(this, out _) == PInvokeCore.GetCurrentThreadId();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (1)
99PInvokeCore.GetCurrentThreadId());
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (1)
70PInvokeCore.GetCurrentThreadId());
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
246PInvokeCore.GetWindowThreadProcessId(_handle, out _) != PInvokeCore.GetCurrentThreadId();
System\Windows\Forms\OLE\DropSource.cs (1)
119private bool IsDropTargetWindowInCurrentThread() => _lastHwndTargetThreadId == PInvokeCore.GetCurrentThreadId();
System\Windows\Forms\Timer.cs (1)
241return PInvokeCore.GetWindowThreadProcessId(hwnd, out _) != PInvokeCore.GetCurrentThreadId();
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
83PInvokeCore.GetCurrentThreadId());