Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello.
Currently, I am developing a console program that saves data to SQLite3 with Python 3.9.
Is there any way to safely terminate the currently running console application (receive some message and terminate DB processing) in advance when Windows shuts down?
Linux sends a SIGTERM at shutdown so that the application can safely terminate it upon receiving that signal.
Would you please let me know how to handle it on Windows?
I look forward to working with you.