msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COUNTRYINFO (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSNLS
 
typedef struct _COUNTRYINFO {    /* ctryi */
    USHORT country;
    USHORT codepage;
    USHORT fsDateFmt;
    CHAR   szCurrency[5];
    CHAR   szThousandsSeparator[2];
    CHAR   szDecimal[2];
    CHAR   szDateSeparator[2];
    CHAR   szTimeSeparator[2];
    UCHAR  fsCurrencyFmt;
    UCHAR  cDecimalPlace;
    UCHAR  fsTimeFmt;
    USHORT abReserved1[2];
    CHAR   szDataSeparator[2];
    USHORT abReserved2[5];
} COUNTRYINFO;
 
The COUNTRYINFO structure contains country-dependent formatting
information.
 
Field                    Description
────────────────────────────────────────────────────────────────────────────
 
country                  Specifies the country code. It can be one of the
                         following values:
 
                         Country code  Country
                         ───────────────────────────────────────────────────
                         001           United States
                         002           Canada (French)
                         003           Latin America
                         031           Netherlands
                         032           Belgium
                         033           France
                         034           Spain
                         039           Italy
                         041           Switzerland (French)
                         041           Switzerland (German)
                         044           United Kingdom
                         045           Denmark
                         046           Sweden
                         047           Norway
                         049           Germany
                         061           Australia
                         351           Portugal
                         358           Finland
 
codepage                 Specifies a reserved value; must be zero.
 
fsDateFmt                Specifies the date format. It can be one of the
                         following values:
 
                         Value             Meaning
                         ───────────────────────────────────────────────────
                         DATEFMT_MM_DD_YY  Month, day, year (mm/dd/yy)
 
                         DATEFMT_DD_MM_YY  Day, month, year (dd/mm/yy)
 
                         DATEFMT_YY_MM_DD  Year, month, day (yy/mm/dd)
 
szCurrency[5]            Specifies the currency indicator. It is a
                         null-terminated string.
 
szThousandsSeparator[2]  Specifies the thousands separator. It is a
                         null-terminated string.
 
szDecimal[2]             Specifies the decimal separator. It is a
                         null-terminated string.
 
szDateSeparator[2]       Specifies the date separator. It is a
                         null-terminated string.
 
szTimeSeparator[2]       Specifies the time separator. It is a
                         null-terminated string.
 
fsCurrencyFmt            Specifies the currency format. It can be any
                         combination of the following values:
 
                         Value             Meaning
                         ───────────────────────────────────────────────────
                         CURRENCY_FOLLOW   Currency indicator follows the
                                           money value. If this value is not
                                           given, the currency indicator
                                           precedes the money value.
 
                         CURRENCY_SPACE    One space appears between the
                                           currency indicator and the money
                                           value. If this value is not
                                           given, no space appears between
                                           the currency indicator and the
                                           money value.
 
                         CURRENCY_DECIMAL  Specified currency indicator
                                           replaces the decimal indicator.
                                           If this value is given, other
                                           fsCurrencyFmt values are
                                           ignored.
 
cDecimalPlace            Specifies the number of decimal places (in binary)
                         used in the currency value.
 
fsTimeFmt                Specifies the time format for file directory
                         presentation. If this field is 0x0001, the time is
                         presented in 24-hour (military-time) format.
                         Otherwise, time is presented in a 12-hour format,
                         with "a" and "p" used for A.M. and P.M.
                         indicators.
 
abReserved1[2]           Specifies a reserved value; must be zero.
 
szDataSeparator[2]       Specifies a data-list separator. It is a
                         null-terminated string.
 
abReserved2[5]           Specifies a reserved value; must be zero.
 
See Also
 
DosGetCtryInfo