ICaptureGraphBuilder2::GetFiltergraph
This method retrieves the filter graph that the capture graph builder is using.
HRESULT GetFiltergraph(
IGraphBuilder** ppfg
);
Parameters
- ppfg
[out] Address of a variable that receives an IGraphBuilder interface pointer.
Return Values
Returns one of the following HRESULT values.
Return Code | Description |
---|---|
S_OK | Success. |
E_POINTER | NULL pointer argument. |
E_UNEXPECTED | No filter graph. |
Remarks
Initially, the capture graph builder does not hold a pointer to a filter graph. This method returns E_UNEXPECTED until one of the following methods has been called:
- ICaptureGraphBuilder2::RenderStream
- ICaptureGraphBuilder2::SetFiltergraph
- ICaptureGraphBuilder2::SetOutputFileName
This method increments the reference count on the IGraphBuilder interface. Be sure to release the interface when you are done with it.
Requirements
DirectShow applications and DirectShow filters have different include file and link library requirements.
For more information, see Setting Up the Build Environment.
Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later
Header:
See Also
ICaptureGraphBuilder2 Interface | IGraphBuilder interface | ICaptureGraphBuilder2::RenderStream | ICaptureGraphBuilder2::SetFiltergraph | ICaptureGraphBuilder2::SetOutputFileName
Send Feedback on this topic to the authors