From ab7a7e2a69fa70f8b6bd41c7e2b45a17a0600ad0 Mon Sep 17 00:00:00 2001 From: dahall Date: Tue, 2 Jun 2020 22:01:39 -0600 Subject: [PATCH] Fixed mapped file handle reference --- PInvoke/Kernel32/WinBase.ProcessThread.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/Kernel32/WinBase.ProcessThread.cs b/PInvoke/Kernel32/WinBase.ProcessThread.cs index de5fcbc6..94507409 100644 --- a/PInvoke/Kernel32/WinBase.ProcessThread.cs +++ b/PInvoke/Kernel32/WinBase.ProcessThread.cs @@ -678,7 +678,7 @@ namespace Vanara.PInvoke // lpBaseAddress, DWORD nndPreferred ); [DllImport(Lib.Kernel32, SetLastError = true, ExactSpelling = true)] [PInvokeData("winbase.h", MSDNShortId = "1e28c8db-112d-481d-b470-8ca618e125ce")] - public static extern IntPtr MapViewOfFileExNuma(HFILE hFileMappingObject, FILE_MAP dwDesiredAccess, uint dwFileOffsetHigh, uint dwFileOffsetLow, SizeT dwNumberOfBytesToMap, IntPtr lpBaseAddress, uint nndPreferred); + public static extern IntPtr MapViewOfFileExNuma(HSECTION hFileMappingObject, FILE_MAP dwDesiredAccess, uint dwFileOffsetHigh, uint dwFileOffsetLow, SizeT dwNumberOfBytesToMap, IntPtr lpBaseAddress, uint nndPreferred); /// Sets a processor affinity mask for the threads of the specified process. ///