Export (0) Print
Expand All

IEnumRfc1766::Skip method

Advances the position of the Locale 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 NO_ERROR.

Examples

This example gets 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);

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll

See also

IEnumRfc1766
Reference
Next
Reset

 

 

Build date: 11/17/2013

Show:
© 2014 Microsoft