获取非Unicode程序的语言 [英] Getting Language for Non-Unicode Programs

查看:101
本文介绍了获取非Unicode程序的语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何使用c#以编程方式在控制面板"的区域设置"中获取非Unicode程序的语言"的值吗?

已经尝试过CultureInfo,RegionInfo并使用Encoding对象获取默认编码,但是我只能获取Standards and Formats值或主代码页.

解决方案

GetSystemDefaultLocaleName > GetSystemDefaultLCID (及其 P/Invoke声明)

Anyone have any idea how to get the value of "Language for Non-Unicode Programs" in Control Panel Regional Settings programmatically using c#?

Already tried CultureInfo, RegionInfo and getting the default encoding using the Encoding object, but I can only get the Standards and Formats value or the main code page.

解决方案

GetSystemDefaultLocaleName or GetSystemDefaultLCID (and its P/Invoke declaration)

这篇关于获取非Unicode程序的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆