Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method creates a copy of the DMO in its current state.

Syntax

HRESULT Clone(
  IMediaObjectInPlace** 
ppMediaObject
);

Parameters

ppMediaObject

[out] Address of a pointer to receive the new DMO's IMediaObjectInPlaceinterface.

Return Value

Returns S_OK if successful. Otherwise, it returns an HRESULTvalue indicating the cause of the error.

Remarks

If the method succeeds, the IMediaObjectInPlaceinterface that it returns has an outstanding reference count. Be sure to release the interface when you are finished using it.

Requirements

Header dmo.h
Library Dmoguid.lib
Windows Embedded CE Windows CE .NET 4.1 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also