We want to trigger a Windows snapshot minidump from our application and use the MiniDumpWriteDump for this purpose. This is working fine, but it seems that the time of interruption for the process is some time after MiniDumpWriteDump is called. How can we stop all threads from running to have a well-defined moment to call MiniDumpWriteDump.
Would DebugBreakProcess be a suitable way?