IEnumCodePage::Reset (Windows CE 5.0)
This method resets the Code Page Enumeration object to the beginning of the enumeration sequence.
HRESULT Reset(void);
Parameters
None.
Return Values
Returns NOERROR.
Example Code
The following code example retrieves ten MIMECPINFO structures from the middle of the enumeration sequence. Then, using the IEnumCodePage::Reset method, it retrieves the first ten structures.
pMultiLanguage->EnumCodePages(MIMECONTF_BROWSER,
&pEnumCodePage);
PMIMECPINFO pcpInfo;
ULONG ccpInfo;
pcpInfo = (PMIMECPINFO)CoTaskMemAlloc(sizeof(MIMECPINFO)*10);
pEnumCodePage->Skip(6);
pEnumCodePage->Next(10, pcpInfo, &ccpInfo);
// Perform operations with the information on the returned ten
// code pages.
pEnumCodePage->Reset();
pEnumCodePage->Next(10, pcpInfo, &ccpInfo);
// Perform operations with the information on the first 10
// code pages.
CoTaskMemRealloc((void*)pcpInfo, sizeof(MIMECPINFO)*ccpInfo);
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Mlang.h, Mlang.idl.
Link Library: Mlang.dll.
Send Feedback on this topic to the authors