File: _generated\11\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner.cs
Web Access
Project: src\src\runtime\src\libraries\System.Transactions.Local\src\System.Transactions.Local.csproj (System.Transactions.Local)
// <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*, int, global::System.Transactions.DtcProxyShim.OletxXacttc, uint, int> Commit_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint, int, int, int> Abort_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::System.Transactions.DtcProxyShim.OletxXactTransInfo*, int> GetTransactionInfo_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> CloneWithCommitDisabled_6;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]);
    public static void** ManagedVirtualMethodTable => (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
}

[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner
{
    [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.Commit_3 = &ABI_Commit;
        Vtable.Abort_4 = &ABI_Abort;
        Vtable.GetTransactionInfo_5 = &ABI_GetTransactionInfo;
        Vtable.CloneWithCommitDisabled_6 = &ABI_CloneWithCommitDisabled;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.26904")]
    void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner.Commit(bool fRetainingt, global::System.Transactions.DtcProxyShim.OletxXacttc grfTC, uint grfRM)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int, global::System.Transactions.DtcProxyShim.OletxXacttc, uint, int> )__vtable[3]);
        {
            int __fRetainingt_native;
            int __invokeRetVal;
            // Marshal - Convert managed data to native data.
            __fRetainingt_native = (int)(fRetainingt ? 1 : 0);
            {
                __invokeRetVal = __target(__this, __fRetainingt_native, grfTC, grfRM);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
            global::System.GC.KeepAlive(this);
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_Commit(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int __fRetainingt_native, global::System.Transactions.DtcProxyShim.OletxXacttc grfTC, uint grfRM)
    {
        global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner @this = default;
        bool fRetainingt = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            fRetainingt = __fRetainingt_native != 0;
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner>(__this_native);
            @this.Commit(fRetainingt, grfTC, grfRM);
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            __retVal = 0; // S_OK
        }
        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.26904")]
    void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner.Abort(nint reason, bool retaining, bool async)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint, int, int, int> )__vtable[4]);
        {
            int __retaining_native;
            int __async_native;
            int __invokeRetVal;
            // Marshal - Convert managed data to native data.
            __async_native = (int)(async ? 1 : 0);
            __retaining_native = (int)(retaining ? 1 : 0);
            {
                __invokeRetVal = __target(__this, reason, __retaining_native, __async_native);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
            global::System.GC.KeepAlive(this);
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_Abort(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint reason, int __retaining_native, int __async_native)
    {
        global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner @this = default;
        bool retaining = default;
        bool async = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            async = __async_native != 0;
            retaining = __retaining_native != 0;
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner>(__this_native);
            @this.Abort(reason, retaining, async);
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            __retVal = 0; // S_OK
        }
        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.26904")]
    void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner.GetTransactionInfo(out global::System.Transactions.DtcProxyShim.OletxXactTransInfo xactInfo)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, global::System.Transactions.DtcProxyShim.OletxXactTransInfo*, int> )__vtable[5]);
        {
            xactInfo = default;
            int __invokeRetVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (global::System.Transactions.DtcProxyShim.OletxXactTransInfo* __xactInfo_native = &xactInfo)
            {
                __invokeRetVal = __target(__this, __xactInfo_native);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
            global::System.GC.KeepAlive(this);
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_GetTransactionInfo(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::System.Transactions.DtcProxyShim.OletxXactTransInfo* __xactInfo_native__param)
    {
        global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner @this = default;
        ref global::System.Transactions.DtcProxyShim.OletxXactTransInfo __xactInfo_native = ref *__xactInfo_native__param;
        global::System.Transactions.DtcProxyShim.OletxXactTransInfo xactInfo = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner>(__this_native);
            @this.GetTransactionInfo(out xactInfo);
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            __retVal = 0; // S_OK
            // Marshal - Convert managed data to native data.
            __xactInfo_native = xactInfo;
        }
        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.26904")]
    void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner.CloneWithCommitDisabled(out global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction ppITransaction)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[6]);
        {
            bool __invokeSucceeded = default;
            ppITransaction = default;
            void* __ppITransaction_native = default;
            int __invokeRetVal = default;
            try
            {
                {
                    __invokeRetVal = __target(__this, &__ppITransaction_native);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
                global::System.GC.KeepAlive(this);
                __invokeSucceeded = true;
                // Unmarshal - Convert native data to managed data.
                ppITransaction = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction>.ConvertToManaged(__ppITransaction_native);
            }
            finally
            {
                if (__invokeSucceeded)
                {
                    // CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction>.Free(__ppITransaction_native);
                }
            }
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_CloneWithCommitDisabled(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __ppITransaction_native__param)
    {
        global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner @this = default;
        ref void* __ppITransaction_native = ref *__ppITransaction_native__param;
        global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction ppITransaction = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner>(__this_native);
            @this.CloneWithCommitDisabled(out ppITransaction);
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            __retVal = 0; // S_OK
            // Marshal - Convert managed data to native data.
            __ppITransaction_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction>.ConvertToUnmanaged(ppITransaction);
        }
        catch (global::System.Exception __exception)
        {
            __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
        }
    
        return __retVal;
    }
}

namespace System.Transactions.DtcProxyShim.DtcInterfaces
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    internal unsafe partial interface ITransactionCloner
    {
    }
}