PFND3D10DDI_SETERROR_CB callback function

The pfnSetErrorCb function sets the return error code of a user-mode display driver's function.

Syntax

PFND3D10DDI_SETERROR_CB Pfnd3d10ddiSeterrorCb;

void Pfnd3d10ddiSeterrorCb(
  D3D10DDI_HRTCORELAYER Arg1,
  HRESULT Arg2
)
{...}

Parameters

Arg1

hRuntimeDevice [in]

A handle to a context for the core Microsoft Direct3D 10 runtime. This handle is supplied to the driver in a call to the driver's CreateDevice(D3D10) function.

Arg2

hResult [in]

An HRESULT value that specifies the error to set for a driver function.

Return Value

None

Remarks

A user-mode display driver can call pfnSetErrorCb many times for each driver invocation. For the driver's functions that do not return status codes, the driver uses pfnSetErrorCb to return error information to the Direct3D runtime.

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

CreateDevice(D3D10)

D3D10DDI_CORELAYER_DEVICECALLBACKS