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