Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 3.15 KB

nf-winddi-engquerydeviceattribute.md

File metadata and controls

91 lines (68 loc) · 3.15 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date 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 req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winddi.EngQueryDeviceAttribute
EngQueryDeviceAttribute function (winddi.h)
The EngQueryDeviceAttribute function allows the driver to query the system about particular attributes of the device.
EngQueryDeviceAttribute
EngQueryDeviceAttribute function [Display Devices]
display.engquerydeviceattribute
gdifncs_1f76b3e8-f265-4959-a7f0-4bc433936be7.xml
winddi/EngQueryDeviceAttribute
display\engquerydeviceattribute.htm
display
767d0d78-c17f-461b-8ca6-04a00dc456de
12/05/2018
EngQueryDeviceAttribute, EngQueryDeviceAttribute function [Display Devices], display.engquerydeviceattribute, gdifncs_1f76b3e8-f265-4959-a7f0-4bc433936be7.xml, winddi/EngQueryDeviceAttribute
winddi.h
Winddi.h
Universal
Available in Windows 2000 and later versions of the Windows operating systems.
Win32k.lib
Win32k.sys
Windows
19H1
EngQueryDeviceAttribute
winddi/EngQueryDeviceAttribute
c++
APIRef
kbSyntax
DllExport
Win32k.sys
EngQueryDeviceAttribute

EngQueryDeviceAttribute function

-description

The EngQueryDeviceAttribute function allows the driver to query the system about particular attributes of the device.

-parameters

-param hdev [in]

Handle to the device. This parameter is the GDI handle received by the driver's DrvCompletePDEV function.

-param devAttr [in]

Specifies the attribute for which GDI should return information. This parameter must be QDA_ACCELERATION_LEVEL, which queries the driver accelerations that GDI currently allows.

-param pvIn [in]

Reserved for system use. This parameter is currently ignored by GDI.

-param ulInSize [in]

Reserved for system use. This parameter is currently ignored by GDI.

-param pvOut [out]

Pointer to a buffer of ulOutSize bytes in which GDI writes information about the attribute being queried. When devAttr is QDA_ACCELERATION_LEVEL, GDI writes in the buffer a DWORD value from 0 through 5 that indicates the current acceleration level. See Display Driver Testing Tools for a description of the acceleration levels.

-param ulOutSize [out]

Specifies the size, in bytes, of the buffer to which pvOut points.

-returns

EngQueryDeviceAttribute returns TRUE upon success; otherwise, it returns FALSE.

-remarks

The video card's acceleration level can be dynamically set through the Display program in Control Panel. EngQueryDeviceAttribute allows the driver to determine the acceleration level currently set.

-see-also

DrvNotify