How do I guarantee fast shutdown of my win32 app?

前端 未结 11 1829
夕颜
夕颜 2020-12-03 19:13

I\'ve got a C++ Win32 application that has a number of threads that might be busy doing IO (HTTP calls, etc) when the user wants to shutdown the application. Currently, I p

11条回答
  •  离开以前
    2020-12-03 19:42

    You can call TerminateProcess - this will stop the process immediately, without notifying anyone and without waiting for anything.

提交回复
热议问题