| File: System\Diagnostics\SafeEventLogReadHandle.cs | Web Access |
| Project: src\src\runtime\src\libraries\System.Diagnostics.EventLog\src\System.Diagnostics.EventLog.csproj (System.Diagnostics.EventLog) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Win32.SafeHandles { internal sealed class SafeEventLogReadHandle : SafeHandleZeroOrMinusOneIsInvalid { public SafeEventLogReadHandle() : base(true) { } protected override bool ReleaseHandle() { return Interop.Advapi32.CloseEventLog(handle); } } } |