summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs
diff options
context:
space:
mode:
authorFilip Navara <filip.navara@gmail.com>2019-01-22 13:16:45 +0100
committerJan Kotas <jkotas@microsoft.com>2019-01-22 04:16:45 -0800
commit635a609eba8db8082a4e1245ce1291f9bbe9835c (patch)
treebdd9ab76b9528377ee506e22e2684306f84c63d1 /src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs
parent61ff7397e849273bafc8b1e46ec88ddd905ce187 (diff)
downloadcoreclr-635a609eba8db8082a4e1245ce1291f9bbe9835c.tar.gz
coreclr-635a609eba8db8082a4e1245ce1291f9bbe9835c.tar.bz2
coreclr-635a609eba8db8082a4e1245ce1291f9bbe9835c.zip
Move MemoryFailPoint to shared CoreLib partition (#22104)
* Move MemoryFailPoint to shared CoreLib partition. * Split MemoryFailPoint into Unix and Windows versions. * Replace MemoryFailPoint.GetMemorySettings FCall with GC.GetSegmentSize to make sharing with CoreRT easier.
Diffstat (limited to 'src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs')
-rw-r--r--src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs15
1 files changed, 15 insertions, 0 deletions
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
new file mode 100644
index 0000000000..4cce807068
--- /dev/null
+++ b/src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs
@@ -0,0 +1,15 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System;
+using System.Runtime.InteropServices;
+
+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);
+ }
+}