/// <exception cref="System.Runtime.InteropServices.COMException"> /// Some failure HRESULTs map to well-defined exceptions, while others do not map /// to a defined exception. If the HRESULT maps to a defined exception, ThrowExceptionForHR /// creates an instance of the exception and throws it. Otherwise, it creates an instance /// of System.Runtime.InteropServices.COMException, initializes the error code field with /// the HRESULT, and throws that exception. When this method is invoked, it attempts to /// retrieve extra information regarding the error by using the unmanaged GetErrorInfo /// function. /// </exception> private static void SetBucketParameter(ReportHandle reportHandle, BucketParameterId bucketParameterId, string value) { HandleHResult(NativeMethods.WerReportSetParameter( reportHandle, bucketParameterId, bucketParameterId.ToString(), value)); }
private static void SetBucketParameter(ReportHandle reportHandle, BucketParameterId bucketParameterId, string value) { HandleHResult(NativeMethods.WerReportSetParameter(reportHandle, bucketParameterId, bucketParameterId.ToString(), value)); }
internal static extern int WerReportSetParameter( ReportHandle reportHandle, BucketParameterId bucketParameterId, [MarshalAs(UnmanagedType.LPWStr)] string name, [MarshalAs(UnmanagedType.LPWStr)] string value);