More corelib cleanup (dotnet/coreclr#26993)
[mono-project.git] / netcore / System.Private.CoreLib / shared / Interop / Windows / Kernel32 / Interop.LocalAlloc.cs
blob14486c2b5336ec0d44ae9316f276f82ea38872e2
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.
5 using System;
6 using System.Runtime.InteropServices;
8 internal static partial class Interop
10 internal static partial class Kernel32
12 internal const uint LMEM_FIXED = 0x0000;
13 internal const uint LMEM_MOVEABLE = 0x0002;
15 [DllImport(Libraries.Kernel32)]
16 internal static extern IntPtr LocalAlloc(uint uFlags, UIntPtr uBytes);
18 [DllImport(Libraries.Kernel32)]
19 internal static extern IntPtr LocalReAlloc(IntPtr hMem, IntPtr uBytes, uint uFlags);
21 [DllImport(Libraries.Kernel32, SetLastError = true)]
22 internal static extern IntPtr LocalFree(IntPtr hMem);