File: Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2.cs
Project: Microsoft.Diagnostics.DataContractReader.Legacy.csproj (Microsoft.Diagnostics.DataContractReader.Legacy)
// <auto-generated />
#pragma warning disable CS0612, CS0618, CS0649, CS1591
 
[global::System.Runtime.InteropServices.StructLayoutAttribute(global::System.Runtime.InteropServices.LayoutKind.Sequential)]
file struct InterfaceImplementationVtable
{
    public unsafe delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0;
    public unsafe delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1;
    public unsafe delegate* unmanaged[MemberFunction]<void*, uint> Release_2;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpExceptionObjectData*, int> GetObjectExceptionData_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int*, int> IsRCWDCOMProxy_4;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([236, 38, 96, 161, 244, 150, 186, 64, 135, 251, 85, 117, 152, 111, 183, 175]);
    public static unsafe void** ManagedVirtualMethodTable
    {
        get
        {
            unsafe
            {
                return (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
            }
        }
    }
}
 
[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;
 
    static InterfaceImplementation()
    {
        unsafe
        {
            global::System.Runtime.InteropServices.ComWrappers.GetIUnknownImpl(
                out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->QueryInterface_0,
                out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->AddRef_1,
                out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->Release_2);
 
            Vtable.GetObjectExceptionData_3 = &ABI_GetObjectExceptionData;
            Vtable.IsRCWDCOMProxy_4 = &ABI_IsRCWDCOMProxy;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2.GetObjectExceptionData(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress objectAddress, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpExceptionObjectData* data)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpExceptionObjectData*, int>)__vtable[3]);
            {
                ulong __objectAddress_native;
                int __retVal;
                // Marshal - Convert managed data to native data.
                __objectAddress_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(objectAddress);
                {
                    __retVal = __target(__this, __objectAddress_native, data);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetObjectExceptionData(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __objectAddress_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpExceptionObjectData* data)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2 @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress objectAddress = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                objectAddress = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__objectAddress_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2>(__this_native);
                __retVal = @this.GetObjectExceptionData(objectAddress, data);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2.IsRCWDCOMProxy(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress rcwAddress, int* inDCOMProxy)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int*, int>)__vtable[4]);
            {
                ulong __rcwAddress_native;
                int __retVal;
                // Marshal - Convert managed data to native data.
                __rcwAddress_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(rcwAddress);
                {
                    __retVal = __target(__this, __rcwAddress_native, inDCOMProxy);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_IsRCWDCOMProxy(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __rcwAddress_native, int* inDCOMProxy)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2 @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress rcwAddress = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                rcwAddress = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__rcwAddress_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2>(__this_native);
                __retVal = @this.IsRCWDCOMProxy(rcwAddress, inDCOMProxy);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
}
 
namespace Microsoft.Diagnostics.DataContractReader.Legacy
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    public unsafe partial interface ISOSDacInterface2
    {
    }
}