IComponents::Add

 
Microsoft DirectShow 9.0

IComponents::Add

The Add method adds a Component object to the collection.

Syntax

  HRESULT Add(
  IComponent*  pComponent,
  VARIANT*  pNewIndex
);

Parameters

pComponent

[in] Pointer to the Component object to be added.

pNewIndex

[out] Pointer to a VARIANT that will receive the index of the Component object after it has been added.

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