When a subroutin finished, it return to it's caller.
A thread is NOT a subroutin, it does NOT return.
If you call CmtWaitForThreadPoolFunctionCompletion function
in your main thread, then your main thread will wait for the other thread to finish.
George Zou