Skip to content

How to get notified when the application exits? #3516

Answered by castorix
myfix16 asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@myfix16
Comment options

@DarranRowe
Comment options

@castorix
Comment options

@myfix16
Comment options

@castorix
Comment options

Answer selected by myfix16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants