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()
If you're using a Win32 application with a proper window procedure, you can use the function PostQuitMessage.
Win32