DXGKCB_ISFEATUREENABLED callback function (d3dkmddi.h)

A kernel-mode display miniport driver (KMD) calls DXGKCB_ISFEATUREENABLED to query whether the OS will permit it to enable support for a feature.

Syntax

DXGKCB_ISFEATUREENABLED DxgkcbIsfeatureenabled;

NTSTATUS DxgkcbIsfeatureenabled(
  [in/out] INOUT_PDXGKARGCB_ISFEATUREENABLED unnamedParam1
)
{...}

Parameters

[in/out] unnamedParam1

Pointer to a DXGKARGCB_ISFEATUREENABLED structure that contains information about the feature being queried.

Return value

Return STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS error code.

Remarks

Starting in WDDM 2.9, drivers can call DXGKCB_QUERYFEATURESUPPORT to provide additional information to the OS.

The OS sets the Enabled member of DXGKARGCB_ISFEATUREENABLED to TRUE when it allows the driver to enable support for the queried feature. Enabled is set to FALSE to instruct the driver to not enable its support for the feature.

DXGKCB_XXX functions are implemented by Dxgkrnl. To use this callback function, set the appropriate members of DXGKARGCB_ISFEATUREENABLED and then call DxgkCbIsFeatureEnabled via the DXGKRNL_INTERFACE.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1903 (WDDM 2.6)
Header d3dkmddi.h
IRQL PASSIVE_LEVEL

See also

DXGKARGCB_ISFEATUREENABLED

DXGKCB_QUERYFEATURESUPPORT

DXGKRNL_INTERFACE