-
I wonder, in Windows App SDK, is it possible to get notified when the app exits? I know we can listen to the Appreciate any idea. |
Beta Was this translation helpful? Give feedback.
Answered by
castorix
Mar 17, 2023
Replies: 1 comment 5 replies
-
On shutdown, you can intercept WM_QUERYENDSESSION |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
myfix16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On shutdown, you can intercept WM_QUERYENDSESSION
Task Manager sends WM_SYSCOMMAND with SC_CLOSE to the main window, but if you intercept it, it kills the process...
(also calls RtlReportSilentProcessExit)