[DllImport("faultrep.dll", SetLastError=true, CharSet=CharSet.Unicode)]
static extern bool AddERExcludedApplication(string name);
Declare Unicode Function AddERExcludedApplication Lib "faultrep.dll" (name as string) As Boolean
None.
Do you know one? Please contribute it!
Works in WinXP and up.
Please add some!
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace ExcludeCrash
{
class Program
{
[DllImport("faultrep.dll", CharSet=CharSet.Unicode)]
private static extern bool AddERExcludedApplication(string name);
static void Main(string[] args)
{
bool result = AddERExcludedApplication("myapp.exe");
throw new Exception();
}
}
}