Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
说,如果我创建了这样的事件:
HANDLE hGlobalEvent = ::CreateEvent(NULL, FALSE, FALSE, NULL);
是否可以通过它的句柄来获取它的状态而不改变它?
不,没有任何直接的方法可以做到这一点。即使有办法查询事件对象,答案也可能随时更改,从而使信息立即过时。