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.
6 using System
.Runtime
.InteropServices
;
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
);