You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\WinNls.h, line 1564
266
+
#region GetCPInfoEx function
267
+
/// <summary>
268
+
/// Retrieves information about any valid installed or available code page.
269
+
/// </summary>
270
+
/// <param name="CodePage">
271
+
/// Identifier for the code page for which to retrieve information. The application can specify the code page identifier for any installed or available code page, or one of the following predefined values. See <a href="https://docs.microsoft.com/windows/desktop/Intl/code-page-identifiers">Code Page Identifiers</a> for a list of identifiers for ANSI and other code pages.
/// <item><term><see cref="CP_ACP"/></term><description>Use the system default Windows ANSI code page.</description></item>
275
+
/// <item><term><see cref="CP_MACCP"/></term><description>Use the system default Macintosh code page.</description></item>
276
+
/// <item><term><see cref="CP_OEMCP"/></term><description>Use the system default OEM code page.</description></item>
277
+
/// <item><term><see cref="CP_THREAD_ACP"/></term><description>Use the current thread's ANSI code page.</description></item>
278
+
/// </list>
279
+
/// </param>
280
+
/// <param name="dwFlags">Reserved; must be <c>0</c> (zero).</param>
281
+
/// <param name="lpCPInfoEx">A <see cref="CPINFOEX"/> structure that receives information about the code page.</param>
282
+
/// <returns>
283
+
/// Returns <see langword="true"/> if successful, or <see langword="false"/> otherwise. To get extended error information, the application can call <see cref="GetLastError"/>, which can return one of the following error codes:
284
+
/// <list type="table">
285
+
/// <item><term><see cref="ERROR_INVALID_PARAMETER"/></term><description>Any of the parameter values was invalid.</description></item>
286
+
/// </list>
287
+
/// </returns>
288
+
/// <remarks>
289
+
/// <para>The information retrieved in the <see cref="CPINFOEX"/> structure is not always useful for all code pages. To determine buffer sizes, for example, the application should call <see cref="MultiByteToWideChar"/> or <see cref="WideCharToMultiByte"/> to request an accurate buffer size. If <see cref="CPINFOEX"/> settings indicate that a lead byte exists, the conversion function does not necessarily handle lead bytes differently, for example, in the case of a missing or illegal trail byte.</para>
0 commit comments