Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains information about a code page.

Syntax

typedef struct _cpinfo { 
  UINT 
MaxCharSize; 
  BYTE 
DefaultChar[MAX_DEFAULTCHAR]; 
  BYTE 
LeadByte[MAX_LEADBYTES]; 
} CPINFO; 

Members

MaxCharSize

Maximum length, in bytes, of a character in this code page.

DefaultChar

Default character used in translations into this code page. This character is used by the WideCharToMultiBytefunction if an explicit default character is not given.

LeadByte

Fixed-length array of lead-byte ranges, where the number of lead-byte ranges is variable. If there are no lead bytes in this code page, then every element of the array is NULL. If there are lead bytes in this code page, a starting value and ending value is given for each range. Ranges are inclusive. The maximum number of lead-byte ranges for any code page is 5. The array uses two bytes to describe each range, with a double-byte terminating null character after the last range.

Remarks

Lead bytes are unique to double-byte character sets (DBCS). A lead byte is the first byte of a 2-byte character in a DBCS. Lead bytes occupy a specific range of byte values.

Requirements

Header winnls.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

GetCPInfo

Other Resources

WideCharToMultiByte