How to exit Win32 application via API?

后端 未结 7 1614
天涯浪人
天涯浪人 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:39

    If you're using a Win32 application with a proper window procedure, you can use the function PostQuitMessage.

提交回复
热议问题