Windows Media Format SDK banner art
PreviousNext

IMDSPEnumStorage::Clone

The Clone method creates another enumerator that contains the same enumeration state as the current one.

Syntax

HRESULT Clone(
  IMDSPEnumStorage**  ppEnumStorage
);

Parameters

  ppEnumStorage

[out]  Pointer to an IMDSPEnumStorage interface.

Return Values

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

Return code Description
E_INVALIDARG The ppEnumStorage parameter is an invalid or NULL pointer.
E_OUTOFMEMORY There is not enough memory to replicate this interface.
E_UNEXPECTED The interface was not retrieved from a valid origin.

Remarks

Using this function, a client can record a particular point in the enumeration sequence, and return to that point at a later time. The new enumerator supports the same interface as the original one.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.