开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜