Creates a Code Page Enumeration Object, initializes it with the value specified with grfFlags, and retrieves the corresponding IEnumCodePage interface.
Syntax
HRESULT EnumCodePages( [in] DWORD grfFlags, [in] LANGID LangId, [out] IEnumCodePage **ppEnumCodePage );
Parameters
- grfFlags
- [in] Unsigned long integer value that contains flags that control code page enumeration. This can be a combination of the MIMECONTF values.
- LangId
- [in] LANGID that specifies the language that should be associated with the code pages.
- ppEnumCodePage
- [out] Address of a pointer to the IEnumCodePage inteface of the Code Page Enumeration Object.
Return Value
Returns S_OK if successful, or an error code otherwise.