public IntPtr WerReportCreateEx(string pwzEventType, WER_REPORT_TYPE repType, IntPtr pReportInformation) { IntPtr phReportHandle = IntPtr.Zero; int num = NativeMethods.WerReportCreate(pwzEventType, repType, pReportInformation, ref phReportHandle); if (num != 0) { throw Marshal.GetExceptionForHR(num); } return(phReportHandle); }
public static IntPtr WerReportCreate(string pwzEventType, WER_REPORT_TYPE repType, IntPtr pReportInformation) { IntPtr result = IntPtr.Zero; try { result = implementation.WerReportCreateEx(pwzEventType, repType, pReportInformation); return(result); } catch (Exception) { return(result); } }
public static extern int WerReportCreate(string pwzEventType, WER_REPORT_TYPE repType, IntPtr pReportInformation, ref IntPtr phReportHandle);