CreatePosPassThru Function
Microsoft DirectShow 9.0 |
CreatePosPassThru Function
The CreatePosPassThru function creates a CPosPassThru object or CRendererPosPassThru object.
Syntax
STDAPI CreatePosPassThru( LPUNKNOWN pAgg, BOOL bRenderer, IPin *pPin, IUnknown **ppPassThru );
Parameters
pAgg
Pointer to the owner of this object. If the object is aggregated, pass a pointer to the aggregating object's IUnknown interface. Otherwise, set this parameter to NULL.
bRenderer
Boolean value that specifies whether the filter is a renderer. Use the value TRUE if the filter is a renderer, or FALSE otherwise. If the value is TRUE, this method creates an instance of the CRendererPosPassThru class. If the value is false, the method creates an instance of the CPosPassThru class.
pPin
Pointer to the IPin interface on the filter's input pin.
ppPassThru
Address of a variable that receives a pointer to the object's IUnknown interface.
Return Value
Returns S_OK if successful. Otherwise, returns an HRESULT value indicating the cause of the error.
Remarks
This method uses the ISeekingPassThru interface to create the object. The object is loaded dynamically from Quartz.dll.
If the function succeeds, the returned IUnknown interface has an outstanding reference count. The caller must release the interface.
Requirements
** Header:** Declared in Ctlutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also