Adding VRAM capture support to existing AVStream drivers

To add VRAM capture support to an existing pin-centric AVStream driver that uses DMA, follow these steps.

  1. Add VRAM capture support to your AVStrMiniPinProcess callback routine. The CCapturePin::Process method in Capture.cpp of the AVStream Simulated Hardware Sample Driver (AVSHwS) shows one way to do this.

  2. Handle VRAM capture property requests as described earlier in this section.

  3. Add support in either the child capture driver or the parent display miniport driver to map DX kernel handles to VRAM addresses.

  4. Implement StopCapture functionality. When the KMD sends a stop capture notification, the capture driver must stop all capture. To register for notification, the capture driver provides a DxgkDdiStopCapture callback routine. The capture driver should fail any capture requests coming from user mode after receiving this notification.