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 application-defined callback function is used with the EnumSystemCodePagesfunction. It receives a pointer to a string buffer that contains a code page identifier. The CODEPAGE_ENUMPROCtype defines a pointer to this callback function. EnumCodePagesProcis 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 EnumCodePagesProcfunction can carry out any desired task.
An application registers an EnumCodePagesProcfunction by passing its address to the EnumSystemCodePagesfunction.
Note: |
---|
This function poses a security risk. The parameter lpCodePageStringis 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 |
Windows Mobile | Windows Mobile Version 5.0 and later |