More corelib cleanup (dotnet/coreclr#26993)
[mono-project.git] / netcore / System.Private.CoreLib / shared / Interop / Windows / OleAut32 / Interop.SysAllocStringLen.cs
bloba7c09b2b7904f3d147b740bde0d6cb85ef0a1add
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;
7 using System.Security;
9 internal static partial class Interop
11 internal static partial class OleAut32
13 [DllImport(Libraries.OleAut32, CharSet = CharSet.Unicode)]
14 internal static extern SafeBSTRHandle SysAllocStringLen(IntPtr src, uint len);
16 [DllImport(Libraries.OleAut32, CharSet = CharSet.Unicode)]
17 internal static extern IntPtr SysAllocStringLen(string? src, int len);