audiofeel
Старожил
Привет. Требуется вывести инфу о регионе ОС. Нашел решение...
Возвращает только EN, UK RU и тд. Хотелось бы полностью - допустим Венгрия, Польша Россия и тд. Или это не возможно?
code_language.pascal:
function GetUserDefaultGeoName(GeoName: string; GeoNameCount: Integer): Integer;
external 'GetUserDefaultGeoName@Kernel32.dll stdcall';
function GetGeoName: string;
begin
SetLength(Result, 100);
SetLength(Result, GetUserDefaultGeoName(Result, Length(Result)));
end;
----------------------
AutorunLbl.Text(GetGeoName);