How to get return value from worker thread?
MSDN: 'When the function(thread procedure) terminates,it should return a UINT value indicating the reason for termination. Typically,this exit code is 0 to indicate success with other values indicating different types of errors.
My question is, how to get return value from worker thread as we start a worker thread with AfxBeginThread(...)?