|
// <auto-generated />
#pragma warning disable CS0612, CS0618, CS0649, CS1591
[global::System.Runtime.InteropServices.StructLayoutAttribute(global::System.Runtime.InteropServices.LayoutKind.Sequential)]
file unsafe struct InterfaceImplementationVtable
{
public delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0;
public delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1;
public delegate* unmanaged[MemberFunction]<void*, uint> Release_2;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ushort**, int*, int> GetSQLInfo_3;
}
file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([116, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]);
public static void** ManagedVirtualMethodTable => (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
}
[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo
{
[global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
public static readonly InterfaceImplementationVtable Vtable;
static InterfaceImplementation()
{
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.GetSQLInfo_3 = &ABI_GetSQLInfo;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.26904")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo.GetSQLInfo(out string pbstrSQLState)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo));
var __target = ((delegate* unmanaged[MemberFunction]<void*, ushort**, int*, int> )__vtable[3]);
{
bool __invokeSucceeded = default;
pbstrSQLState = default;
ushort* __pbstrSQLState_native = default;
int __retVal = default;
int __invokeRetVal = default;
try
{
{
__invokeRetVal = __target(__this, &__pbstrSQLState_native, &__retVal);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([116, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
global::System.GC.KeepAlive(this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
pbstrSQLState = global::System.Runtime.InteropServices.Marshalling.BStrStringMarshaller.ConvertToManaged(__pbstrSQLState_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.BStrStringMarshaller.Free(__pbstrSQLState_native);
}
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetSQLInfo(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ushort** __pbstrSQLState_native__param, int* __invokeRetValUnmanaged__param)
{
global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo @this = default;
ref ushort* __pbstrSQLState_native = ref *__pbstrSQLState_native__param;
string pbstrSQLState = default;
ref int __invokeRetValUnmanaged = ref *__invokeRetValUnmanaged__param;
int __invokeRetVal = default;
int __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>(__this_native);
__invokeRetVal = @this.GetSQLInfo(out pbstrSQLState);
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__retVal = 0; // S_OK
// Marshal - Convert managed data to native data.
__invokeRetValUnmanaged = __invokeRetVal;
__pbstrSQLState_native = (ushort*)global::System.Runtime.InteropServices.Marshalling.BStrStringMarshaller.ConvertToUnmanaged(pbstrSQLState);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
}
return __retVal;
}
}
namespace System.Data.Common
{
internal static unsafe partial class UnsafeNativeMethods
{
[global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
internal unsafe partial interface ISQLErrorInfo
{
}
}
}
|