// d3dkmddi.h
DXGKDDI_STOPCAPTURE DxgkddiStopcapture;
NTSTATUS DxgkddiStopcapture(
[in] IN_CONST_HANDLE hAdapter,
[in] IN_CONST_PDXGKARG_STOPCAPTURE pStopCapture
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkDdiStopCapture function stops the capture hardware from using the given allocation as a capture buffer.
hAdapter [in]A handle to a context block that is associated with a display adapter. The display miniport driver previously provided this handle to the Microsoft DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.
pStopCapture [in]A pointer to a DXGKARG_STOPCAPTURE structure that contains the handle to the allocation that is used as a capture buffer.
DxgkDdiStopCapture returns STATUS_SUCCESS, or an appropriate error result if the allocation is not successfully stopped.
When a capture buffer is destroyed, the DirectX graphics kernel subsystem calls the DxgkDdiStopCapture function to inform the display miniport driver to stop the capture hardware from using the allocation as the capture buffer. If the capture hardware already stopped using the allocation, the driver should ignore the call.
DxgkDdiStopCapture should be made pageable.