Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 3.72 KB

nc-d3dumddi-pfnd3dddi_checkcounterinfo.md

File metadata and controls

84 lines (59 loc) · 3.72 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3dumddi.PFND3DDDI_CHECKCOUNTERINFO
PFND3DDDI_CHECKCOUNTERINFO (d3dumddi.h)
Called by the Microsoft Direct3D runtime to determine global information that's related to manipulating counters. Must be implemented by Windows Display Driver Model (WDDM) 1.3 and later user-mode display drivers.
display\pfncheckcounterinfo.htm
display
05/10/2018
PFND3DDDI_CHECKCOUNTERINFO callback function
PFND3DDDI_CHECKCOUNTERINFO, PFND3DDDI_CHECKCOUNTERINFO callback, d3dumddi/pfnCheckCounterInfo, display.pfncheckcounterinfo, pfnCheckCounterInfo, pfnCheckCounterInfo callback function [Display Devices]
d3dumddi.h
D3d10umddi.h
Desktop
Windows 8.1
Windows Server 2012 R2
Windows
PFND3DDDI_CHECKCOUNTERINFO
d3dumddi/PFND3DDDI_CHECKCOUNTERINFO
APIRef
kbSyntax
UserDefined
D3dumddi.h
PFND3DDDI_CHECKCOUNTERINFO

PFND3DDDI_CHECKCOUNTERINFO callback function

-description

Called by the Microsoft Direct3D runtime to determine global information that's related to manipulating counters. Must be implemented by Windows Display Driver Model (WDDM) 1.3 and later user-mode display drivers.

-parameters

-param hDevice

A handle to the display device (graphics context).

-param unnamedParam2

pCounterInfo [out]

A pointer to a D3DDDIARG_COUNTER_INFO structure that the driver populates with global information that's related to manipulating counters.

-remarks

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.

This function should behave similarly to the CheckCounterInfo function that supports Microsoft Direct3D 10 and later.

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

The driver's pfnCheckCounterInfo function cannot call the pfnSetErrorCb callback function to set the D3DDDIERR_DEVICEREMOVED error code because pfnCheckCounterInfo 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 pfnCheckCounterInfo, even in the presence of D3DDDIERR_DEVICEREMOVED. pfnCheckCounterInfo should not encounter any errors. However, pfnCheckCounterInfo might call pfnSetErrorCb for critical errors.

-see-also

CheckCounterInfo

D3DDDIARG_COUNTER_INFO

pfnSetErrorCb