// <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*, byte*, void*, void**, int> Create_3;
public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::System.Guid*, byte*, void*, global::System.Guid*, void**, int> CreateEx_4;
}
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([33, 156, 54, 107, 210, 251, 209, 17, 143, 71, 0, 192, 79, 142, 229, 125]);
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.IResourceManagerFactory2
{
[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.Create_3 = &ABI_Create;
Vtable.CreateEx_4 = &ABI_CreateEx;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.46520")]
void global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2.Create(in global::System.Guid pguidRM, string pszRMName, global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink pIResMgrSink, out global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager rm)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, byte*, void*, void**, int> )__vtable[3]);
{
bool __invokeSucceeded = default;
rm = default;
byte* __pszRMName_native = default;
void* __pIResMgrSink_native = default;
void* __rm_native = default;
int __invokeRetVal = default;
// Setup - Perform required setup.
scoped global::System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller.ManagedToUnmanagedIn __pszRMName_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__pIResMgrSink_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink>.ConvertToUnmanaged(pIResMgrSink);
__pszRMName_native__marshaller.FromManaged(pszRMName, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller.ManagedToUnmanagedIn.BufferSize]);
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (global::System.Guid* __pguidRM_native = &pguidRM)
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__pszRMName_native = __pszRMName_native__marshaller.ToUnmanaged();
__invokeRetVal = __target(__this, __pguidRM_native, __pszRMName_native, __pIResMgrSink_native, &__rm_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([33, 156, 54, 107, 210, 251, 209, 17, 143, 71, 0, 192, 79, 142, 229, 125]), (global::System.IntPtr)__this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
rm = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager>.ConvertToManaged(__rm_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager>.Free(__rm_native);
}
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink>.Free(__pIResMgrSink_native);
__pszRMName_native__marshaller.Free();
}
}
}
}
[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, global::System.Guid* __pguidRM_native__param, byte* __pszRMName_native, void* __pIResMgrSink_native, void** __rm_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2 @this = default;
ref global::System.Guid __pguidRM_native = ref *__pguidRM_native__param;
global::System.Guid pguidRM = default;
string pszRMName = default;
global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink pIResMgrSink = default;
ref void* __rm_native = ref *__rm_native__param;
global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager rm = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
__retVal = 0; // S_OK
pIResMgrSink = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink>.ConvertToManaged(__pIResMgrSink_native);
pszRMName = global::System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller.ConvertToManaged(__pszRMName_native);
pguidRM = __pguidRM_native;
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2>(__this_native);
@this.Create(in pguidRM, pszRMName, pIResMgrSink, out rm);
// Marshal - Convert managed data to native data.
__rm_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager>.ConvertToUnmanaged(rm);
}
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.IResourceManagerFactory2.CreateEx(in global::System.Guid pguidRM, string pszRMName, global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink pIResMgrSink, in global::System.Guid riidRequested, out object rm)
{
unsafe
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2));
var __target = ((delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, byte*, void*, global::System.Guid*, void**, int> )__vtable[4]);
{
bool __invokeSucceeded = default;
rm = default;
byte* __pszRMName_native = default;
void* __pIResMgrSink_native = default;
void* __rm_native = default;
int __invokeRetVal = default;
// Setup - Perform required setup.
scoped global::System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller.ManagedToUnmanagedIn __pszRMName_native__marshaller = new();
try
{
// Marshal - Convert managed data to native data.
__pIResMgrSink_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink>.ConvertToUnmanaged(pIResMgrSink);
__pszRMName_native__marshaller.FromManaged(pszRMName, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller.ManagedToUnmanagedIn.BufferSize]);
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (global::System.Guid* __riidRequested_native = &riidRequested)
fixed (global::System.Guid* __pguidRM_native = &pguidRM)
{
// PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
__pszRMName_native = __pszRMName_native__marshaller.ToUnmanaged();
__invokeRetVal = __target(__this, __pguidRM_native, __pszRMName_native, __pIResMgrSink_native, __riidRequested_native, &__rm_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([33, 156, 54, 107, 210, 251, 209, 17, 143, 71, 0, 192, 79, 142, 229, 125]), (global::System.IntPtr)__this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
rm = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToManaged(__rm_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.Free(__rm_native);
}
// CleanupCallerAllocated - Perform cleanup of caller allocated resources.
global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink>.Free(__pIResMgrSink_native);
__pszRMName_native__marshaller.Free();
}
}
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static unsafe int ABI_CreateEx(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::System.Guid* __pguidRM_native__param, byte* __pszRMName_native, void* __pIResMgrSink_native, global::System.Guid* __riidRequested_native__param, void** __rm_native__param)
{
unsafe
{
global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2 @this = default;
ref global::System.Guid __pguidRM_native = ref *__pguidRM_native__param;
global::System.Guid pguidRM = default;
string pszRMName = default;
global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink pIResMgrSink = default;
ref global::System.Guid __riidRequested_native = ref *__riidRequested_native__param;
global::System.Guid riidRequested = default;
ref void* __rm_native = ref *__rm_native__param;
object rm = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
__retVal = 0; // S_OK
riidRequested = __riidRequested_native;
pIResMgrSink = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink>.ConvertToManaged(__pIResMgrSink_native);
pszRMName = global::System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller.ConvertToManaged(__pszRMName_native);
pguidRM = __pguidRM_native;
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2>(__this_native);
@this.CreateEx(in pguidRM, pszRMName, pIResMgrSink, in riidRequested, out rm);
// Marshal - Convert managed data to native data.
__rm_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<object>.ConvertToUnmanaged(rm);
}
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 IResourceManagerFactory2
{
}
}