获取系统当前语言
GetOperSystemLanID()
0: 简体中文
1: 英文
2: 日文
3: 繁体中文
int
GetOperSystemLanID()
{
LCID lanid=GetSystemDefaultLCID(); //API fun
int nlanid=lanid;
int nLanType;
char szLan[10];
_itoa(nlanid,szLan,16);
if (strcmp(szLan,"804")==0)//simple chinese language
{
nLanType=0;
}
if (strcmp(szLan,"409")==0)//english
{
nLanType=1;
}
if (strcmp(szLan,"411")==0)//japan language
{
nLanType=2;
}
if (strcmp(szLan,"404")==0)//complicated chinese language
{
nLanType=3;
}
return nLanType;
}