PFND3D10DDI_CHECKCOUNTERINFO callback function (d3d10umddi.h)
The CheckCounterInfo function determines global information that is related to manipulating counters.
Syntax
PFND3D10DDI_CHECKCOUNTERINFO Pfnd3d10ddiCheckcounterinfo;
void Pfnd3d10ddiCheckcounterinfo(
D3D10DDI_HDEVICE unnamedParam1,
D3D10DDI_COUNTER_INFO *unnamedParam2
)
{...}
Parameters
unnamedParam1
hDevice [in]
A handle to the display device (graphics context).
unnamedParam2
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
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3d10umddi.h (include D3d10umddi.h) |