File: Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14.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.ClrDataAddress*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> GetStaticBaseAddress_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> GetThreadStaticBaseAddress_4;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.MethodTableInitializationFlags*, int> GetMethodTableInitializationFlags_5;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([202, 42, 162, 154, 198, 109, 12, 74, 180, 224, 112, 210, 65, 107, 152, 55]);
    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.ISOSDacInterface14
{
    [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.GetStaticBaseAddress_3 = &ABI_GetStaticBaseAddress;
            Vtable.GetThreadStaticBaseAddress_4 = &ABI_GetThreadStaticBaseAddress;
            Vtable.GetMethodTableInitializationFlags_5 = &ABI_GetMethodTableInitializationFlags;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14.GetStaticBaseAddress(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodTable, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* nonGCStaticsAddress, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* GCStaticsAddress)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int>)__vtable[3]);
            {
                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, nonGCStaticsAddress, GCStaticsAddress);
                }
                // 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_GetStaticBaseAddress(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __methodTable_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* nonGCStaticsAddress, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* GCStaticsAddress)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14 @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.ISOSDacInterface14>(__this_native);
                __retVal = @this.GetStaticBaseAddress(methodTable, nonGCStaticsAddress, GCStaticsAddress);
            }
            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.ISOSDacInterface14.GetThreadStaticBaseAddress(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodTable, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress thread, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* nonGCStaticsAddress, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* GCStaticsAddress)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int>)__vtable[4]);
            {
                ulong __methodTable_native;
                ulong __thread_native;
                int __retVal;
                // Marshal - Convert managed data to native data.
                __thread_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(thread);
                __methodTable_native = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(methodTable);
                {
                    __retVal = __target(__this, __methodTable_native, __thread_native, nonGCStaticsAddress, GCStaticsAddress);
                }
                // 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_GetThreadStaticBaseAddress(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __methodTable_native, ulong __thread_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* nonGCStaticsAddress, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* GCStaticsAddress)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14 @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodTable = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress thread = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                thread = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__thread_native);
                methodTable = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__methodTable_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14>(__this_native);
                __retVal = @this.GetThreadStaticBaseAddress(methodTable, thread, nonGCStaticsAddress, GCStaticsAddress);
            }
            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.ISOSDacInterface14.GetMethodTableInitializationFlags(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress methodTable, global::Microsoft.Diagnostics.DataContractReader.Legacy.MethodTableInitializationFlags* initializationStatus)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, global::Microsoft.Diagnostics.DataContractReader.Legacy.MethodTableInitializationFlags*, int>)__vtable[5]);
            {
                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, initializationStatus);
                }
                // 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_GetMethodTableInitializationFlags(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong __methodTable_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.MethodTableInitializationFlags* initializationStatus)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14 @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.ISOSDacInterface14>(__this_native);
                __retVal = @this.GetMethodTableInitializationFlags(methodTable, initializationStatus);
            }
            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 ISOSDacInterface14
    {
    }
}