![[Toc]](../../toc.gif)
![[Index]](/idx.gif)
DosCaseMap
typedef struct _COUNTRYCODE {   /* ctryc */
 
  USHORT country;               /* country code */
  USHORT codepage;              /* code page */
 
} COUNTRYCODE;
#define INCL_DOSNLS
USHORT  rc = DosCaseMap(Length, Structure, BinaryString);
USHORT           Length;        /* Length of string to case map */
PCOUNTRYCODE     Structure;     /* Input data structure */
PCHAR            BinaryString;  /* Address of binary string */
USHORT           rc;            /* return code */
Example 
This example case maps a string for the default country and code page 850. 
#define INCL_DOSNLS
#define CURRENT_COUNTRY 0
#define NLS_CODEPAGE 850
COUNTRYCODE Country;
CHAR        BinString[30];
USHORT      rc;
   Country.country = CURRENT_COUNTRY;         /* Country code */
   Country.codepage = NLS_CODEPAGE;           /* Code page */
   strcpy(BinString,"Howdy");                 /* String to map */
   rc = DosCaseMap(sizeof(BinString),         /* Length of string */
                   &Country,                  /* Input data structure */
                   BinString);                /* String */
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs