PFND3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATACB callback function (d3dumddi.h)

pfnGetResourcePresentPrivateDriverDataCb is used to query the resource private data, which is associated with the resource during Present.

Syntax

PFND3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATACB Pfnd3dddiGetresourcepresentprivatedriverdatacb;

HRESULT Pfnd3dddiGetresourcepresentprivatedriverdatacb(
  HANDLE hDevice,
  D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device.

unnamedParam2

pData [in, out]

A pointer to a D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA structure that describes the operation to perform and contains the results.

Return value

Return value Description
S_OK The operation completed successfully.
STATUS_INVALID_BUFFER_SIZE The value of D3DDDI_GETRESOURCEPRESENTPRIVATEDRIVERDATA::PrivateDriverDataSize was zero or was insufficient to hold the data. When control returns to the caller, PrivateDriverDataSize will contain the required buffer size.

This method may return other HRESULT values.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)