207 references to UnsafeNativeMethods
System.Data.OleDb (207)
DbBindings.cs (1)
361internal OleDbHResult CreateAccessor(UnsafeNativeMethods.IAccessor iaccessor, int flags)
DbPropSet.cs (6)
45internal DBPropSet(UnsafeNativeMethods.IDBProperties properties, PropertyIDSet? propidset, out OleDbHResult hr) : this() 63internal DBPropSet(UnsafeNativeMethods.IRowsetInfo properties, PropertyIDSet? propidset, out OleDbHResult hr) : this() 81internal DBPropSet(UnsafeNativeMethods.ICommandProperties properties, PropertyIDSet? propidset, out OleDbHResult hr) : this() 104OleDbHResult errorInfoHr = UnsafeNativeMethods.GetErrorInfo(0, out UnsafeNativeMethods.IErrorInfo? errorInfo); // 0 - IErrorInfo exists, 1 - no IErrorInfo 114UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo);
Generated\361d1da7f942c932\System.Data.Common.UnsafeNativeMethods.IErrorInfo.cs (13)
31file unsafe interface InterfaceImplementation : global::System.Data.Common.UnsafeNativeMethods.IErrorInfo 53void global::System.Data.Common.UnsafeNativeMethods.IErrorInfo.GetGUID() 57var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorInfo)); 78global::System.Data.Common.UnsafeNativeMethods.IErrorInfo @this = default; 84@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>(__this_native); 98global::System.Data.OleDb.OleDbHResult global::System.Data.Common.UnsafeNativeMethods.IErrorInfo.GetSource(out string pBstrSource) 102var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorInfo)); 140global::System.Data.Common.UnsafeNativeMethods.IErrorInfo @this = default; 147@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>(__this_native); 163global::System.Data.OleDb.OleDbHResult global::System.Data.Common.UnsafeNativeMethods.IErrorInfo.GetDescription(out string pBstrDescription) 167var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorInfo)); 205global::System.Data.Common.UnsafeNativeMethods.IErrorInfo @this = default; 212@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>(__this_native);
Generated\361d1da7f942c932\System.Data.Common.UnsafeNativeMethods.IErrorRecords.cs (36)
34file unsafe interface InterfaceImplementation : global::System.Data.Common.UnsafeNativeMethods.IErrorRecords 59void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.AddErrorRecord() 63var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 84global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 90@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 104void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetBasicErrorInfo() 108var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 129global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 135@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 149global::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) 153var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 172ppObject = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.ConvertToManaged(__ppObject_native); 179global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.Free(__ppObject_native); 193global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 197global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo ppObject = default; 203@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 206__ppObject_native = (void*)global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.ConvertToUnmanaged(ppObject); 219global::System.Data.Common.UnsafeNativeMethods.IErrorInfo global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetErrorInfo(int ulRecordNum, int lcid) 223var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 227global::System.Data.Common.UnsafeNativeMethods.IErrorInfo __retVal = default; 242__retVal = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToManaged(__retVal_native); 249global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.Free(__retVal_native); 263global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 265global::System.Data.Common.UnsafeNativeMethods.IErrorInfo __invokeRetVal = default; 271@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 274__invokeRetValUnmanaged = (void*)global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToUnmanaged(__invokeRetVal); 287void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetErrorParameters() 291var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 312global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 318@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 332int global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetRecordCount() 336var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 359global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 367@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native);
Generated\361d1da7f942c932\System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo.cs (5)
29file unsafe interface InterfaceImplementation : global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo 49int global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo.GetSQLInfo(out string pbstrSQLState) 53var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo)); 94global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo @this = default; 104@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>(__this_native);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (3)
351internal static unsafe partial global::System.Data.OleDb.OleDbHResult GetErrorInfo(int dwReserved, out global::System.Data.Common.UnsafeNativeMethods.IErrorInfo ppIErrorInfo) 367ppIErrorInfo = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToManaged(__ppIErrorInfo_native); 374global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.Free(__ppIErrorInfo_native);
OleDb_Util.cs (1)
337internal static OleDbHResult GetErrorDescription(UnsafeNativeMethods.IErrorInfo errorInfo, OleDbHResult hresult, out string message)
OleDbCommand.cs (20)
32private UnsafeNativeMethods.ICommandText? _icommandText; 355private UnsafeNativeMethods.IAccessor IAccessor() 358return (UnsafeNativeMethods.IAccessor)_icommandText; 362internal UnsafeNativeMethods.ICommandProperties ICommandProperties() 365return (UnsafeNativeMethods.ICommandProperties)_icommandText; 369private UnsafeNativeMethods.ICommandPrepare? ICommandPrepare() 372return _icommandText as UnsafeNativeMethods.ICommandPrepare; 376private UnsafeNativeMethods.ICommandWithParameters ICommandWithParameters() 379UnsafeNativeMethods.ICommandWithParameters? value = (_icommandText as UnsafeNativeMethods.ICommandWithParameters); 394UnsafeNativeMethods.ICommandWithParameters commandWithParameters = ICommandWithParameters(); 412UnsafeNativeMethods.IAccessor iaccessor = IAccessor(); 421private unsafe void ApplyParameterBindings(UnsafeNativeMethods.ICommandWithParameters commandWithParameters, tagDBPARAMBINDINFO[] bindInfo) 465UnsafeNativeMethods.ICommandText? icmdtxt = _icommandText; 552UnsafeNativeMethods.ICommandText? ict = Interlocked.Exchange(ref _icommandText, null); 721UnsafeNativeMethods.IMultipleResults? multipleResults = (UnsafeNativeMethods.IMultipleResults?)executeResult; 1217UnsafeNativeMethods.ICommandPrepare? icommandPrepare = ICommandPrepare(); 1250UnsafeNativeMethods.ICommandProperties icommandProperties = ICommandProperties(); 1306UnsafeNativeMethods.ICommandProperties icommandProperties = ICommandProperties();
OleDbConnection.cs (5)
261internal UnsafeNativeMethods.ICommandText? ICommandText() 493internal void OnInfoMessage(UnsafeNativeMethods.IErrorInfo errorInfo, OleDbHResult errorCode) 588OleDbHResult hr = UnsafeNativeMethods.GetErrorInfo(0, out UnsafeNativeMethods.IErrorInfo? errorInfo); // 0 - IErrorInfo exists, 1 - no IErrorInfo 618UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo);
OleDbConnectionInternal.cs (10)
226internal UnsafeNativeMethods.ICommandText? ICommandText() 246return (UnsafeNativeMethods.ICommandText?)icommandText; 270UnsafeNativeMethods.ITransactionLocal? value = (unknown as UnsafeNativeMethods.ITransactionLocal); 386UnsafeNativeMethods.IDBInfo dbInfo = wrapper.Value; 471UnsafeNativeMethods.IDBInfo dbInfo = wrapper.Value; 534UnsafeNativeMethods.IDBInfo dbInfo = wrapper.Value; 577UnsafeNativeMethods.IDBSchemaRowset? dbSchemaRowset = wrapper.Value; 627UnsafeNativeMethods.IDBSchemaRowset dbSchemaRowset = wrapper.Value; 633UnsafeNativeMethods.IRowset? rowset = null;
OleDbConnectionString.cs (4)
79internal UnsafeNativeMethods.IUnknownQueryInterface? DangerousDataSourceIUnknownQueryInterface; 80internal UnsafeNativeMethods.IDBInitializeInitialize? DangerousIDBInitializeInitialize; 81internal UnsafeNativeMethods.IDBCreateSessionCreateSession? DangerousIDBCreateSessionCreateSession; 82internal UnsafeNativeMethods.IDBCreateCommandCreateCommand? DangerousIDBCreateCommandCreateCommand;
OleDbDataAdapter.cs (11)
207UnsafeNativeMethods.ADORecordsetConstruction? recordset = (adodb as UnsafeNativeMethods.ADORecordsetConstruction); 208UnsafeNativeMethods.ADORecordConstruction? record = null; 216activeConnection = ((UnsafeNativeMethods.Recordset15)adodb).get_ActiveConnection(); 226record = (adodb as UnsafeNativeMethods.ADORecordConstruction); 256OleDbHResult hr = ((UnsafeNativeMethods.Recordset15)adodb).NextRecordset(out _, out nextresult); 273recordset = (UnsafeNativeMethods.ADORecordsetConstruction)adodb; 309private int FillFromRecordset(object data, UnsafeNativeMethods.ADORecordsetConstruction recordset, string? srcTable, out bool incrementResultCount) 367private int FillFromRecord(object data, UnsafeNativeMethods.ADORecordConstruction record, string srcTable) 419hr = ((UnsafeNativeMethods.Recordset15)value).Close(); 423hr = ((UnsafeNativeMethods._ADORecord)value).Close();
OleDbDataReader.cs (35)
31private UnsafeNativeMethods.IMultipleResults? _imultipleResults; 32private UnsafeNativeMethods.IRowset? _irowset; 33private UnsafeNativeMethods.IRow? _irow; 100_imultipleResults = (UnsafeNativeMethods.IMultipleResults?)result; // maybe null if no results 112_irowset = (UnsafeNativeMethods.IRowset?)result; // maybe null if no results 122_irow = (UnsafeNativeMethods.IRow?)result; // maybe null if no results 224private UnsafeNativeMethods.IAccessor IAccessor() 226return (UnsafeNativeMethods.IAccessor)IRowset(); 230private UnsafeNativeMethods.IRowsetInfo IRowsetInfo() 232return (UnsafeNativeMethods.IRowsetInfo)IRowset(); 235private UnsafeNativeMethods.IRowset IRowset() 237UnsafeNativeMethods.IRowset? irowset = _irowset; 246private UnsafeNativeMethods.IRow IRow() 248UnsafeNativeMethods.IRow? irow = _irow; 456UnsafeNativeMethods.IColumnsInfo? icolumnsInfo = (handle as UnsafeNativeMethods.IColumnsInfo); 604UnsafeNativeMethods.IColumnsRowset? icolumnsRowset = (handle as UnsafeNativeMethods.IColumnsRowset); 608UnsafeNativeMethods.IRowset? rowset = null; 665UnsafeNativeMethods.IMultipleResults? multipleResults = _imultipleResults; 772UnsafeNativeMethods.IMultipleResults? imultipleResults = _imultipleResults; 783UnsafeNativeMethods.IRowset? irowset = _irowset; 802UnsafeNativeMethods.IRow? irow = _irow; 951UnsafeNativeMethods.IRowsetInfo rowsetInfo = IRowsetInfo(); 952UnsafeNativeMethods.IRowset? result; 1221internal static OleDbException? NextResults(UnsafeNativeMethods.IMultipleResults? imultipleResults, OleDbConnection? connection, OleDbCommand command, out IntPtr recordsAffected) 1309UnsafeNativeMethods.IMultipleResults? imultipleResults = _imultipleResults; 1333_irowset = (UnsafeNativeMethods.IRowset)result; 1473UnsafeNativeMethods.IAccessor iaccessor = IAccessor(); 1702UnsafeNativeMethods.IRowset irowset = IRowset(); 1743UnsafeNativeMethods.IRowset irowset = IRowset(); 1780UnsafeNativeMethods.IRowset irowset = IRowset(); 1811UnsafeNativeMethods.IRowsetInfo irowsetinfo = IRowsetInfo(); 1873UnsafeNativeMethods.IRow irow = IRow(); 2232internal void DumpToSchemaTable(UnsafeNativeMethods.IRowset? rowset)
OleDbError.cs (7)
16internal OleDbError(UnsafeNativeMethods.IErrorRecords errorRecords, int index) 24UnsafeNativeMethods.IErrorInfo? errorInfo = errorRecords.GetErrorInfo(index, lcid); 33UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo); 53UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo); 72UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo); 75UnsafeNativeMethods.ISQLErrorInfo sqlErrorInfo; 86UnsafeNativeMethods.ReleaseComWrappersObject(sqlErrorInfo);
OleDbErrorCollection.cs (3)
15internal OleDbErrorCollection(UnsafeNativeMethods.IErrorInfo? errorInfo) 18UnsafeNativeMethods.IErrorRecords? errorRecords = (errorInfo as UnsafeNativeMethods.IErrorRecords);
OleDbException.cs (1)
68internal static OleDbException CreateException(UnsafeNativeMethods.IErrorInfo errorInfo, OleDbHResult errorCode, Exception? inner)
OleDbTransaction.cs (4)
28internal WrappedTransaction(UnsafeNativeMethods.ITransactionLocal transaction, int isolevel, out OleDbHResult hr) : base(transaction) 192UnsafeNativeMethods.ITransactionLocal? wrapper = null; 195wrapper = (UnsafeNativeMethods.ITransactionLocal)_transaction.ComWrapper(); 213internal void BeginInternal(UnsafeNativeMethods.ITransactionLocal transaction)
OleDbWrapper.cs (29)
22private readonly UnsafeNativeMethods.IDataInitializeGetDataSource? DangerousIDataInitializeGetDataSource; 35base.handle = Marshal.GetComInterfaceForObject(unknown, typeof(UnsafeNativeMethods.IDataInitialize)); 42DangerousIDataInitializeGetDataSource = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDataInitializeGetDataSource>(method); 49UnsafeNativeMethods.IDataInitializeGetDataSource GetDataSource = DangerousIDataInitializeGetDataSource!; 142UnsafeNativeMethods.IUnknownQueryInterface? QueryInterface = constr.DangerousDataSourceIUnknownQueryInterface; 148QueryInterface = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IUnknownQueryInterface>(method); 159UnsafeNativeMethods.IDBInitializeInitialize? Initialize = constr.DangerousIDBInitializeInitialize; 165Initialize = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBInitializeInitialize>(method); 188UnsafeNativeMethods.IDBCreateSessionCreateSession? CreateSession = constr.DangerousIDBCreateSessionCreateSession; 194CreateSession = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBCreateSessionCreateSession>(method); 305private UnsafeNativeMethods.IDBCreateCommandCreateCommand? DangerousIDBCreateCommandCreateCommand; 340UnsafeNativeMethods.IUnknownQueryInterface QueryInterface = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IUnknownQueryInterface>(method); 352DangerousIDBCreateCommandCreateCommand = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBCreateCommandCreateCommand>(method); 387UnsafeNativeMethods.IDBCreateCommandCreateCommand CreateCommand = constr.DangerousIDBCreateCommandCreateCommand; 393CreateCommand = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBCreateCommandCreateCommand>(method); 405UnsafeNativeMethods.IDBCreateCommandCreateCommand? CreateCommand = DangerousIDBCreateCommandCreateCommand; 462private UnsafeNativeMethods.IDBInfo _value; 467_value = (unknown as UnsafeNativeMethods.IDBInfo)!; 470internal UnsafeNativeMethods.IDBInfo Value 493private UnsafeNativeMethods.IDBProperties _value; 498_value = (unknown as UnsafeNativeMethods.IDBProperties)!; 502internal UnsafeNativeMethods.IDBProperties Value 526private UnsafeNativeMethods.IDBSchemaRowset _value; 531_value = (unknown as UnsafeNativeMethods.IDBSchemaRowset)!; 534internal UnsafeNativeMethods.IDBSchemaRowset Value 557private UnsafeNativeMethods.IOpenRowset _value; 562_value = (unknown as UnsafeNativeMethods.IOpenRowset)!; 566internal UnsafeNativeMethods.IOpenRowset Value
PropertyInfoSet.cs (1)
32internal PropertyInfoSet(UnsafeNativeMethods.IDBProperties idbProperties, PropertyIDSet propIDSet) : base(IntPtr.Zero, true)
RowBinding.cs (5)
19private UnsafeNativeMethods.IAccessor? _iaccessor; 94internal OleDbHResult CreateAccessor(UnsafeNativeMethods.IAccessor iaccessor, int flags, ColumnBinding[] bindings) 322UnsafeNativeMethods.IAccessor? iaccessor = _iaccessor; 471UnsafeNativeMethods.IChapteredRowset chapteredRowset = (iaccessor as UnsafeNativeMethods.IChapteredRowset)!;
SafeHandles.cs (7)
10using static System.Data.Common.UnsafeNativeMethods; 28internal DualCoTaskMem(UnsafeNativeMethods.IDBInfo dbInfo, int[]? literals, out int literalCount, out IntPtr literalInfo, out OleDbHResult hr) : this() 36internal DualCoTaskMem(UnsafeNativeMethods.IColumnsInfo columnsInfo, out IntPtr columnCount, out IntPtr columnInfos, out OleDbHResult hr) : this() 43internal DualCoTaskMem(UnsafeNativeMethods.IDBSchemaRowset dbSchemaRowset, out int schemaCount, out IntPtr schemaGuids, out IntPtr schemaRestrictions, out OleDbHResult hr) : this() 50internal DualCoTaskMem(UnsafeNativeMethods.IColumnsRowset icolumnsRowset, out IntPtr cOptColumns, out OleDbHResult hr) : base(IntPtr.Zero, true) 194Guid IID_IChapteredRowset = typeof(System.Data.Common.UnsafeNativeMethods.IChapteredRowset).GUID; 200var chapteredRowset = (System.Data.Common.UnsafeNativeMethods.IChapteredRowset)Marshal.GetObjectForIUnknown(pChapteredRowset);