// <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*, void**, int> UnmarshalPropagationToken_3;
public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetReturnTokenSize_4;
public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, byte**, uint*, int> MarshalReturnToken_5;
public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int> Reset_6;
}
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]);
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.ITransactionReceiver
{
[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.UnmarshalPropagationToken_3 = &ABI_UnmarshalPropagationToken;
Vtable.GetReturnTokenSize_4 = &ABI_GetReturnTokenSize;
Vtable.MarshalReturnToken_5 = &ABI_MarshalReturnToken;
Vtable.Reset_6 = &ABI_Reset;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.46520")]
void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver.UnmarshalPropagationToken(uint cbToken, byte[] rgbToken, out global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction ppTransaction)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte*, void**, int> )__vtable[3]);
{
bool __invokeSucceeded = default;
ppTransaction = default;
void* __ppTransaction_native = default;
int __invokeRetVal = default;
try
{
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (void* __rgbToken_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.ManagedToUnmanagedIn.GetPinnableReference(rgbToken))
{
__invokeRetVal = __target(__this, cbToken, (byte*)__rgbToken_native, &__ppTransaction_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([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
ppTransaction = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction>.ConvertToManaged(__ppTransaction_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction>.Free(__ppTransaction_native);
}
}
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_UnmarshalPropagationToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint cbToken, byte* __rgbToken_native, void** __ppTransaction_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver @this = default;
byte[] rgbToken = default;
ref void* __ppTransaction_native = ref *__ppTransaction_native__param;
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction ppTransaction = default;
int __retVal = default;
// Setup - Perform required setup.
int __rgbToken_native__numElements;
__rgbToken_native__numElements = default;
try
{
// Unmarshal - Convert native data to managed data.
__retVal = 0; // S_OK
__rgbToken_native__numElements = checked((int)(cbToken));
rgbToken = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.AllocateContainerForManagedElements(__rgbToken_native, __rgbToken_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbToken_native, __rgbToken_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbToken));
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver>(__this_native);
@this.UnmarshalPropagationToken(cbToken, rgbToken, out ppTransaction);
// Marshal - Convert managed data to native data.
__ppTransaction_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction>.ConvertToUnmanaged(ppTransaction);
}
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.ITransactionReceiver.GetReturnTokenSize(out uint pcbReturnToken)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[4]);
{
pcbReturnToken = default;
int __invokeRetVal;
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (uint* __pcbReturnToken_native = &pcbReturnToken)
{
__invokeRetVal = __target(__this, __pcbReturnToken_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([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_GetReturnTokenSize(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* __pcbReturnToken_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver @this = default;
ref uint __pcbReturnToken_native = ref *__pcbReturnToken_native__param;
uint pcbReturnToken = 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.ITransactionReceiver>(__this_native);
@this.GetReturnTokenSize(out pcbReturnToken);
// Marshal - Convert managed data to native data.
__pcbReturnToken_native = pcbReturnToken;
}
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.ITransactionReceiver.MarshalReturnToken(uint cbReturnToken, out byte[] rgbReturnToken, out uint pcbUsed)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver));
var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte**, uint*, int> )__vtable[5]);
{
bool __invokeSucceeded = default;
rgbReturnToken = default;
pcbUsed = default;
byte* __rgbReturnToken_native = default;
int __invokeRetVal = default;
// Setup - Perform required setup.
int __rgbReturnToken_native__numElements;
global::System.Runtime.CompilerServices.Unsafe.SkipInit(out __rgbReturnToken_native__numElements);
try
{
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (uint* __pcbUsed_native = &pcbUsed)
{
__invokeRetVal = __target(__this, cbReturnToken, &__rgbReturnToken_native, __pcbUsed_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([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
__rgbReturnToken_native__numElements = checked((int)(cbReturnToken));
rgbReturnToken = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.AllocateContainerForManagedElements(__rgbReturnToken_native, __rgbReturnToken_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbReturnToken_native, __rgbReturnToken_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbReturnToken));
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.Free(__rgbReturnToken_native);
}
}
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_MarshalReturnToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint cbReturnToken, byte** __rgbReturnToken_native__param, uint* __pcbUsed_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver @this = default;
ref byte* __rgbReturnToken_native = ref *__rgbReturnToken_native__param;
byte[] rgbReturnToken = default;
ref uint __pcbUsed_native = ref *__pcbUsed_native__param;
uint pcbUsed = default;
int __retVal = default;
// Setup - Perform required setup.
int __rgbReturnToken_native__numElements;
__rgbReturnToken_native__numElements = 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.ITransactionReceiver>(__this_native);
@this.MarshalReturnToken(cbReturnToken, out rgbReturnToken, out pcbUsed);
// Marshal - Convert managed data to native data.
__pcbUsed_native = pcbUsed;
__rgbReturnToken_native = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.AllocateContainerForUnmanagedElements(rgbReturnToken, out __rgbReturnToken_native__numElements);
global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesSource(rgbReturnToken).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesDestination(__rgbReturnToken_native, __rgbReturnToken_native__numElements));
}
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.ITransactionReceiver.Reset()
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int> )__vtable[6]);
{
int __invokeRetVal;
{
__invokeRetVal = __target(__this);
}
// 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([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_Reset(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver @this = 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.ITransactionReceiver>(__this_native);
@this.Reset();
}
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 ITransactionReceiver
{
}
}