IRbtBaseAV::LockFilterGraph

Locks and retrieves a reference to the filter graph

HRESULT IRbtBaseAV::LockFilterGraph (
     IUnknown ** fg,
     BOOL readOnly
)

Parameters
fg
Returns pointer to the IUnknown interface on the filter graph
readOnly
Whether the filter graph will be modified

Return Values
ValueMeaning
S_OKFilter graph locked successfully
E_PENDINGFilter graph is already locked or not ready

Remarks
If readOnly is FALSE, then the graph must be stopped.
The caller should call Release() on the returned pointer when finished with it