More corelib cleanup (dotnet/coreclr#26993)
[mono-project.git] / netcore / System.Private.CoreLib / shared / Interop / Windows / Kernel32 / Interop.ReadFile_SafeHandle_NativeOverlapped.cs
bloba3c72547f9631a518062b6d365f859830d60be10
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System;
6 using System.Runtime.InteropServices;
7 using System.Threading;
9 internal static partial class Interop
11 internal static partial class Kernel32
13 [DllImport(Libraries.Kernel32, SetLastError = true)]
14 internal static extern unsafe int ReadFile(
15 SafeHandle handle,
16 byte* bytes,
17 int numBytesToRead,
18 IntPtr numBytesRead_mustBeZero,
19 NativeOverlapped* overlapped);