Hi,
Am Donnerstag, den 04.02.2021, 22:07 +0100 schrieb Davide Perini:
> is there a way to detect if windows is shutting down in order to close
> my app before windows turn off the PC?
>
> Probably a lame question, but I try :)
here is your google secretary speaking, I entered this query for you:
windows api shutdown java
Second hit leads me to:
https://www.codeproject.com/Tips/1257858/How-to-get-shutdown-event-in-windows-from-java-app
There a full sample using JNI, that should be adaptable to JNA.
Greetings
Matthias