| File: UnsafeNativeMethods.COMWrappers.cs | Web Access |
| Project: src\runtime\src\libraries\System.Data.OleDb\src\System.Data.OleDb.csproj (System.Data.OleDb) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Data.OleDb; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; namespace System.Data.Common { internal static partial class UnsafeNativeMethods { // // Oleaut32 // [LibraryImport(Interop.Libraries.OleAut32)] internal static unsafe partial OleDbHResult GetErrorInfo( int dwReserved, [MarshalUsing(typeof(UniqueComInterfaceMarshaller<IErrorInfo>))] out IErrorInfo? ppIErrorInfo); internal static void ReleaseComWrappersObject(object? obj) { if (obj is not null) { ((ComObject)obj).FinalRelease(); } } } }