IEnumRfc1766::Reset Metho...     IEnumScript Interface     IEnumRfc1766 Interface    
Web Workshop (Miscellaneous)

IEnumRfc1766::Skip Method


Advances the position of the Locale Enumeration Object in the enumeration sequence by the specified amount.

Syntax

HRESULT Skip(
    ULONG celt
);

Parameters

celt
[in] Number of elements to advance in the enumeration sequence.

Return Value

Returns NO_ERROR.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

Example

This example retrieves the first and third RFC1766INFO structures from the enumeration sequence.

pMultiLanguage->EnumCodePages(&pEnumRfc1766);

PRFC1766INFO prfcInfo;
ULONG crfcInfo;

prfcInfo = (PRFC1766INFO)CoTaskMemAlloc(sizeof(RFC1766INFO)*2);
pEnumRfc1766->Next(1, prfcInfo, &crfcInfo);
pEnumRfc1766->Skip(1);
pEnumRfc1766->Next(1, prfcInfo + 1, &crfcInfo);

// Perform operations with the information on the first and third
// locales.

CoTaskMemRealloc((void*)prfcInfo, sizeof(RFC1766INFO)*crfcInfo);

See Also

IEnumRfc1766::Next, IEnumRfc1766::Reset



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.