// <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*, global::System.Guid*, int> GetRemoteClassId_3;
public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, byte*, void**, int> Create_4;
}
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([83, 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.ITransactionExportFactory
{
[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.GetRemoteClassId_3 = &ABI_GetRemoteClassId;
Vtable.Create_4 = &ABI_Create;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.46520")]
void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory.GetRemoteClassId(out global::System.Guid pclsid)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory));
var __target = ((delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, int> )__vtable[3]);
{
pclsid = default;
int __invokeRetVal;
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (global::System.Guid* __pclsid_native = &pclsid)
{
__invokeRetVal = __target(__this, __pclsid_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([83, 155, 207, 225, 69, 135, 206, 17, 169, 186, 0, 170, 0, 108, 55, 6]), (global::System.IntPtr)__this);
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_GetRemoteClassId(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::System.Guid* __pclsid_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory @this = default;
ref global::System.Guid __pclsid_native = ref *__pclsid_native__param;
global::System.Guid pclsid = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
__retVal = 0; // S_OK
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory>(__this_native);
@this.GetRemoteClassId(out pclsid);
// Marshal - Convert managed data to native data.
__pclsid_native = pclsid;
}
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.46520")]
void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory.Create(uint cbWhereabouts, byte[] rgbWhereabouts, out global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport ppExport)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte*, void**, int> )__vtable[4]);
{
bool __invokeSucceeded = default;
ppExport = default;
void* __ppExport_native = default;
int __invokeRetVal = default;
try
{
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (void* __rgbWhereabouts_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.ManagedToUnmanagedIn.GetPinnableReference(rgbWhereabouts))
{
__invokeRetVal = __target(__this, cbWhereabouts, (byte*)__rgbWhereabouts_native, &__ppExport_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([83, 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.
ppExport = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport>.ConvertToManaged(__ppExport_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport>.Free(__ppExport_native);
}
}
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_Create(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint cbWhereabouts, byte* __rgbWhereabouts_native, void** __ppExport_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory @this = default;
byte[] rgbWhereabouts = default;
ref void* __ppExport_native = ref *__ppExport_native__param;
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport ppExport = default;
int __retVal = default;
// Setup - Perform required setup.
int __rgbWhereabouts_native__numElements;
__rgbWhereabouts_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__retVal = 0; // S_OK
__rgbWhereabouts_native__numElements = checked((int)(cbWhereabouts));
rgbWhereabouts = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.AllocateContainerForManagedElements(__rgbWhereabouts_native, __rgbWhereabouts_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbWhereabouts_native, __rgbWhereabouts_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbWhereabouts));
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory>(__this_native);
@this.Create(cbWhereabouts, rgbWhereabouts, out ppExport);
// Marshal - Convert managed data to native data.
__ppExport_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport>.ConvertToUnmanaged(ppExport);
}
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 ITransactionExportFactory
{
}
}