// <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, byte*, global::System.Guid*, void**, int> Import_3;
}
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([90, 155, 207, 225, 69, 135, 206, 17, 169, 186, 0, 170, 0, 108, 55, 6]);
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::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport
{
[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.Import_3 = &ABI_Import;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.46520")]
void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport.Import(uint cbTransactionCookie, byte[] rgbTransactionCookie, in global::System.Guid piid, out object ppvTransaction)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte*, global::System.Guid*, void**, int> )__vtable[3]);
{
bool __invokeSucceeded = default;
ppvTransaction = default;
void* __ppvTransaction_native = default;
int __invokeRetVal = default;
try
{
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (global::System.Guid* __piid_native = &piid)
fixed (void* __rgbTransactionCookie_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.ManagedToUnmanagedIn.GetPinnableReference(rgbTransactionCookie))
{
__invokeRetVal = __target(__this, cbTransactionCookie, (byte*)__rgbTransactionCookie_native, __piid_native, &__ppvTransaction_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.GC.KeepAlive(this);
// Unmarshal - Convert native data to managed data.
global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([90, 155, 207, 225, 69, 135, 206, 17, 169, 186, 0, 170, 0, 108, 55, 6]), (global::System.IntPtr)__this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
ppvTransaction = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToManaged(__ppvTransaction_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__ppvTransaction_native);
}
}
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_Import(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint cbTransactionCookie, byte* __rgbTransactionCookie_native, global::System.Guid* __piid_native__param, void** __ppvTransaction_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport @this = default;
byte[] rgbTransactionCookie = default;
ref global::System.Guid __piid_native = ref *__piid_native__param;
global::System.Guid piid = default;
ref void* __ppvTransaction_native = ref *__ppvTransaction_native__param;
object ppvTransaction = default;
int __retVal = default;
// Setup - Perform required setup.
int __rgbTransactionCookie_native__numElements;
__rgbTransactionCookie_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__retVal = 0; // S_OK
piid = __piid_native;
__rgbTransactionCookie_native__numElements = checked((int)(cbTransactionCookie));
rgbTransactionCookie = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.AllocateContainerForManagedElements(__rgbTransactionCookie_native, __rgbTransactionCookie_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbTransactionCookie_native, __rgbTransactionCookie_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbTransactionCookie));
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport>(__this_native);
@this.Import(cbTransactionCookie, rgbTransactionCookie, in piid, out ppvTransaction);
// Marshal - Convert managed data to native data.
__ppvTransaction_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(ppvTransaction);
}
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 ITransactionImport
{
}
}