4 writes to readHandle
System.Diagnostics.EventLog (4)
System\Diagnostics\EventLogInternal.cs (4)
118readHandle = null; 495readHandle = null; 625readHandle = null; 1086readHandle = handle;
18 references to readHandle
System.Diagnostics.EventLog (18)
System\Diagnostics\EventLogInternal.cs (18)
139bool success = Interop.Advapi32.GetNumberOfEventLogRecords(readHandle, out count); 150return readHandle != null || writeHandle != null; 154[MemberNotNullWhen(true, nameof(readHandle))] 159return readHandle != null; 347[MemberNotNull(nameof(readHandle))] 355bool success = Interop.Advapi32.GetOldestEventLogRecord(readHandle, out num); 372return readHandle; 464bool success = Interop.Advapi32.ClearEventLog(readHandle, null); 485if (readHandle != null) 489readHandle.Close(); 622if (readHandle != null) 624readHandle.Close(); 727bool success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, 744success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, 878Debug.Assert(readHandle != null); 903bool success = Interop.Advapi32.ReadEventLog(readHandle, flags, index, 924success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, index, 1052[MemberNotNull(nameof(readHandle))]