// d3d10umddi.h
PFND3D10DDI_CHECKCOUNTERINFO Pfnd3d10ddiCheckcounterinfo;
VOID Pfnd3d10ddiCheckcounterinfo(
D3D10DDI_HDEVICE unnamedParam1,
D3D10DDI_COUNTER_INFO *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The CheckCounterInfo function determines global information that is related to manipulating counters.
unnamedParam1hDevice [in]
A handle to the display device (graphics context).
unnamedParam2pCounterInfo [out]
A pointer to a D3D10DDI_COUNTER_INFO structure that the driver populates with global information that is related to manipulating counters.
The driver can use the pfnSetErrorCb callback function to set an error code.
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.