The address of the ThreadID of the thread
of interest. If ptid is 0, the current thread waits until the next
thread in the process has ended. If ptid is nonzero, the current
thread waits until the indicated thread has ended.
Output
The ThreadID of the ended thread is returned in
this field.