Not recommended to use for Vista and later. For winver >= 6 use wer.WerReportCreate and wer.WerReportSubmit, instead.
internal static extern int WerReportCreate(string pwzEventType,
Declare Function WerReportCreate Lib "wer.dll" (TODO) As TODO