File: _generated\13\Microsoft.DiaSymReader.ISymUnmanagedBinder3.cs
Web Access
Project: src\src\symreader\src\Microsoft.DiaSymReader\Microsoft.DiaSymReader.csproj (Microsoft.DiaSymReader)
// <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*, void*, ushort*, ushort*, void**, int> GetReaderForFile_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, void*, void**, int> GetReaderFromStream_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, ushort*, ushort*, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy, void**, int> GetReaderForFile2_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, ushort*, ushort*, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy, void*, void**, int> GetReaderFromCallback_6;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([67, 61, 173, 40, 1, 182, 38, 77, 138, 27, 37, 249, 22, 90, 249, 215]);
    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.DiaSymReader.ISymUnmanagedBinder3
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;

    static InterfaceImplementation()
    {
        global::System.Runtime.InteropServices.NativeMemory.Copy(
            global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder2).TypeHandle).ManagedVirtualMethodTable,
            global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable),
            (nuint)(sizeof(void*) * 6));

        Vtable.GetReaderFromCallback_6 = &ABI_GetReaderFromCallback;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedBinder3.GetReaderFromCallback(object metadataImporter, string fileName, string searchPath, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy searchPolicy, object callback, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder3));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, ushort*, ushort*, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy, void*, void**, int> )__vtable[6]);
        {
            bool __invokeSucceeded = default;
            reader = default;
            void* __metadataImporter_native = default;
            void* __callback_native = default;
            void* __reader_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __callback_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(callback);
                __metadataImporter_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(metadataImporter);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (void* __searchPath_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(searchPath))
                fixed (void* __fileName_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(fileName))
                {
                    __retVal = __target(__this, __metadataImporter_native, (ushort*)__fileName_native, (ushort*)__searchPath_native, searchPolicy, __callback_native, &__reader_native);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                __invokeSucceeded = true;
                // Unmarshal - Convert native data to managed data.
                reader = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToManaged(__reader_native);
            }
            finally
            {
                if (__invokeSucceeded)
                {
                    // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.Free(__reader_native);
                }
    
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__callback_native);
                global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__metadataImporter_native);
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetReaderFromCallback(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __metadataImporter_native, ushort* __fileName_native, ushort* __searchPath_native, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy searchPolicy, void* __callback_native, void** __reader_native__param)
    {
        global::Microsoft.DiaSymReader.ISymUnmanagedBinder3 @this = default;
        object metadataImporter = default;
        string fileName = default;
        string searchPath = default;
        object callback = default;
        ref void* __reader_native = ref *__reader_native__param;
        global::Microsoft.DiaSymReader.ISymUnmanagedReader reader = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            callback = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToManaged(__callback_native);
            searchPath = global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.ConvertToManaged(__searchPath_native);
            fileName = global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.ConvertToManaged(__fileName_native);
            metadataImporter = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToManaged(__metadataImporter_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymUnmanagedBinder3>(__this_native);
            __retVal = @this.GetReaderFromCallback(metadataImporter, fileName, searchPath, searchPolicy, callback, out reader);
            // Marshal - Convert managed data to native data.
            __reader_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToUnmanaged(reader);
        }
        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.DiaSymReader.ISymUnmanagedBinder3.GetReaderForFile(object metadataImporter, string fileName, string searchPath, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder3));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, ushort*, ushort*, void**, int> )__vtable[3]);
        {
            bool __invokeSucceeded = default;
            reader = default;
            void* __metadataImporter_native = default;
            void* __reader_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __metadataImporter_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(metadataImporter);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (void* __searchPath_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(searchPath))
                fixed (void* __fileName_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(fileName))
                {
                    __retVal = __target(__this, __metadataImporter_native, (ushort*)__fileName_native, (ushort*)__searchPath_native, &__reader_native);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                __invokeSucceeded = true;
                // Unmarshal - Convert native data to managed data.
                reader = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToManaged(__reader_native);
            }
            finally
            {
                if (__invokeSucceeded)
                {
                    // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.Free(__reader_native);
                }
    
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__metadataImporter_native);
            }
    
            return __retVal;
        }
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedBinder3.GetReaderFromStream(object metadataImporter, object stream, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder3));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, void*, void**, int> )__vtable[4]);
        {
            bool __invokeSucceeded = default;
            reader = default;
            void* __metadataImporter_native = default;
            void* __stream_native = default;
            void* __reader_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __stream_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(stream);
                __metadataImporter_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(metadataImporter);
                {
                    __retVal = __target(__this, __metadataImporter_native, __stream_native, &__reader_native);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                __invokeSucceeded = true;
                // Unmarshal - Convert native data to managed data.
                reader = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToManaged(__reader_native);
            }
            finally
            {
                if (__invokeSucceeded)
                {
                    // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.Free(__reader_native);
                }
    
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__stream_native);
                global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__metadataImporter_native);
            }
    
            return __retVal;
        }
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.DiaSymReader.ISymUnmanagedBinder3.GetReaderForFile2(object metadataImporter, string fileName, string searchPath, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy searchPolicy, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder3));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, ushort*, ushort*, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy, void**, int> )__vtable[5]);
        {
            bool __invokeSucceeded = default;
            reader = default;
            void* __metadataImporter_native = default;
            void* __reader_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __metadataImporter_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(metadataImporter);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (void* __searchPath_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(searchPath))
                fixed (void* __fileName_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(fileName))
                {
                    __retVal = __target(__this, __metadataImporter_native, (ushort*)__fileName_native, (ushort*)__searchPath_native, searchPolicy, &__reader_native);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                __invokeSucceeded = true;
                // Unmarshal - Convert native data to managed data.
                reader = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.ConvertToManaged(__reader_native);
            }
            finally
            {
                if (__invokeSucceeded)
                {
                    // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedReader>.Free(__reader_native);
                }
    
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__metadataImporter_native);
            }
    
            return __retVal;
        }
    }

    int global::Microsoft.DiaSymReader.ISymUnmanagedBinder.GetReaderForFile(object metadataImporter, string fileName, string searchPath, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader) => throw new global::System.Diagnostics.UnreachableException();

    int global::Microsoft.DiaSymReader.ISymUnmanagedBinder.GetReaderFromStream(object metadataImporter, object stream, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader) => throw new global::System.Diagnostics.UnreachableException();

    int global::Microsoft.DiaSymReader.ISymUnmanagedBinder2.GetReaderForFile2(object metadataImporter, string fileName, string searchPath, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy searchPolicy, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader) => throw new global::System.Diagnostics.UnreachableException();
}

namespace Microsoft.DiaSymReader
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    public unsafe partial interface ISymUnmanagedBinder3
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        [global::System.Runtime.InteropServices.PreserveSigAttribute()]
        new int GetReaderForFile(object metadataImporter, string fileName, string searchPath, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader) => ((global::Microsoft.DiaSymReader.ISymUnmanagedBinder)this).GetReaderForFile(metadataImporter, fileName, searchPath, out reader);
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        [global::System.Runtime.InteropServices.PreserveSigAttribute()]
        new int GetReaderFromStream(object metadataImporter, object stream, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader) => ((global::Microsoft.DiaSymReader.ISymUnmanagedBinder)this).GetReaderFromStream(metadataImporter, stream, out reader);
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        [global::System.Runtime.InteropServices.PreserveSigAttribute()]
        new int GetReaderForFile2(object metadataImporter, string fileName, string searchPath, global::Microsoft.DiaSymReader.SymUnmanagedSearchPolicy searchPolicy, out global::Microsoft.DiaSymReader.ISymUnmanagedReader reader) => ((global::Microsoft.DiaSymReader.ISymUnmanagedBinder2)this).GetReaderForFile2(metadataImporter, fileName, searchPath, searchPolicy, out reader);
    }
}