Partager via


IEnumCodePage::Reset (Windows Embedded CE 6.0)

1/6/2010

This method resets the Code Page Enumeration object to the beginning of the enumeration sequence.

Syntax

HRESULT Reset(void);

Parameters

None.

Return Value

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

Header mlang.h, mlang.idl
Library mlang.dll
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IEnumCodePage