|
// <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*, int> AddErrorRecord_3;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int> GetBasicErrorInfo_4;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, global::System.Guid*, void**, global::System.Data.OleDb.OleDbHResult> GetCustomErrorObject_5;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, int, void**, int> GetErrorInfo_6;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int> GetErrorParameters_7;
public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> GetRecordCount_8;
}
file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
public static global::System.Guid Iid { get; } = new([103, 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.IErrorRecords
{
[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.AddErrorRecord_3 = &ABI_AddErrorRecord;
Vtable.GetBasicErrorInfo_4 = &ABI_GetBasicErrorInfo;
Vtable.GetCustomErrorObject_5 = &ABI_GetCustomErrorObject;
Vtable.GetErrorInfo_6 = &ABI_GetErrorInfo;
Vtable.GetErrorParameters_7 = &ABI_GetErrorParameters;
Vtable.GetRecordCount_8 = &ABI_GetRecordCount;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.26904")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.AddErrorRecord()
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int> )__vtable[3]);
{
int __invokeRetVal;
{
__invokeRetVal = __target(__this);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
global::System.GC.KeepAlive(this);
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_AddErrorRecord(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native)
{
global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = 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.IErrorRecords>(__this_native);
@this.AddErrorRecord();
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__retVal = 0; // S_OK
}
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", "11.0.14.26904")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetBasicErrorInfo()
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int> )__vtable[4]);
{
int __invokeRetVal;
{
__invokeRetVal = __target(__this);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
global::System.GC.KeepAlive(this);
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetBasicErrorInfo(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native)
{
global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = 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.IErrorRecords>(__this_native);
@this.GetBasicErrorInfo();
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__retVal = 0; // S_OK
}
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", "11.0.14.26904")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
global::System.Data.OleDb.OleDbHResult global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetCustomErrorObject(int ulRecordNum, in global::System.Guid riid, out global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo ppObject)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int, global::System.Guid*, void**, global::System.Data.OleDb.OleDbHResult> )__vtable[5]);
{
bool __invokeSucceeded = default;
ppObject = default;
void* __ppObject_native = default;
global::System.Data.OleDb.OleDbHResult __retVal = default;
try
{
// Pin - Pin data in preparation for calling the P/Invoke.
fixed (global::System.Guid* __riid_native = &riid)
{
__retVal = __target(__this, ulRecordNum, __riid_native, &__ppObject_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.GC.KeepAlive(this);
__invokeSucceeded = true;
// Unmarshal - Convert native data to managed data.
ppObject = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.ConvertToManaged(__ppObject_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.Free(__ppObject_native);
}
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static global::System.Data.OleDb.OleDbHResult ABI_GetCustomErrorObject(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int ulRecordNum, global::System.Guid* __riid_native__param, void** __ppObject_native__param)
{
global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default;
ref global::System.Guid __riid_native = ref *__riid_native__param;
global::System.Guid riid = default;
ref void* __ppObject_native = ref *__ppObject_native__param;
global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo ppObject = default;
global::System.Data.OleDb.OleDbHResult __retVal = default;
try
{
// Unmarshal - Convert native data to managed data.
riid = __riid_native;
@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native);
__retVal = @this.GetCustomErrorObject(ulRecordNum, in riid, out ppObject);
// Marshal - Convert managed data to native data.
__ppObject_native = (void*)global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.ConvertToUnmanaged(ppObject);
}
catch (global::System.Exception __exception)
{
__retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsDefaultMarshaller<global::System.Data.OleDb.OleDbHResult>.ConvertToUnmanaged(__exception);
}
return __retVal;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.26904")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
global::System.Data.Common.UnsafeNativeMethods.IErrorInfo global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetErrorInfo(int ulRecordNum, int lcid)
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int, int, void**, int> )__vtable[6]);
{
bool __invokeSucceeded = default;
global::System.Data.Common.UnsafeNativeMethods.IErrorInfo __retVal = default;
void* __retVal_native = default;
int __invokeRetVal = default;
try
{
{
__invokeRetVal = __target(__this, ulRecordNum, lcid, &__retVal_native);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 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.
__retVal = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToManaged(__retVal_native);
}
finally
{
if (__invokeSucceeded)
{
// CleanupCalleeAllocated - Perform cleanup of callee allocated resources.
global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.Free(__retVal_native);
}
}
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetErrorInfo(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int ulRecordNum, int lcid, void** __invokeRetValUnmanaged__param)
{
global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default;
ref void* __invokeRetValUnmanaged = ref *__invokeRetValUnmanaged__param;
global::System.Data.Common.UnsafeNativeMethods.IErrorInfo __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.IErrorRecords>(__this_native);
__invokeRetVal = @this.GetErrorInfo(ulRecordNum, lcid);
// 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 = (void*)global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToUnmanaged(__invokeRetVal);
}
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", "11.0.14.26904")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetErrorParameters()
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int> )__vtable[7]);
{
int __invokeRetVal;
{
__invokeRetVal = __target(__this);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
global::System.GC.KeepAlive(this);
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetErrorParameters(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native)
{
global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = 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.IErrorRecords>(__this_native);
@this.GetErrorParameters();
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
__retVal = 0; // S_OK
}
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", "11.0.14.26904")]
[global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
int global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetRecordCount()
{
var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords));
var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int> )__vtable[8]);
{
int __retVal;
int __invokeRetVal;
{
__invokeRetVal = __target(__this, &__retVal);
}
// NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
global::System.GC.KeepAlive(this);
return __retVal;
}
}
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
internal static int ABI_GetRecordCount(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* __invokeRetValUnmanaged__param)
{
global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = 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.IErrorRecords>(__this_native);
__invokeRetVal = @this.GetRecordCount();
// 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;
}
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 IErrorRecords
{
}
}
}
|