共用方式為


IComponentType::Clone

 
Microsoft DirectShow 9.0

IComponentType::Clone

The Clone method creates a new copy of this component type.

Syntax

  HRESULT Clone(
  IComponentType**  ppNewCT
);

Parameters

ppNewCT

[out] Address of the IComponentType interface pointer that will be set to the returned interface.

Return Values

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

Requirements

Header: Dshow.h.

Library: Quartz.dll.

See Also