// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; internal static partial class Interop { internal static partial class Advapi32 { internal const int SEEK_READ = 0x2; internal const int FORWARDS_READ = 0x4; internal const int BACKWARDS_READ = 0x8; [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [LibraryImport(Libraries.Advapi32, EntryPoint = "ReadEventLogW", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static partial bool ReadEventLog( SafeEventLogReadHandle hEventLog, int dwReadFlags, int dwRecordOffset, byte[] lpBuffer, int nNumberOfBytesRead, out int pnBytesRead, out int pnMinNumberOfBytesNeeded); } }