// <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*, void**, int> GetOptionsObject_3;
public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint, global::System.Transactions.DtcProxyShim.OletxTransactionIsolationLevel, global::System.Transactions.DtcProxyShim.OletxTransactionIsoFlags, void*, void**, int> BeginTransaction_4;
}
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([225, 217, 106, 58, 185, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]);
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.ITransactionDispenser
{
[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.GetOptionsObject_3 = &ABI_GetOptionsObject;
Vtable.BeginTransaction_4 = &ABI_BeginTransaction;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.46520")]
void global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionDispenser.GetOptionsObject(out global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions ppOptions)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionDispenser));
var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[3]);
{
bool __invokeSucceeded = default;
ppOptions = default;
void* __ppOptions_native = default;
int __invokeRetVal = default;
try
{
{
__invokeRetVal = __target(__this, &__ppOptions_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([225, 217, 106, 58, 185, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
ppOptions = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions>.ConvertToManaged(__ppOptions_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions>.Free(__ppOptions_native);
}
}
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_GetOptionsObject(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __ppOptions_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionDispenser @this = default;
ref void* __ppOptions_native = ref *__ppOptions_native__param;
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions ppOptions = 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.ITransactionDispenser>(__this_native);
@this.GetOptionsObject(out ppOptions);
// Marshal - Convert managed data to native data.
__ppOptions_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions>.ConvertToUnmanaged(ppOptions);
}
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.ITransactionDispenser.BeginTransaction(nint punkOuter, global::System.Transactions.DtcProxyShim.OletxTransactionIsolationLevel isoLevel, global::System.Transactions.DtcProxyShim.OletxTransactionIsoFlags isoFlags, global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions pOptions, 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.ITransactionDispenser));
var __target = ((delegate* unmanaged[MemberFunction]<void*, nint, global::System.Transactions.DtcProxyShim.OletxTransactionIsolationLevel, global::System.Transactions.DtcProxyShim.OletxTransactionIsoFlags, void*, void**, int> )__vtable[4]);
{
bool __invokeSucceeded = default;
ppTransaction = default;
void* __pOptions_native = default;
void* __ppTransaction_native = default;
int __invokeRetVal = default;
try
{
// Marshal - Convert managed data to native data.
__pOptions_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions>.ConvertToUnmanaged(pOptions);
{
__invokeRetVal = __target(__this, punkOuter, isoLevel, isoFlags, __pOptions_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([225, 217, 106, 58, 185, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (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);
}
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions>.Free(__pOptions_native);
}
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_BeginTransaction(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint punkOuter, global::System.Transactions.DtcProxyShim.OletxTransactionIsolationLevel isoLevel, global::System.Transactions.DtcProxyShim.OletxTransactionIsoFlags isoFlags, void* __pOptions_native, void** __ppTransaction_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionDispenser @this = default;
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions pOptions = default;
ref void* __ppTransaction_native = ref *__ppTransaction_native__param;
global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction ppTransaction = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
__retVal = 0; // S_OK
pOptions = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions>.ConvertToManaged(__pOptions_native);
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionDispenser>(__this_native);
@this.BeginTransaction(punkOuter, isoLevel, isoFlags, pOptions, 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;
}
}
}
namespace System.Transactions.DtcProxyShim.DtcInterfaces
{
[global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
internal unsafe partial interface ITransactionDispenser
{
}
}