209 references to UnsafeNativeMethods
System.Data.OleDb (209)
_generated\0\System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo.cs (5)
20file unsafe interface InterfaceImplementation : global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo 37int global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo.GetSQLInfo(out string pbstrSQLState) 39var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo)); 76global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo @this = default; 85@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>(__this_native);
_generated\1\System.Data.Common.UnsafeNativeMethods.IErrorInfo.cs (13)
22file unsafe interface InterfaceImplementation : global::System.Data.Common.UnsafeNativeMethods.IErrorInfo 41void global::System.Data.Common.UnsafeNativeMethods.IErrorInfo.GetGUID() 43var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorInfo)); 60global::System.Data.Common.UnsafeNativeMethods.IErrorInfo @this = default; 65@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>(__this_native); 80global::System.Data.OleDb.OleDbHResult global::System.Data.Common.UnsafeNativeMethods.IErrorInfo.GetSource(out string pBstrSource) 82var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorInfo)); 117global::System.Data.Common.UnsafeNativeMethods.IErrorInfo @this = default; 124@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>(__this_native); 139global::System.Data.OleDb.OleDbHResult global::System.Data.Common.UnsafeNativeMethods.IErrorInfo.GetDescription(out string pBstrDescription) 141var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorInfo)); 176global::System.Data.Common.UnsafeNativeMethods.IErrorInfo @this = default; 183@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>(__this_native);
_generated\2\System.Data.Common.UnsafeNativeMethods.IErrorRecords.cs (36)
25file unsafe interface InterfaceImplementation : global::System.Data.Common.UnsafeNativeMethods.IErrorRecords 47void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.AddErrorRecord() 49var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 66global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 71@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 86void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetBasicErrorInfo() 88var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 105global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 110@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 125global::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) 127var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 146ppObject = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.ConvertToManaged(__ppObject_native); 153global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.Free(__ppObject_native); 164global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 168global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo ppObject = default; 174@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 177__ppObject_native = (void*)global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo>.ConvertToUnmanaged(ppObject); 189global::System.Data.Common.UnsafeNativeMethods.IErrorInfo global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetErrorInfo(int ulRecordNum, int lcid) 191var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 195global::System.Data.Common.UnsafeNativeMethods.IErrorInfo __retVal = default; 209__retVal = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToManaged(__retVal_native); 216global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.Free(__retVal_native); 227global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 229global::System.Data.Common.UnsafeNativeMethods.IErrorInfo __invokeRetVal = default; 234@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 239__invokeRetValUnmanaged = (void*)global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToUnmanaged(__invokeRetVal); 251void global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetErrorParameters() 253var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 270global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 275@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native); 290int global::System.Data.Common.UnsafeNativeMethods.IErrorRecords.GetRecordCount() 292var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::System.Data.Common.UnsafeNativeMethods.IErrorRecords)); 311global::System.Data.Common.UnsafeNativeMethods.IErrorRecords @this = default; 318@this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::System.Data.Common.UnsafeNativeMethods.IErrorRecords>(__this_native);
_generated\3\LibraryImports.g.cs (3)
327internal static unsafe partial global::System.Data.OleDb.OleDbHResult GetErrorInfo(int dwReserved, out global::System.Data.Common.UnsafeNativeMethods.IErrorInfo ppIErrorInfo) 341ppIErrorInfo = global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.ConvertToManaged(__ppIErrorInfo_native); 348global::System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<global::System.Data.Common.UnsafeNativeMethods.IErrorInfo>.Free(__ppIErrorInfo_native);
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);
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 (37)
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); 461if (handle is UnsafeNativeMethods.IRow) 467Debug.Assert(handle is UnsafeNativeMethods.IRowset, "bad IRowset - IColumnsInfo not available"); 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) 20UnsafeNativeMethods.IErrorInfo errorInfo = errorRecords.GetErrorInfo(index, lcid); 27UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo); 46UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo); 59UnsafeNativeMethods.ReleaseComWrappersObject(errorInfo); 63UnsafeNativeMethods.ISQLErrorInfo sqlErrorInfo; 69UnsafeNativeMethods.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);