Resets the Code Page Enumeration Object to the beginning of the enumeration sequence.
Syntax
HRESULT Reset();
Return Value
Returns NOERROR.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Example
This example retrieves 10 MIMECPINFO structures from the middle of the enumeration sequence. Then, using the Reset function, it retrieves the first 10.
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 10 // 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);
See Also