Microsoft DirectX 8.1 (C++)

CreatePosPassThru Function

The CreatePosPassThru function reates 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.

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

If the value of bSupportRendering is TRUE, this method creates an instance of the CRendererPosPassThru class. Otherwise, it creates an instance of the CPosPassThru class.

If the function succeeds, the returned IUnknown interface has an outstanding reference count. The caller must release the interface.

See Also