使用WaitSingleObject 函数可以判断是否结束,
参照MS帮助中的这句话:
When a thread terminates, the thread object attains a signaled state, satisfying any threads that were waiting on the object.
The thread object remains in the system until the thread has terminated and all handles to it have been closed through a call to CloseHandle.