PFND3D10DDI_CHECKCOUNTERINFO callback function

The CheckCounterInfo function determines global information that is related to manipulating counters.

Syntax

PFND3D10DDI_CHECKCOUNTERINFO Pfnd3d10ddiCheckcounterinfo;

void Pfnd3d10ddiCheckcounterinfo(
  D3D10DDI_HDEVICE Arg1,
  D3D10DDI_COUNTER_INFO *Arg2
)
{...}

Parameters

Arg1

hDevice [in]

A handle to the display device (graphics context).

Arg2

pCounterInfo [out]

A pointer to a D3D10DDI_COUNTER_INFO structure that the driver populates with global information that is related to manipulating counters.

Return Value

None

The driver can use the pfnSetErrorCb callback function to set an error code. For more information about setting error codes, see the following Remarks section.

Remarks

If the user-mode display driver does not support any of the concepts that are represented in the members of the D3D10DDI_COUNTER_INFO structure, it can populate the members of D3D10DDI_COUNTER_INFO with zeros.

The driver's CheckCounterInfo function cannot call the pfnSetErrorCb callback function to set the D3DDDIERR_DEVICEREMOVED error code because CheckCounterInfo is a capability-check type of function. The driver must ensure that it has enough information after device creation to respond to a call to CheckCounterInfo, even in the presence of D3DDDIERR_DEVICEREMOVED. CheckCounterInfo should not encounter any errors. However, CheckCounterInfo might call pfnSetErrorCb for critical errors.

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

D3D10DDI_COUNTER_INFO

D3D10DDI_DEVICEFUNCS

pfnSetErrorCb