hi everyone ...
how can I make my program retrieve the information about the country setting in the control panel?
I mean I want to read the value in the regional settings in control pannel that specifies the country ...
I've searched the board but didn't find anything so don't shoot me bAZiK if I didn't search well ...
I also searched the PSDK but I found alot alot of things that I'm not sure if they are actually what I'm looking for ...

thanks in advance
code1101
Posted on 2002-08-08 22:15:30 by code1101
Afternoon, code1101.

GetTimeZoneInformation?

Cheers,
Scronty
Posted on 2002-08-08 22:29:01 by Scronty
What about GetTimeZoneInformation?
Posted on 2002-08-08 22:32:37 by CodeLover
OK, Scronty, you got it.

PS: Scronty, Why do you say good afternoon at 4:29 AM? :tongue:
Posted on 2002-08-08 22:33:41 by CodeLover
sorry guys but I didn't get it ....
I need to know the country not the time zone ...
if you mean that I can figure the country from the time zone then its not enough cos some countries have the same time zone

and thanks for the help
Posted on 2002-08-08 22:43:49 by code1101
What about using ReadFile to read config.sys?
Posted on 2002-08-08 23:11:13 by CodeLover
You might want to look at GetLocaleInfo or try searching msdn or psdk for "National Language Support Functions" maybe you can get some info from there.
Posted on 2002-08-08 23:42:15 by stryker
codelover ... is it gona work on winxp?
cos when I open my config.sys in winxp its empty?!?!
and in win98 I get calling code for the countrywhich means I have to make some sort of a table in my progie ...
I just want to getthe info and display it right away ...

stryker ... I've been lookig at GetLocaleInfo and it might be the closest thing to what I'm after but its not it ... take a look at the attachment
GetLocaleInfo will give me united states at my case but I'm actually somewhere else as you see in the red circle ..

maybe GetUserGeoID could be usefull I'm not sure yet ... anyway thanks for the help guys ... If I can't get the exact location then I'm gona use GetLocaleInfo ...

thanks everyone
code1101
Posted on 2002-08-09 12:49:19 by code1101
You can use this to get the string of the country:

invoke GetLocaleInfo,LOCALE_USER_DEFAULT, LOCALE_SCOUNTRY,addr CountryName,256


There's a lot of other options for this API too but I think that's what you're looking for
Posted on 2002-08-09 19:29:05 by chorus