Creates a Code Page Enumeration Object, initializes it with the value specified with grfFlags, and retrieves the corresponding IEnumCodePage interface.
Syntax
HRESULT EnumCodePages( DWORD grfFlags, IEnumCodePage **ppEnumCodePage );
Parameters
- grfFlags
- [in] Flag that specifies the possible uses for a code page. This parameter is used to control code page enumeration. This must be a combination of the MIMECONTF constant values.
- ppEnumCodePage
- [out] Address of a buffer that receives an IEnumCodePage interface.
Return Value
Returns NOERROR if the call is successful, or E_OUTOFMEMORY if the attempt to create the object fails.
Remarks
A client uses this method to gather code page information for all the code pages in the MIME database. Through the IEnumCodePage interface, a client can create an array of MIMECPINFO structures, which contain detailed information about the code pages in the MIME database to which the grfFlags parameter applies.
Although the IEnumCodePage interface is retrieved through this method, the caller is still responsible for releasing it when it is no longer needed.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
See Also