pfnReclaimAllocationsCb function

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

Syntax


__checkReturn HRESULT APIENTRY pfnReclaimAllocationsCb(
  _In_  HANDLE hDevice,
  _In_  const D3DDDICB_RECLAIMALLOCATIONS *pData
);

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDICB_RECLAIMALLOCATIONS structure that defines the allocations to reclaim.

Return value

Returns one of the following values.

Return codeDescription
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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDICB_RECLAIMALLOCATIONS
D3DDDI_DEVICECALLBACKS
pfnReclaimResources

 

 

Send comments about this topic to Microsoft

Anzeigen:
© 2014 Microsoft