|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| winnls.h
| Unicode
| No
| Platform Notes
| None
|
|
|
CPINFO
The CPINFO structure contains information about a code page.
struct _cpinfo {
UINT MaxCharSize;
BYTE DefaultChar[MAX_DEFAULTCHAR];
BYTE LeadByte[MAX_LEADBYTES];
} CPINFO;
Members
MaxCharSize
Specifies the maximum length, in bytes, of a character in this code page.
DefaultChar
Specifies the default character used in translations into this code page. This
character is used by the WideCharToMultiByte function if an explicit default character is not given.
LeadByte
Specifies a 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 null terminator 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.
See Also
GetCPInfo, WideCharToMultiByte
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|