如何取得WaitForSingleObject的返回值
Value | Meaning |
WAIT_ABANDONED | The specified object is a mutex object that was not released by the thread that owned the mutex object before the owning thread terminated. Ownership of the mutex object is granted to the calling thread, and the mutex is set to nonsignaled. |
WAIT_OBJECT_0 | The state of the specified object is signaled. |
WAIT_TIMEOUT | The time-out interval elapsed, and the object's state is nonsignaled. |
上面是WaitForSingleObject函数的返回值,那么我该怎么取得,并且把它打印出来呢?