EnumCodePagesProc (Windows Embedded CE 6.0)
1/6/2010
This application-defined callback function is used with the EnumSystemCodePages function. It receives a pointer to a string buffer that contains a code page identifier. The CODEPAGE_ENUMPROC type defines a pointer to this callback function. EnumCodePagesProc is a placeholder for the application–defined function name.
Syntax
BOOL CALLBACK EnumCodePagesProc(
LPTSTR lpCodePageString
);
Parameters
- lpCodePageString
[in] Pointer to a string buffer that contains a code page identifier string with a terminating null character.
Return Value
TRUE continues enumeration. FALSE stops enumeration.
Remarks
An EnumCodePagesProc function can carry out any desired task.
An application registers an EnumCodePagesProc function by passing its address to the EnumSystemCodePages function.
Note
This function poses a security risk. The parameter lpCodePageString is only used as input but not declared as a const string. The user may fill anything into it and can cause a buffer overflow.
Requirements
Header | winnls.h |
Library | Coreloc.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |