共用方式為


IEnumComponents::Clone

 
Microsoft DirectShow 9.0

IEnumComponents::Clone

The Clone method creates a new copy of the entire collection.

Syntax

  HRESULT Clone(
  IEnumComponents**  
  ppEnum

  );

Parameters

ppEnum

[out] Address of an IEnumComponents interface pointer that will be set to the new collection.

Return Values

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Remarks

The application must release this new collection when done with it.

Requirements

Header: Dshow.h.

Library: Quartz.dll.

See Also