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 6501h get extended country information dos 3.3+</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 6501h          Get Extended Country Information             DOS 3.3+

     Returns the country information that DOS uses to control the
     keyboard and screen.

        Entry   AX    = 6501h
                BX    = Code page ID (0FFFFh = current code page)
                CX    = Size of buffer (min. 5, set to 41)
                DX    = Country code (0FFFFh = current country)
                ES:DI = Pointer to country info buffer

        Return  Buffer updated
                or
                AX = Error code, if CF is set
                     | 01h Invalid function (CX < 5)
                     | 02h File not found (bad code page/country code)

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

    Format of country info buffer:
        Offset  Size    Description
        00h     1       Info-ID (= 01h)
        01h     40d     ExtCountryInfo structure


    Note
    If the parameter passed in CX is greater than 5 but less than the
    size of the country information, the information is truncated and
    no error is returned.

See Also: 6601h 6602h 38h CodePageIDs CountryCodes ExtCountryInfo

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