Selecting MRI of the appropriate language is one of the important points of DBCS-enabling. In order to determine in which language MRI should be used, you need to find the runtime code page and country code.
┌──────────────────────────────────────────────────────────────────────┐ │DosQueryCp is to find the runtime code page. DosQueryCtryInfo (changed│ │from DosGetCtryInfo) and PrfQueryProfileInt are to find the runtime │ │country code. │ └──────────────────────────────────────────────────────────────────────┘
DosQueryCp (changed from DosGetCp) is used for finding the runtime code page. PrfQueryProfileInt is used for a PM program to find the runtime country code. You can also use DosQueryCtryInfo (changed from DosGetCtryInfo) for obtaining the county code in a non-PM application.
The following shows the syntax for the APIs.
APIRET DosQueryCp ( ULONG ulLength, PULONG pCodePageList, PULONG pDataLength );
APIRET DosQueryCtryInfo ( ULONG ulLength, PCOUNTRYCODE pCountry, PCOUNTRYINFO pMemBuff,
PULONG pDataLength );
LONG PrfQueryProfileInt ( HINI hini, psz pszApp, psz pszKey, LONG lDefault );
---------- End of Function Syntax
Read "OS/2 Technical Library Programming Guide Volume 1, chapter 16 National Language Support" right now if you haven't read it. It tells you the basic NLS guidance on OS/2 PM programming.
---------- End of Hints and Tips