File: _generated\37\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.cs
Web Access
Project: src\src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Legacy\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 unsafe struct InterfaceImplementationVtable
{
    public delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0;
    public delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1;
    public delegate* unmanaged[MemberFunction]<void*, uint> Release_2;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetNumberGenerations_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData*, uint*, int> GetGenerationTable_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, uint*, int> GetFinalizationFillPointers_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData*, uint*, int> GetGenerationTableSvr_6;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, uint*, int> GetFinalizationFillPointersSvr_7;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> GetAssemblyLoadContext_8;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([169, 53, 47, 193, 92, 229, 32, 69, 168, 148, 179, 220, 81, 101, 223, 206]);
    public static void** ManagedVirtualMethodTable => (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
}

[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;

    static InterfaceImplementation()
    {
        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.GetNumberGenerations_3 = &ABI_GetNumberGenerations;
        Vtable.GetGenerationTable_4 = &ABI_GetGenerationTable;
        Vtable.GetFinalizationFillPointers_5 = &ABI_GetFinalizationFillPointers;
        Vtable.GetGenerationTableSvr_6 = &ABI_GetGenerationTableSvr;
        Vtable.GetFinalizationFillPointersSvr_7 = &ABI_GetFinalizationFillPointersSvr;
        Vtable.GetAssemblyLoadContext_8 = &ABI_GetAssemblyLoadContext;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.GetNumberGenerations(uint* pGenerations)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[3]);
        {
            int __retVal;
            {
                __retVal = __target(__this, pGenerations);
            }
    
            // 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 int ABI_GetNumberGenerations(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* pGenerations)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8 @this = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8>(__this_native);
            __retVal = @this.GetNumberGenerations(pGenerations);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.GetGenerationTable(uint cGenerations, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData* pGenerationData, uint* pNeeded)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData*, uint*, int> )__vtable[4]);
        {
            int __retVal;
            {
                __retVal = __target(__this, cGenerations, pGenerationData, pNeeded);
            }
    
            // 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 int ABI_GetGenerationTable(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint cGenerations, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData* pGenerationData, uint* pNeeded)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8 @this = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8>(__this_native);
            __retVal = @this.GetGenerationTable(cGenerations, pGenerationData, pNeeded);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.GetFinalizationFillPointers(uint cFillPointers, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* pFinalizationFillPointers, uint* pNeeded)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, uint*, int> )__vtable[5]);
        {
            int __retVal;
            {
                __retVal = __target(__this, cFillPointers, pFinalizationFillPointers, pNeeded);
            }
    
            // 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 int ABI_GetFinalizationFillPointers(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint cFillPointers, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* pFinalizationFillPointers, uint* pNeeded)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8 @this = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8>(__this_native);
            __retVal = @this.GetFinalizationFillPointers(cFillPointers, pFinalizationFillPointers, pNeeded);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.GetGenerationTableSvr(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress heapAddr, uint cGenerations, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData* pGenerationData, uint* pNeeded)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData*, uint*, int> )__vtable[6]);
        {
            ulong __heapAddr_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __heapAddr_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(heapAddr);
            {
                __retVal = __target(__this, __heapAddr_native, cGenerations, pGenerationData, pNeeded);
            }
    
            // 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 int ABI_GetGenerationTableSvr(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __heapAddr_native, uint cGenerations, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpGenerationData* pGenerationData, uint* pNeeded)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress heapAddr = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            heapAddr = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__heapAddr_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8>(__this_native);
            __retVal = @this.GetGenerationTableSvr(heapAddr, cGenerations, pGenerationData, pNeeded);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.GetFinalizationFillPointersSvr(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress heapAddr, uint cFillPointers, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* pFinalizationFillPointers, uint* pNeeded)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, uint*, int> )__vtable[7]);
        {
            ulong __heapAddr_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __heapAddr_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(heapAddr);
            {
                __retVal = __target(__this, __heapAddr_native, cFillPointers, pFinalizationFillPointers, pNeeded);
            }
    
            // 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 int ABI_GetFinalizationFillPointersSvr(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __heapAddr_native, uint cFillPointers, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* pFinalizationFillPointers, uint* pNeeded)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress heapAddr = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            heapAddr = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__heapAddr_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8>(__this_native);
            __retVal = @this.GetFinalizationFillPointersSvr(heapAddr, cFillPointers, pFinalizationFillPointers, pNeeded);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.GetAssemblyLoadContext(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodTable, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* assemblyLoadContext)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> )__vtable[8]);
        {
            ulong __methodTable_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __methodTable_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(methodTable);
            {
                __retVal = __target(__this, __methodTable_native, assemblyLoadContext);
            }
    
            // 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 int ABI_GetAssemblyLoadContext(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __methodTable_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* assemblyLoadContext)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodTable = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            methodTable = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__methodTable_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8>(__this_native);
            __retVal = @this.GetAssemblyLoadContext(methodTable, assemblyLoadContext);
        }
        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 ISOSDacInterface8
    {
    }
}