Windows Media Format SDK banner art
PreviousNext

IMDSPEnumDevice::Clone

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

Syntax

HRESULT Clone(
  IMDSPEnumDevice**  ppEnumDevice
);

Parameters

  ppEnumDevice

[out]  Pointer to an IMDSPEnumDevice 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 ppEnumDevice 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 then return to that point later. The new enumerator supports the same interface as the original one.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.