disable crashed application dialog for invoked process
<p>I start a process from an application to monitor it.
It may crash or hang.</p>

<p>The monitoring application is prepared for this and can handle this.</p>

<p>But on a crash windows shows a application crash dialog.
At this point the crashed process is still in the process list.
But the dialog does not disappear if the process is going to be terminated by the monitoring app (after timeout with <code>TerminateProcess</code>).</p>

<p>I tried to disable the Windows Error Reporting for this application by using the <code>WerAddExcludedApplication</code> and <code>WerRemoveExcludedApplication</code> but this only removes the option to search online for a solution.</p>

<p>I also do not want to entirely disable WER.</p>

<p>Is there another way to programmatically disable this dialog for a given executable (it will not always be the same)?</p>