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.
4 
5 using System;
6 using System.Runtime.InteropServices;
7 
8 internal partial class Interop
9 {
10     internal partial class Kernel32
11     {
12         [DllImport(Libraries.Kernel32)]
WideCharToMultiByte( uint CodePage, uint dwFlags, char* lpWideCharStr, int cchWideChar, byte* lpMultiByteStr, int cbMultiByte, IntPtr lpDefaultChar, IntPtr lpUsedDefaultChar)13         internal static extern unsafe int WideCharToMultiByte(
14             uint CodePage, uint dwFlags,
15             char* lpWideCharStr, int cchWideChar,
16             byte* lpMultiByteStr, int cbMultiByte,
17             IntPtr lpDefaultChar, IntPtr lpUsedDefaultChar);
18 
19         internal const uint CP_ACP = 0;
20         internal const uint WC_NO_BEST_FIT_CHARS = 0x00000400;
21     }
22 }
23