Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IEnumCodePage::Reset method

Resets the Code Page Enumeration Object to the beginning of the enumeration sequence.

Syntax


HRESULT Reset();

Parameters

This method has no parameters.

Return value

Returns NOERROR.

Examples

This example gets 10 MIMECPINFO structures from the middle of the enumeration sequence. Then, using the Reset function, it gets 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);

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll

See also

IEnumCodePage
Reference
Next
Skip

 

 

Show:
© 2018 Microsoft