How to exit Win32 application via API?

后端 未结 7 1537
天涯浪人
天涯浪人 2021-01-01 18:11

I have a C++ Win32 application written using Win32 API and I wish to force it to exit in one of functions. Is there something like Exit() or Destroy()

相关标签:
7条回答
  • 2021-01-01 18:59

    PostQuitMessage() is the standard, graceful way of quitting a windowed application.

    It will not immediately quit but rather post a quit message that will get parsed by your main loop (if done correctly) and then quit the application.

    0 讨论(0)
提交回复
热议问题