Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 public static extern int WerReportCreate(string pwzEventType, WER_REPORT_TYPE repType, IntPtr pReportInformation, ref IntPtr phReportHandle);