I'm working on a small chat application written in C++/Qt. My users are complaining that the connection is not shut down gracefully when they are closing the laptop lid and the computer enters standby.

Is there a Win32 hook available that is called when Windows is about to enter standby?

有帮助吗?

解决方案

其他提示

Reimplement QCoreApplication::winEventFilter in your application to handle Windows standby events.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top