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