If GetQueuedCompletionStatus returns false in ThreadProc, pOverlapped is tested for ATLS_POOL_SHUTDOWN before exiting the loop.
If GetQueuedCompletionStatus returns false in ThreadProc, pOverlapped is tested for ATLS_POOL_SHUTDOWN before exiting the loop.

Aschratt/CThreadPoolEx