A look into how to use Windows Error Reporting to collect crash information for your .NET apps.
ICorProfilerInfo.
ICorProfilerCallback interface.