File: Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget.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*, uint*, int> GetMachineType_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetPointerSize_4;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ushort*, ulong*, int> GetImageBase_5;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, byte*, uint, uint*, int> ReadVirtual_6;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, byte*, uint, uint*, int> WriteVirtual_7;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, ulong*, int> GetTLSValue_8;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, ulong, int> SetTLSValue_9;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetCurrentThreadID_10;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, uint, byte*, int> GetThreadContext_11;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, byte*, int> SetThreadContext_12;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, byte*, uint, byte*, int> Request_13;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([238, 204, 17, 62, 139, 208, 229, 67, 175, 1, 50, 113, 122, 100, 218, 3]);
    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.ICLRDataTarget
{
    [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.GetMachineType_3 = &ABI_GetMachineType;
            Vtable.GetPointerSize_4 = &ABI_GetPointerSize;
            Vtable.GetImageBase_5 = &ABI_GetImageBase;
            Vtable.ReadVirtual_6 = &ABI_ReadVirtual;
            Vtable.WriteVirtual_7 = &ABI_WriteVirtual;
            Vtable.GetTLSValue_8 = &ABI_GetTLSValue;
            Vtable.SetTLSValue_9 = &ABI_SetTLSValue;
            Vtable.GetCurrentThreadID_10 = &ABI_GetCurrentThreadID;
            Vtable.GetThreadContext_11 = &ABI_GetThreadContext;
            Vtable.SetThreadContext_12 = &ABI_SetThreadContext;
            Vtable.Request_13 = &ABI_Request;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget.GetMachineType(uint* machineType)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int>)__vtable[3]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, machineType);
                }
                // 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_GetMachineType(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* machineType)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.GetMachineType(machineType);
            }
            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.ICLRDataTarget.GetPointerSize(uint* pointerSize)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int>)__vtable[4]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, pointerSize);
                }
                // 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_GetPointerSize(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* pointerSize)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.GetPointerSize(pointerSize);
            }
            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.ICLRDataTarget.GetImageBase(string imagePath, ulong* baseAddress)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ushort*, ulong*, int>)__vtable[5]);
            {
                int __retVal;
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (void* __imagePath_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(imagePath))
                {
                    __retVal = __target(__this, (ushort*)__imagePath_native, baseAddress);
                }
                // 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_GetImageBase(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ushort* __imagePath_native, ulong* baseAddress)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @this = default;
            string imagePath = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                imagePath = global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.ConvertToManaged(__imagePath_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget>(__this_native);
                __retVal = @this.GetImageBase(imagePath, baseAddress);
            }
            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.ICLRDataTarget.ReadVirtual(ulong address, byte* buffer, uint bytesRequested, uint* bytesRead)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, byte*, uint, uint*, int>)__vtable[6]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, address, buffer, bytesRequested, bytesRead);
                }
                // 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_ReadVirtual(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong address, byte* buffer, uint bytesRequested, uint* bytesRead)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.ReadVirtual(address, buffer, bytesRequested, bytesRead);
            }
            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.ICLRDataTarget.WriteVirtual(ulong address, byte* buffer, uint bytesRequested, uint* bytesWritten)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, byte*, uint, uint*, int>)__vtable[7]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, address, buffer, bytesRequested, bytesWritten);
                }
                // 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_WriteVirtual(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong address, byte* buffer, uint bytesRequested, uint* bytesWritten)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.WriteVirtual(address, buffer, bytesRequested, bytesWritten);
            }
            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.ICLRDataTarget.GetTLSValue(uint threadID, uint index, ulong* value)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, ulong*, int>)__vtable[8]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, threadID, index, value);
                }
                // 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_GetTLSValue(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint threadID, uint index, ulong* value)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.GetTLSValue(threadID, index, value);
            }
            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.ICLRDataTarget.SetTLSValue(uint threadID, uint index, ulong value)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, ulong, int>)__vtable[9]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, threadID, index, value);
                }
                // 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_SetTLSValue(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint threadID, uint index, ulong value)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.SetTLSValue(threadID, index, value);
            }
            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.ICLRDataTarget.GetCurrentThreadID(uint* threadID)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int>)__vtable[10]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, threadID);
                }
                // 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_GetCurrentThreadID(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* threadID)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.GetCurrentThreadID(threadID);
            }
            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.ICLRDataTarget.GetThreadContext(uint threadID, uint contextFlags, uint contextSize, byte* context)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, uint, byte*, int>)__vtable[11]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, threadID, contextFlags, contextSize, context);
                }
                // 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_GetThreadContext(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint threadID, uint contextFlags, uint contextSize, byte* context)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.GetThreadContext(threadID, contextFlags, contextSize, context);
            }
            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.ICLRDataTarget.SetThreadContext(uint threadID, uint contextSize, byte* context)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, byte*, int>)__vtable[12]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, threadID, contextSize, context);
                }
                // 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_SetThreadContext(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint threadID, uint contextSize, byte* context)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.SetThreadContext(threadID, contextSize, context);
            }
            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.ICLRDataTarget.Request(uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, byte*, uint, byte*, int>)__vtable[13]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
                }
                // 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_Request(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget @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.ICLRDataTarget>(__this_native);
                __retVal = @this.Request(reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
            }
            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 ICLRDataTarget
    {
    }
}