how from a console application detect "End" request from the Task Scheduler
how in an console application detect that the user click on the "End" process in the task scheduler ?
i try to setup SetConsoleCtrlHandler, but unfortunatly it's seam to not work (but curiously it's work in the task manager)
i also try to catch开发者_开发知识库 the wm_quit or wm_close without any success ...
thanks for you help !
End process, not "end application"?
I believe you can't. End process does TerminateProcess, which cannot be handled.
This is an analog of POSIX SIGKILL.
精彩评论