AfxGetThread

CWinThread* AfxGetThread( );

Return Value

Pointer to the currently executing thread.

Remarks

Call this function to get a pointer to the CWinThread object representing the currently executing thread. Must be called from within the desired thread.

See Also   AfxBeginThread