PFND3DDDI_RECLAIMALLOCATIONSCB callback function

Called by the user-mode display driver to reclaim video memory allocations that were previously offered for reuse.

Syntax

PFND3DDDI_RECLAIMALLOCATIONSCB Pfnd3dddiReclaimallocationscb;

HRESULT Pfnd3dddiReclaimallocationscb(
  HANDLE hDevice,
  CONST D3DDDICB_RECLAIMALLOCATIONS *
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

*

Return Value

Returns one of the following values.

Return code Description
S_OK
The allocations were successfully reclaimed.
E_INVALIDARG
An invalid parameter was supplied.
D3DDDIERR_DEVICEREMOVED
The video memory manager or display miniport driver could not complete the operation because either a Plug and Play (PnP) Stop event or a Timeout Detection and Recovery (TDR) event occurred.
Note If this error code is returned, the driver's calling function (typically the pfnReclaimResources routine) must return this error code to the Direct3D runtime.

Requirements

   
Windows version Windows 8 Windows Server 2012
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See Also

D3DDDICB_RECLAIMALLOCATIONS

D3DDDI_DEVICECALLBACKS

pfnReclaimResources