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
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
Afternoon, code1101.
GetTimeZoneInformation?
Cheers,
Scronty
GetTimeZoneInformation?
Cheers,
Scronty
What about GetTimeZoneInformation?
OK, Scronty, you got it.
PS: Scronty, Why do you say good afternoon at 4:29 AM? :tongue:
PS: Scronty, Why do you say good afternoon at 4:29 AM? :tongue:
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
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
What about using ReadFile to read config.sys?
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.
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
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
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
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