Is it possible to kill WaitForSingleObject(handle, INFINITE)?
问题 I am having problems closing an application that uses WaitForSingleObject() with an INFINITE timout. The full picture is this. I am doing the following to allow my application to handle the device wakeup event: Register the event with: CeRunAppAtEvent("\\\\.\\Notifications\\NamedEvents\\WakeupEvent", NOTIFICATION_EVENT_WAKEUP); Start a new thread to wait on: Thread waitForWakeThread = new Thread(new ThreadStart(WaitForWakeup)); waitForWakeThread.Start(); Then do the following in the target