Windows Media Format SDK banner art
PreviousNext

IWMDMEnumDevice::Skip

The Skip method skips over a specified number of devices in the enumeration sequence.

Syntax

HRESULT Skip(
  ULONG  celt,
  ULONG*  pceltFetched
);

Parameters

  celt

[in]  Number of devices (interfaces) to skip.

  pceltFetched

[out]  Number of devices actually skipped.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
S_FALSE The number of elements specified was not skipped.
E_INVALIDARG A parameter is invalid or is a NULL pointer.
E_FAIL An unspecified error occurred.

Remarks

If the number of elements to be skipped that is specified in celt is greater than the actual number of device interfaces remaining in the enumeration sequence, the return value from Skip is S_FALSE. At this point, pceltFetched must be queried to determine the number of interfaces skipped. If you skip to the end of the device array, a subsequent call to Next also returns S_FALSE. For more information about the standard enumerator Skip method, see the Microsoft COM documentation, available at http://www.microsoft.com/com/.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.