IMDSPEnumDevice::Skip method (mswmdm.h)
The Skip method skips over the next specified number of media device 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 that actually were 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
Remarks
If the number specified in the celt parameter is greater than the actual number of interfaces remaining in the enumeration sequence, then 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 enumerated media device 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 |