コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public static extern int GetLocaleInfo(LCID lcid, LOCALE_NAME localeType, StringBuilder lcData, int cchData);
コード例 #4
0
 public static extern int GetLocaleInfoEx([MarshalAs(UnmanagedType.LPWStr)] string lpLocaleName, LOCALE_NAME localeType, StringBuilder lcData, int cchData);