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()
or Abort()
something similar that would just terminate it?
ExitProcess
is the function to use, else you can use exit
, note that neither insure the integrity of the shutdown (ie: you many leak handles etc and threaded operations will be terminated, even if they are halfway through an operation, like a db commit)