84 references to PtrZero
System.Data (84)
fx\src\data\System\Data\Common\SafeNativeMethods.cs (1)
148
SafeNativeMethods.SetErrorInfo(0, ADP.
PtrZero
);
fx\src\data\System\Data\Odbc\Odbc32.cs (2)
270
static internal readonly IntPtr SQL_AUTOCOMMIT_OFF = ADP.
PtrZero
;
575
static internal readonly IntPtr SQL_HANDLE_NULL = ADP.
PtrZero
;
fx\src\data\System\Data\Odbc\OdbcConnectionHandle.cs (3)
195
retcode = UnsafeNativeMethods.SQLDriverConnectW(this, ADP.
PtrZero
, connectionString, ODBC32.SQL_NTS, ADP.
PtrZero
, 0, out cbActualSize, (short)ODBC32.SQL_DRIVER.NOPROMPT);
242
ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, checked((short)buffer.Length), ADP.
PtrZero
);
fx\src\data\System\Data\Odbc\OdbcHandle.cs (3)
81
if((ADP.
PtrZero
== base.handle) || (ODBC32.RetCode.SUCCESS != retcode)) {
114
if (ADP.
PtrZero
== base.handle) {
156
Debug.Assert(ADP.
PtrZero
== handle, "unknown handle type");
fx\src\data\System\Data\Odbc\OdbcStatementHandle.cs (2)
81
ODBC32.RetCode retcode = UnsafeNativeMethods.SQLBindCol(this, checked((ushort)columnNumber), targetType, ADP.
PtrZero
, ADP.
PtrZero
, srLen_or_Ind);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (6)
579
if (ADP.
PtrZero
!= ptr) {
608
if (ADP.
PtrZero
!= ptr) {
630
IntPtr ptr = ADP.
PtrZero
;
649
if (ADP.
PtrZero
!= ptr) {
670
IntPtr ptr = ADP.
PtrZero
;
687
IntPtr ptr = ADP.
PtrZero
;
fx\src\data\System\Data\OleDb\DBPropSet.cs (6)
40
if (ADP.
PtrZero
!= base.handle) {
44
if (ADP.
PtrZero
== base.handle) {
123
if (ADP.
PtrZero
!= ptr) {
129
if(ADP.
PtrZero
!= rgProperties) {
217
if (ADP.
PtrZero
!= propset.rgProperties) {
226
if (ADP.
PtrZero
== propset.rgProperties) {
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (3)
501
static internal readonly IntPtr DB_INVALID_HACCESSOR = ADP.
PtrZero
;
502
static internal readonly IntPtr DB_NULL_HCHAPTER = ADP.
PtrZero
;
503
static internal readonly IntPtr DB_NULL_HROW = ADP.
PtrZero
;
fx\src\data\System\Data\OleDb\OleDbCommand.cs (10)
778
hr = _icommandText.Execute(ADP.
PtrZero
, ref ODB.IID_IMultipleResults, dbParams, out _recordsAffected, out executeResult);
795
hr = _icommandText.Execute(ADP.
PtrZero
, ref ODB.IID_IRowset, dbParams, out _recordsAffected, out executeResult);
800
hr = _icommandText.Execute(ADP.
PtrZero
, ref ODB.IID_NULL, dbParams, out _recordsAffected, out executeResult);
814
hr = _icommandText.Execute(ADP.
PtrZero
, ref ODB.IID_IRow, dbParams, out _recordsAffected, out executeResult);
920
hr = iopenRowset.Value.OpenRowset(ADP.
PtrZero
, tableID, ADP.
PtrZero
, ref ODB.IID_IRowset, propSet.PropertySetCount, propSet.DangerousGetHandle(), out executeResult);
932
hr = iopenRowset.Value.OpenRowset(ADP.
PtrZero
, tableID, ADP.
PtrZero
, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult);
938
hr = iopenRowset.Value.OpenRowset(ADP.
PtrZero
, tableID, ADP.
PtrZero
, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (8)
394
IntPtr literalInfo = ADP.
PtrZero
;
505
IntPtr literalInfo = ADP.
PtrZero
;
541
IntPtr schemaGuids = ADP.
PtrZero
;
542
IntPtr schemaRestrictions = ADP.
PtrZero
;
551
if (ADP.
PtrZero
!= schemaGuids) {
557
if (ADP.
PtrZero
!= schemaRestrictions) {
586
hr = dbSchemaRowset.GetRowset(ADP.
PtrZero
, ref schema, restrictions.Length, restrictions, ref ODB.IID_IRowset, 0, ADP.
PtrZero
, out rowset);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (13)
441
IntPtr columnCount = ADP.
PtrZero
; // column count
442
IntPtr columnInfos = ADP.
PtrZero
; // ptr to byvalue tagDBCOLUMNINFO[]
527
if (ADP.
PtrZero
!= dbColumnInfo.columnid.ulPropid) {
535
info.propid = ADP.
PtrZero
;
574
hr = icolumnsRowset.GetColumnsRowset(ADP.
PtrZero
, cOptColumns, prgOptColumns, ref ODB.IID_IRowset, 0, ADP.
PtrZero
, out rowset);
1122
hr = imultipleResults.GetResult(ADP.
PtrZero
, ODB.DBRESULTFLAG_DEFAULT, ref ODB.IID_NULL, out affected, out result);
1205
hr = imultipleResults.GetResult(ADP.
PtrZero
, ODB.DBRESULTFLAG_DEFAULT, ref ODB.IID_IRowset, out affected, out result);
1355
if ((ADP.
PtrZero
== _rowHandleFetchCount) || (20 <= (int)_rowHandleFetchCount)) {
1361
if ((ADP.
PtrZero
== _rowHandleFetchCount) || (20 <= (long)_rowHandleFetchCount)) {
1628
hr = irowset.ReleaseRows(_rowFetchedCount, _rowHandleNativeBuffer, ADP.
PtrZero
, ADP.
PtrZero
, ADP.
PtrZero
);
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (2)
60
IntPtr propSets = ADP.
PtrZero
;
63
OleDbHResult hr = srcrowset.GetSourcesRowset(ADP.
PtrZero
, ODB.IID_IRowset, propCount, propSets, out value);
fx\src\data\System\Data\OleDb\OleDbParameter.cs (1)
375
bindings.Name = ADP.
PtrZero
;
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (2)
52
if ((0 <= hr) && (ADP.
PtrZero
!= handle)) {
70
if (ADP.
PtrZero
!= this.handle) {
fx\src\data\System\Data\OleDb\RowBinding.cs (11)
195
IntPtr buffer = ADP.
PtrZero
;
261
if (ADP.
PtrZero
== pinnedValue) { // empty array scenario
354
Debug.Assert(ADP.
PtrZero
!= buffer && _needToReset && _haveData, "shouldn't be calling ResetValues");
430
IntPtr chapter = SafeNativeMethods.InterlockedExchangePointer(ADP.IntPtrOffset(buffer, valueOffset), ADP.
PtrZero
);
450
if ((ADP.
PtrZero
!= currentValue) && (currentValue != originalValue)) {
453
if (ADP.
PtrZero
!= originalValue) {
458
Marshal.WriteIntPtr(buffer, valueOffset, ADP.
PtrZero
);
459
Marshal.WriteIntPtr(buffer, valueOffset + ADP.PtrSize, ADP.
PtrZero
);
475
if ((ADP.
PtrZero
!= currentValue) && (currentValue != originalValue)) {
480
Marshal.WriteIntPtr(buffer, valueOffset, ADP.
PtrZero
);
481
Marshal.WriteIntPtr(buffer, valueOffset + ADP.PtrSize, ADP.
PtrZero
);
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (3)
51
IntPtr handle = ADP.
PtrZero
;
61
if (ADP.
PtrZero
!= handle) {
75
if (ADP.
PtrZero
!= handle) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (5)
1892
if (ADP.
PtrZero
!= hFileMap) {
1894
if (ADP.
PtrZero
!= pMemMap) {
2150
Debug.Assert(ADP.
PtrZero
!= sdc.pMemMap, "SQL Debug: invalid null value for pMemMap!");
2569
internal IntPtr pMemMap = ADP.
PtrZero
;
2570
internal IntPtr hMemMap = ADP.
PtrZero
;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (3)
1967
Debug.Assert(ADP.
PtrZero
!= readPacket, "ReadNetworkPacket cannot be null in syncronous operation!");
2178
Debug.Assert(ADP.
PtrZero
!= readPacket, "ReadNetworkPacket should not have been null on this async operation!");
2179
ReadAsyncCallback(ADP.
PtrZero
, readPacket, 0);