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.
4 
5 using Microsoft.Win32.SafeHandles;
6 using System;
7 using System.Runtime.InteropServices;
8 
9 internal partial class Interop
10 {
11     internal partial class Kernel32
12     {
13         [DllImport(Libraries.Kernel32, EntryPoint = "MapViewOfFile", CharSet = CharSet.Unicode, SetLastError = true)]
MapViewOfFile( SafeMemoryMappedFileHandle hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, UIntPtr dwNumberOfBytesToMap)14         internal static extern SafeMemoryMappedViewHandle MapViewOfFile(
15             SafeMemoryMappedFileHandle hFileMappingObject,
16             int dwDesiredAccess,
17             int dwFileOffsetHigh,
18             int dwFileOffsetLow,
19             UIntPtr dwNumberOfBytesToMap);
20     }
21 }
22