B
Problem gelöst
#include <windows.h>
#include <iostream>
#include <tchar.h>
BOOL CALLBACK EnumLocalesProc (LPTSTR lpLocaleString)
{
TCHAR pszEnglishCountryName[128] = {0}, pszLocalCountryName[128] = {0};
LCID localeID = 0;
_stscanf( lpLocaleString, "%x", &localeID );
if (GetLocaleInfo(localeID,LOCALE_SENGCOUNTRY,pszEnglishCountryName,sizeof(pszEnglishCountryName)))
{
GetLocaleInfo ( localeID, LOCALE_SCOUNTRY, pszLocalCountryName, sizeof(pszLocalCountryName));
// Write it to the screen
std::cout << "English: "<< pszEnglishCountryName << " | Local: "<< pszLocalCountryName << std::endl;
}
return TRUE;
};
int main(void)
{
EnumSystemLocales (EnumLocalesProc, LCID_INSTALLED);
return 0;
}
Diese Lösung habe ich in einem anderem Forum erhalten.