16 references to GetCurrentThreadId
System.Windows.Forms (16)
winforms\Managed\System\WinForms\Application.cs (5)
2402id = SafeNativeMethods.GetCurrentThreadId(); 2783bool ourThread = SafeNativeMethods.GetCurrentThreadId() == id; 2866int currentThread = SafeNativeMethods.GetCurrentThreadId(); 3063if (context == null && id == SafeNativeMethods.GetCurrentThreadId()) { 4240UnsafeNativeMethods.EnumThreadWindows(SafeNativeMethods.GetCurrentThreadId(),
winforms\Managed\System\WinForms\ComboBox.cs (1)
5871UnsafeNativeMethods.EnumThreadWindows(SafeNativeMethods.GetCurrentThreadId(), new NativeMethods.EnumThreadWindowsCallback(this.Callback), new HandleRef(null, IntPtr.Zero));
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (2)
267_creationThread = SafeNativeMethods.GetCurrentThreadId(); 474if (_refCount == 1 && SafeNativeMethods.GetCurrentThreadId() == _creationThread) {
winforms\Managed\System\WinForms\Control.cs (4)
2023return SafeNativeMethods.GetCurrentThreadId(); 3101int currentThread = SafeNativeMethods.GetCurrentThreadId(); 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\Form.cs (1)
5531UnsafeNativeMethods.EnumThreadWindows(SafeNativeMethods.GetCurrentThreadId(),
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
7159SafeNativeMethods.GetCurrentThreadId());
winforms\Managed\System\WinForms\Timer.cs (1)
348int currentThread = SafeNativeMethods.GetCurrentThreadId();
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
1415SafeNativeMethods.GetCurrentThreadId());