Freigeben über


IEnumCodePage::Skip method

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

Syntax

HRESULT Skip(
  [in] unsigned long celt
);

Parameters

  • celt [in]
    The number of elements to advance in the enumeration sequence.

Return value

Returns NOERROR.

Examples

This example gets the first and third MIMECPINFO structures from the enumeration sequence.

pMultiLanguage->EnumCodePages(MIMECONTF_BROWSER,
    &pEnumCodePage);

PMIMECPINFO pcpInfo;
ULONG ccpInfo;

pcpInfo = (PMIMECPINFO)CoTaskMemAlloc(sizeof(MIMECPINFO)*2);
pEnumCodePage->Next(1, pcpInfo, &ccpInfo);
pEnumCodePage->Skip(1);
pEnumCodePage->Next(1, pcpInfo + 1, &ccpInfo);

// Use the information on the first and third 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

Reset