The document is archived and information here might be outdated
Visual Studio .NET 2003
ID of the thread attached to this CWinThread.
The m_nThreadID data member is a public variable of type DWORD. It is only valid if underlying thread currently exists.
See the example for AfxGetThread.