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()
Exit()
Destroy()
PostQuitMessage() is the standard, graceful way of quitting a windowed application.
PostQuitMessage()
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.