Windows Media Format SDK banner art
PreviousNext

IWMDMEnumStorage::Clone

The Clone method creates another enumerator with the same enumeration state as the current enumerator.

Syntax

HRESULT Clone(
  IWMDMEnumStorage**  ppEnumStorage
);

Parameters

  ppEnumStorage

[out]  Pointer to a variable that holds a pointer to another IWMDMEnumStorage 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 interface pointer address is invalid.
E_OUTOFMEMORY There is not enough memory to replicate this interface.

Remarks

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

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.