Well, if you ask Microsoft, you should rely on Windows Error Reporting to
take care of this.
You can install a top-level exception handler and call MiniDumpWriteDump()
yourself, but this is fraught with peril; you have to suspend threads
youself and the whole thing can fail if your process is crashing due to
memory corruption. Still, it can be better than nothing.