<p>How can I determine if a Win32 thread has terminated?</p>

<p>The documentation for <strong><a href="http://msdn.microsoft.com/en-us/library/ms683190(VS.85).aspx" rel="noreferrer">GetExitCodeThread</a></strong> warns to not to use it for this reason since the error code STILL_ACTIVE can be returned for other reasons.</p>

<p>Thanks for the help! :)</p>

The documentation you link to warns against using
```
STILL_ACTIVE
```
as a return code, since it can't be distinguished from the return value used to indicate an active thread.
So don't use it as a return value and you won't have this problem.