User`s manual

Programming Guide 51
5.4 Controlling Driver
Preview
ADLINK Bt878 Video Capture
The ADLINK Bt878 Video Capture Filter provides property
pages and exposes COM interfaces to control video. Hence,
an application has two ways to control video configurations: via
property pages or via the COM interfaces.
Use Property Pages
There are two embedded property pages in the driver. To show
these property pages, use Windows API: OleCreateProperty-
Frame.
Documentation on Displaying a Filter’s Property Page can be
found on Microsoft MSDN homepage.
Below is an example code for adding property pages:
// pFilter points to the capture filter
ISpecifyPropertyPages *pSpecify;
HRESULT hr;
hr = pFilter-
>QueryInterface(IID_ISpecifyPropertyPages, (void
**)&pSpecify);
if (SUCCEEDED(hr))
{
FILTER_INFO FilterInfo;
pFilter->QueryFilterInfo(&FilterInfo);
FilterInfo.pGraph->Release();
CAUUID caGUID;
pSpecify->GetPages(&caGUID);
pSpecify->Release();