Windows Media Format SDK banner art
PreviousNext

IWMDMEnumDevice::Clone

The Clone method returns a copy of the IWMDMEnumDevice interface. The new enumerator contains the same enumeration state as the current enumerator.

Syntax

HRESULT Clone(
  IWMDMEnumDevice**  ppEnumDevice
);

Parameters

  ppEnumDevice

[out]  Address of a pointer to an IWMDMEnumDevice 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 the original interface.

Remarks

Using this method, 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 one. For more information about the standard enumerator Clone method, see the Microsoft COM documentation, available at http://www.microsoft.com/com/.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.