IMDSPEnumStorage::Skip method (mswmdm.h)

The Skip method skips over the next specified number of storage interface(s) in the enumeration sequence.

Syntax

HRESULT Skip(
  [in]  ULONG celt,
  [out] ULONG *pceltFetched
);

Parameters

[in] celt

Number of elements to skip.

[out] pceltFetched

Pointer to the number of elements actually skipped.

Return value

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 extensive list of possible error codes, see Error Codes.

Remarks

If the number specified in the celt parameter is greater than the actual number of storage interfaces remaining in the enumeration sequence, the return value from Skip is S_FALSE. When this happens, the pceltFetched parameter must be queried to determine how many interfaces were skipped. If you skip to the end of the array of storage interfaces, a subsequent call to Next returns S_FALSE.

This method must be implemented. It must not return WMDM_E_NOTSUPPORTED or E_NOTIMPL. For more information, see Mandatory and Optional Interfaces.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

IMDSPEnumStorage Interface