From 63b2b8593f8b2c04c933e5297adeef336053d440 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 15 Aug 2020 14:19:32 -0700 Subject: [PATCH] Delete unused files (#40889) --- .../Kernel32/Interop.CreateFileMappingFromApp.cs | 28 ---------------------- .../Kernel32/Interop.MapViewOfFileFromApp.cs | 19 --------------- 2 files changed, 47 deletions(-) delete mode 100644 src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CreateFileMappingFromApp.cs delete mode 100644 src/libraries/Common/src/Interop/Windows/Kernel32/Interop.MapViewOfFileFromApp.cs diff --git a/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CreateFileMappingFromApp.cs b/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CreateFileMappingFromApp.cs deleted file mode 100644 index c402e91..0000000 --- a/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CreateFileMappingFromApp.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using Microsoft.Win32.SafeHandles; -using System; -using System.Runtime.InteropServices; - -internal partial class Interop -{ - internal partial class Kernel32 - { - [DllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)] - internal static extern SafeMemoryMappedFileHandle CreateFileMappingFromApp( - SafeFileHandle hFile, - ref SECURITY_ATTRIBUTES SecurityAttributes, - int PageProtection, - long MaximumSize, - string Name); - - [DllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)] - internal static extern SafeMemoryMappedFileHandle CreateFileMappingFromApp( - IntPtr hFile, - ref SECURITY_ATTRIBUTES SecurityAttributes, - int PageProtection, - long MaximumSize, - string Name); - } -} diff --git a/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.MapViewOfFileFromApp.cs b/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.MapViewOfFileFromApp.cs deleted file mode 100644 index 7426428..0000000 --- a/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.MapViewOfFileFromApp.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using Microsoft.Win32.SafeHandles; -using System; -using System.Runtime.InteropServices; - -internal partial class Interop -{ - internal partial class Kernel32 - { - [DllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)] - internal static extern SafeMemoryMappedViewHandle MapViewOfFileFromApp( - SafeMemoryMappedFileHandle hFileMappingObject, - int DesiredAccess, - long FileOffset, - UIntPtr NumberOfBytesToMap); - } -} -- 2.7.4