IMDSPEnumStorage::Skip
The Skip method skips over the next specified number of storage interface(s) in the enumeration sequence. This method must be implemented. It must not return WMDM_E_NOTSUPPORTED or E_NOTIMPL. For more information, see the second table under Implementing Service Providers.
Syntax
HRESULT Skip(
ULONG celt,
ULONG* pceltFetched
);
Parameters
celt
[in] Number of elements to skip.
pceltFetched
[out] Pointer to the number of elements actually skipped.
Return Values
The method returns an HRESULT. All the interface methods in Windows Media Device Manager and service provider 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 a complete 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 skipped elements is less than celt. |
E_FAIL | An unspecified error occurred. |
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.
Requirements
Header: Defined in wmsp.idl.
Library: mssachlp.lib
See Also