IEnumCodePage::Next Metho...     IEnumCodePage::Skip Metho...     IEnumCodePage Interface    
Web Workshop (Miscellaneous)

IEnumCodePage::Reset Method


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

IEnumCodePage::Next, IEnumCodePage::Skip



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.