GetCurrentThreadId (kernel32)
Last changed: mark at [nospam]epitman.com-12.151.76.126

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern uint GetCurrentThreadId();

VB.NET Signature:

<DllImport("kernel32.dll")> _
Public Shared Function GetCurrentThreadId() As UInteger
End Function

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

  System.AppDomain.GetCurrentThreadId() (This is deprecated in .NET 2.0)

Documentation