Share via


IWMDMEnumStorage::Skip

banner art

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

Syntax

HRESULT Skip(ULONGcelt,ULONG*pceltFetched);

Parameters

celt

[in]  The number of storages to skip.

pceltFetched

[out]  The number of storages skipped.

Return Values

The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes

For an extenstive list of possible error codes, see Error Codes.

Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.
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 devices specified in celt is greater than the actual number of storage interfaces remaining in the enumeration sequence, this function will return S_FALSE. When this happens, pceltFetched must be queried to determine how many interfaces were actually skipped. If you skip to the end of the array of storage interfaces, a subsequent call to Next returns S_FALSE.

Requirements

Header: Defined in mswmdm.h.

Library: mssachlp.lib

See Also