doing a search in these forums on "country code", i find this url:
it contains lance's answer to my earlier question: "how to determine a country code in 16-bit windows?". such as: usa=1, canada=2, the netherlands=31, etc.
according to lance you should retrieve it by reading win.ini, using the getprivateprofilestring api-call. is this the only way and is it valid in win32 too?
actually, i refuse to believe that such an important piece of information - set by control panel's "regional settings" - must be read from an unprotected ini-file, since microsoft is advocating the use of the registry so strongly.
does anyone know an (undocumented) api-call to get the country settings?
thanks,
egbert
it contains lance's answer to my earlier question: "how to determine a country code in 16-bit windows?". such as: usa=1, canada=2, the netherlands=31, etc.
according to lance you should retrieve it by reading win.ini, using the getprivateprofilestring api-call. is this the only way and is it valid in win32 too?
actually, i refuse to believe that such an important piece of information - set by control panel's "regional settings" - must be read from an unprotected ini-file, since microsoft is advocating the use of the registry so strongly.
does anyone know an (undocumented) api-call to get the country settings?
thanks,
egbert
Comment