Microsoft DirectX 8.1 (C++)

Setting Capture Properties

Various filters and pins in the graph might expose interfaces for setting and retrieving properties. Use the ICaptureGraphBuilder2::FindInterface method to obtain pointers to these interfaces. For a list of interfaces that might be useful in your application, see Video Capture Interfaces.

The following code example retrieves the IAMDroppedFrames interface from an interleaved audio/video capture pin:

IAMDroppedFrames *pDropped = NULL;
pBuilder->FindInterface(&PIN_CATEGORY_CAPTURE, &MEDIATYPE_Interleaved, 
    pSrc, IID_IAMDroppedFrames, (void **)&pDropped);

However, do not call the FindInterface method to obtain the IVideoWindow interface, which contains methods for controlling the video playback window. Instead, query the filter graph for this interface. Otherwise, the filter graph will not respond correctly to events such as a change in the screen resolution. You can use IVideoWindow to make the preview window a child of your application window. For more information, see Setting the Video Window.