public static int GetLocaleInfo(LANGID langid, LOCALE_NAME localeType, out string name) { const int maxLength = 260; StringBuilder sb = new StringBuilder(maxLength); int result = GetLocaleInfo(MakeLocaleID(langid, SortID.Default), localeType, out name); return(result); }
public static int GetLocaleInfo(LCID lcid, LOCALE_NAME localeType, out string name) { const int maxLength = 260; StringBuilder sb = new StringBuilder(maxLength); int result = GetLocaleInfo(lcid, localeType, sb, maxLength); name = sb.ToString(); return(result); }
public static extern int GetLocaleInfo(LCID lcid, LOCALE_NAME localeType, StringBuilder lcData, int cchData);
public static extern int GetLocaleInfoEx([MarshalAs(UnmanagedType.LPWStr)] string lpLocaleName, LOCALE_NAME localeType, StringBuilder lcData, int cchData);