Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>function 38h get/set country information</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 38h            Get/Set Country Information

    Returns country-dependent information or sets the country code.

               This description is valid for DOS 3.0+

    1.  Get information for the current country or a specified country:

        Entry   AH    = 38h
                AL    = Country code (00h = current country)
                BX    = 16-bit country code (if AL=FFh)
                DS:DX = Pointer to CountryInfo structure

        Return  BX = Country code
                CountryInfo filled
                or
                AX = Error code, if CF is set
                     | 01h Invalid function
                     | 02h File not found

    To get country-dependent information for the current country, call
    this function with 00h in AL. To get information for another
    country, specify the appropriate country code in AL. For country
    codes larger than 254 (0FEh), enter FFh in AL and the country code
    in BX.

    ------------------------------------------------------------------

    2.  Set the country code that DOS uses to determine country
        information for the keyboard and screen (DOS 3.0+)

        Entry   AH = 38h
                AL = Country code
                BX = 16-bit country code (if AL=FFh)
                DX = FFFFh

        Return  AX = Error code, if CF is set
                     | 01h Invalid function
                     | 02h File not found

    To specify a country code larger than 254 (FEh), place FFh in AL
    and the 16-bit country code in BX.

See Also: 6501h 6601h 6602h ExtCountryInfo CountryCodes

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson