PFND3D10DDI_CHECKCOUNTERINFO callback function

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

Syntax


PFND3D10DDI_CHECKCOUNTERINFO CheckCounterInfo;

VOID APIENTRY CheckCounterInfo(
  _In_  D3D10DDI_HDEVICE      hDevice,
  _Out_ D3D10DDI_COUNTER_INFO *pCounterInfo
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

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

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D10DDI_DEVICEFUNCS
D3D10DDI_COUNTER_INFO
pfnSetErrorCb

 

 

Send comments about this topic to Microsoft

Show: