FindNextCodePage
The SNA National Language Support (SNANLS) FindNextCodePage function finds the next instance of code page satisfying the condition specified in the initial call to the FindFirstCodePage function, and copies the code page information to a structure passed as a parameter.
Syntax
BOOL WINAPI FindNextCodePage(
const HANDLE hInfo
struct CodePage *pPage
);
Parameters
hInfo
Supplied parameter. The handle allocated and returned using FindFirstCodePage.
pPage
Supplied and returned parameter. A pointer to struct CodePage where the code page information should be copied.
On a successful return, the memory location pointed to by this parameter will be filled with the information for the next code page satisfying the conditions in dwEnumOption parameter passed to the FindFirstCodePage function.
On failure, no changes will be made to the memory pointed to by this parameter.
The CodePage struct is defined in the SNANLS.H include file as follows:
struct CodePage {
BYTE CodePageKey;
DWORD CodePageID;
WCHAR szFriendlyName[CP_SIZE];
short eGroup;
BOOL bAvailable;
BYTE bccsid;
BOOL bEuro;
};
The members of this CodePage structure are as follows:
CodePageKey
A numeric value that represents the index into the array of CodePage structures. This value should be used as an opaque value, since this value can be changed arbitrarily by Service Packs when additional code pages are supported.
CodePageID
The NLS code page number.
szFriendlyName
The SNANLS display name for this code page. The character string is null terminated.
eGroup
The group that this code page is represented by. .This value can be one of the following enumerations defined in the SNANLS.h include file for code groups:
ENUM_CP_EBCDIC
This code page is a member of the EBCDIC code page group.
ENUM_CP_ANSI
This code page is a member of the ANSI code page group.
ENUM_CP_ISO
This code page is a member of the ISO code page group.
ENUM_CP_OEMPC
This code page is a member of the OEM PC code page group.
ENUM_CP_ISO
This code page is a member of the ISO code page group.
ENUM_CP_ISO
This code page is a member of the ISO code page group.
ENUM_CP_OEM PC
This code page is a member of the OEM PC code page group.
ENUM_CP_OPEN
This code page is a member of the Open Systems code page group.
ENUM_CP_UCS
This code page is a member of the UCS code page group.
bAvailable
A Boolean used to indicate that this code page is installed on the computer. A value of FALSE for this member indicates that the computer will not be queried to determine if this code page is installed. A value of TRUE indicated the code page is installed.
bccsid
A flag used to indicate the type of code page. This flag can be one of the following:
ENUM_CP_DBCS (0x08)
The code page is for a double-byte character set.
ENUM_CP_MBCS (0x10)
The code page is for a mixed-byte character set.
ENUM_CP_SBCS (0x20)
The code page is for a single-byte character set.
bEuro
A Boolean value used to indicate if this code page supports the euro symbol. If this value is TRUE, then the euro symbol is supported.
Return Value
The FindNextCodePage function returns a value of TRUE on success. On failure, the returned value is FALSE.
Remarks
This function is supported by SNANLS on Host Integration Server.