DosGetCollate
typedef struct _COUNTRYCODE { /* ctryc */
USHORT country; /* country code */
USHORT codepage; /* code page */
} COUNTRYCODE;
#define INCL_DOSNLS
USHORT rc = DosGetCollate(Length, Structure, MemoryBuffer, DataLength);
USHORT Length; /* Length of data area provided */
PCOUNTRYCODE Structure; /* Input data structure */
PCHAR MemoryBuffer; /* Collate table (returned) */
PUSHORT DataLength; /* Length of collate table (returned) */
USHORT rc; /* return code */
Example
This example gets a collating sequence table for codepage 850 and the
current country.
#define INCL_DOSNLS
#define CURRENT_COUNTRY 0
#define NLS_CODEPAGE 850
COUNTRYCODE Country;
CHAR CollBuffer[256];
USHORT Length;
USHORT rc;
Country.country = CURRENT_COUNTRY;
Country.codepage = NLS_CODEPAGE;
rc = DosGetCollate(sizeof(CollBuffer), /* Length of data area
provided */
&Country, /* Input data structure */
CollBuffer, /* Data area to contain collate
table */
&Length); /* Length of table */
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs