[runtime] Overwrite stacktrace for exception on re-throw. Fixes #1856.
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / IErrorInfo.cs
1 // IErrorInfo interface
2 //
3 // Eberhard Beilharz (eb1@sil.org)
4 //
5 // Copyright (C) 2011 SIL International
6 using System;
7 using System.Runtime.CompilerServices;
8 using System.Security;
9
10 namespace System.Runtime.InteropServices
11 {
12         [ComImport]
13         [SuppressUnmanagedCodeSecurity]
14         [Guid ("1CF2B120-547D-101B-8E65-08002B2BD119")]
15         [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
16         internal interface IErrorInfo
17         {
18                 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
19                 [PreserveSig]
20                 int GetGUID (out Guid pGuid);
21
22                 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
23                 [PreserveSig]
24                 int GetSource ([MarshalAs (UnmanagedType.BStr)] out string pBstrSource);
25
26                 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
27                 [PreserveSig]
28                 int GetDescription ([MarshalAs (UnmanagedType.BStr)] out string pbstrDescription);
29
30                 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
31                 [PreserveSig]
32                 int GetHelpFile ([MarshalAs (UnmanagedType.BStr)] out string pBstrHelpFile);
33
34                 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
35                 [PreserveSig]
36                 int GetHelpContext (out uint pdwHelpContext);
37         }
38 }