diff options
author | Filip Navara <filip.navara@gmail.com> | 2019-01-22 18:14:53 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-01-23 12:54:10 -0800 |
commit | 797888982e264e2ecfbc436f782f2f6704644e84 (patch) | |
tree | 7c2e6fec30aac2b96f0943e94c13551ccb816b5d | |
parent | 04c465d2253945dea03c8e447a30dd6d1d7b55be (diff) | |
download | coreclr-797888982e264e2ecfbc436f782f2f6704644e84.tar.gz coreclr-797888982e264e2ecfbc436f782f2f6704644e84.tar.bz2 coreclr-797888982e264e2ecfbc436f782f2f6704644e84.zip |
Update parameter names in PInvoke signatures to match MSDN documentation.
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
4 files changed, 4 insertions, 4 deletions
diff --git a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GlobalMemoryStatusEx.cs b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GlobalMemoryStatusEx.cs index 6c56dba950..6a87ec370b 100644 --- a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GlobalMemoryStatusEx.cs +++ b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GlobalMemoryStatusEx.cs @@ -16,6 +16,6 @@ internal partial class Interop } [DllImport(Libraries.Kernel32, SetLastError = true, EntryPoint = "GlobalMemoryStatusEx")] - private static extern bool GlobalMemoryStatusExNative(ref MEMORYSTATUSEX buffer); + private static extern bool GlobalMemoryStatusExNative(ref MEMORYSTATUSEX lpBuffer); } } diff --git a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualAlloc.cs b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualAlloc.cs index 45549eaad6..25fd1f0bd3 100644 --- a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualAlloc.cs +++ b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualAlloc.cs @@ -20,7 +20,7 @@ internal partial class Interop internal static extern unsafe void* VirtualAlloc(void* BaseAddress, UIntPtr Size, int AllocationType, int Protection); #else [DllImport(Libraries.Kernel32)] - internal static extern unsafe void* VirtualAlloc(void* address, UIntPtr numBytes, int commitOrReserve, int pageProtectionMode); + internal static extern unsafe void* VirtualAlloc(void* lpAddress, UIntPtr dwSize, int flAllocationType, int flProtect); #endif } } diff --git a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualFree.cs b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualFree.cs index dc3f42bc39..574cd93a0a 100644 --- a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualFree.cs +++ b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualFree.cs @@ -10,6 +10,6 @@ internal partial class Interop internal partial class Kernel32 { [DllImport(Libraries.Kernel32)] - unsafe internal static extern bool VirtualFree(void* address, UIntPtr numBytes, int pageFreeMode); + unsafe internal static extern bool VirtualFree(void* lpAddress, UIntPtr dwSize, int dwFreeType); } } diff --git a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs index 4cce807068..faab1cc81a 100644 --- a/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs +++ b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs @@ -10,6 +10,6 @@ internal partial class Interop internal partial class Kernel32 { [DllImport(Libraries.Kernel32, SetLastError = true)] - unsafe internal static extern UIntPtr VirtualQuery(void* address, ref MEMORY_BASIC_INFORMATION buffer, UIntPtr sizeOfBuffer); + unsafe internal static extern UIntPtr VirtualQuery(void* lpAddress, ref MEMORY_BASIC_INFORMATION lpBuffer, UIntPtr dwLength); } } |