Peter Duniho
9/29/2008 7:02:00 PM
On Mon, 29 Sep 2008 11:39:53 -0700, Ashutosh <smbs-msdn@nospam.nospam>
wrote:
> Hi,
> How can I get the real thread ID for a thread? The Thread class provides
> the managed thread ID only. Do I need to use P/Invoke for some win32
> function like GetThreadID or something similar??
Yes. But since there's no guarantee that a managed thread is exactly the
same as an unmanaged thread, you should think twice before writing code
that relies on that.