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.
Add VRAM capture support to your AVStrMiniPinProcess callback routine. The CCapturePin::Process method in Capture.cpp of the AVStream Simulated Hardware Sample Driver (AVSHwS) in the MSDN Code Gallery shows one way to do this.
Handle VRAM capture property requests as described earlier in this section.
Add support in either the child capture driver or the parent display miniport driver to map DX kernel handles to VRAM addresses.
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.