how can I capture the screen as an input to the media foundation RRS feed

  • Question

  • Hi,

    I am using the MFCaptureD3D.exe sample from the media foundation.

    the basic in the example capture only via the camera, my question is can I use this example to display the monitor into a new window.

     the part in the example that get the available recourses:

      // Initialize an attribute store to specify enumeration parameters.

        hr = MFCreateAttributes(&pAttributes, 1);

        if (FAILED(hr)) { goto done; }

        // Ask for source type = video capture devices.

        hr = pAttributes->SetGUID(

        if (FAILED(hr)) { goto done; }

        // Enumerate devices.
        hr = MFEnumDeviceSources(pAttributes, &param.ppDevices, &param.count);


    Erez Nir

    Sunday, July 10, 2011 12:05 PM

All replies

  • There is no screen capture source within Media Foundation.  The only way to get this functionality would be to write a media source yourself, or if one exists, find one written by someone else.
    Tuesday, August 2, 2011 7:56 PM