阅读背景:

如何使用JNA处理WM_QUERYENDSESSION消息?

来源:互联网 

I want to catch WM_QUERYENDSESSION messages in Java with JNA so that I can execute a shutdown method because Runtime#addShutdownHook(Thread) doesn't work on Windows [1]. I know this can be done since I've seen it implemented with JNIWrapper but I would like to have a JNA-based solution.I want to catch WM_QUERYENDSESSION messages in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: