Not recommended to use for Vista and later. For winver >= 6 use wer.WerReportCreate and wer.WerReportSubmit, instead.
internal static extern int WerReportSubmit(IntPtr hReportHandle, WER_CONSENT consent, int dwFlags, ref IntPtr pSubmitResult);
Declare Function WerReportSubmit Lib "wer.dll" (TODO) As TODO