Compartilhar via


IEnumRfc1766::Reset (Windows CE 5.0)

Send Feedback

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

HRESULTReset(void);

Parameters

None.

Return Values

Returns NOERROR.

Example Code

The following example shows the syntax for retrieving ten RFC1766INFO structures from the middle of the enumeration sequence. Then, using the IEnumRfc1766::Reset method, it retrieves the first ten structures.

pMultiLanguage->EnumRfc1766(&pEnumRfc1766);
PRFC1766INFO pcpInfo;
ULONG ccpInfo;
pcpInfo=(PRFC1766INFO)CoTaskMemAlloc(sizeof(RFC1766INFO)*10);
pEnumRfc1766->Skip(6);
pEnumRfc1766->Next(10, pcpInfo, &ccpInfo);
// Use the information returned about these ten locales.
pEnumRfc1766->Reset();
pEnumRfc1766->Next(10, pcpInfo, &ccpInfo);
// Use the information returned about the first 10.
CoTaskMemRealloc((void*)pcpInfo, sizeof(RFC1766INFO)*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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.