PFND3DDDI_CAPTURETOSYSMEM callback function (d3dumddi.h)

The CaptureToSysMem function copies the contents of a capture buffer to a destination surface.

Syntax

PFND3DDDI_CAPTURETOSYSMEM Pfnd3dddiCapturetosysmem;

HRESULT Pfnd3dddiCapturetosysmem(
  HANDLE hDevice,
  const D3DDDIARG_CAPTURETOSYSMEM *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_CAPTURETOSYSMEM structure that describes the parameters of the bit-block transfer (bitblt).

Return value

CaptureToSysMem returns one of the following values:

Return code Description
S_OK All resources for the bitblt are in GPU-accessible memory.
E_OUTOFMEMORY CaptureToSysMem could not allocate the required memory for it to complete.

Remarks

The CaptureToSysMem function is similar to the Blt function except that CaptureToSysMem supports copying only from a capture buffer.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_CAPTURETOSYSMEM

D3DDDI_DEVICEFUNCS