File: _generated\36\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7.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*, ulong, int*, int> GetPendingReJITID_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpReJitData2*, int> GetReJITInformation_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpProfilerILData*, int> GetProfilerModifiedILInformation_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int, int*, int> GetMethodsWithProfilerModifiedIL_6;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([222, 13, 2, 193, 152, 254, 54, 69, 165, 59, 243, 90, 116, 195, 39, 235]);
    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.ISOSDacInterface7
{
    [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.GetPendingReJITID_3 = &ABI_GetPendingReJITID;
        Vtable.GetReJITInformation_4 = &ABI_GetReJITInformation;
        Vtable.GetProfilerModifiedILInformation_5 = &ABI_GetProfilerModifiedILInformation;
        Vtable.GetMethodsWithProfilerModifiedIL_6 = &ABI_GetMethodsWithProfilerModifiedIL;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7.GetPendingReJITID(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodDesc, int* pRejitId)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int*, int> )__vtable[3]);
        {
            ulong __methodDesc_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __methodDesc_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(methodDesc);
            {
                __retVal = __target(__this, __methodDesc_native, pRejitId);
            }
    
            // 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_GetPendingReJITID(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __methodDesc_native, int* pRejitId)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodDesc = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            methodDesc = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__methodDesc_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7>(__this_native);
            __retVal = @this.GetPendingReJITID(methodDesc, pRejitId);
        }
        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.ISOSDacInterface7.GetReJITInformation(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodDesc, int rejitId, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpReJitData2* pRejitData)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpReJitData2*, int> )__vtable[4]);
        {
            ulong __methodDesc_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __methodDesc_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(methodDesc);
            {
                __retVal = __target(__this, __methodDesc_native, rejitId, pRejitData);
            }
    
            // 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_GetReJITInformation(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __methodDesc_native, int rejitId, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpReJitData2* pRejitData)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodDesc = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            methodDesc = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__methodDesc_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7>(__this_native);
            __retVal = @this.GetReJITInformation(methodDesc, rejitId, pRejitData);
        }
        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.ISOSDacInterface7.GetProfilerModifiedILInformation(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodDesc, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpProfilerILData* pILData)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpProfilerILData*, int> )__vtable[5]);
        {
            ulong __methodDesc_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __methodDesc_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(methodDesc);
            {
                __retVal = __target(__this, __methodDesc_native, pILData);
            }
    
            // 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_GetProfilerModifiedILInformation(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __methodDesc_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpProfilerILData* pILData)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodDesc = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            methodDesc = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__methodDesc_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7>(__this_native);
            __retVal = @this.GetProfilerModifiedILInformation(methodDesc, pILData);
        }
        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.ISOSDacInterface7.GetMethodsWithProfilerModifiedIL(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress mod, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* methodDescs, int cMethodDescs, int* pcMethodDescs)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int, int*, int> )__vtable[6]);
        {
            ulong __mod_native;
            int __retVal;
            // Marshal - Convert managed data to native data.
            __mod_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(mod);
            {
                __retVal = __target(__this, __mod_native, methodDescs, cMethodDescs, pcMethodDescs);
            }
    
            // 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_GetMethodsWithProfilerModifiedIL(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __mod_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* methodDescs, int cMethodDescs, int* pcMethodDescs)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7 @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress mod = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            mod = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__mod_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7>(__this_native);
            __retVal = @this.GetMethodsWithProfilerModifiedIL(mod, methodDescs, cMethodDescs, pcMethodDescs);
        }
        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 ISOSDacInterface7
    {
    }
}