DxgkIsFeatureEnabled2 function (d3dkmddi.h)

KMD can call the display port driver's DxgkIsFeatureEnabled2 function before Dxgkrnl is enabled to determine whether a particular feature is enabled.

Syntax

NTSTATUS DxgkIsFeatureEnabled2(
  PVOID                       DriverObject,
  DXGKARGCB_ISFEATUREENABLED2 *pArgs
);

Parameters

DriverObject

[in] Pointer to a DRIVER_OBJECT. The display miniport driver previously obtained this pointer in its DriverEntry function.

pArgs

[in] Pointer to a DXGKARGCB_ISFEATUREENABLED2 structure that contains information about the feature to query.

Return value

DxgkIsFeatureEnabled2 returns STATUS_SUCCESS upon success completion. Otherwise, it returns an appropriate NTSTATUS code.

Remarks

DxgkIsFeatureEnabled2 is defined in the display port driver's library (displib.lib). As a result, KMD can call this function to check for the presence of an enabled feature before Dxgkrnl is initialized. Because DxgkIsFeatureEnabled2 is intended to be used at DriverEntry, only a subset of global features can be queried through it. This subset currently includes:

  • DXGK_FEATURE_GPUVAIOMMU

For more information, see Querying WDDM feature support and enablement.

Requirements

Requirement Value
Minimum supported client Windows 11, version 24H2 (WDDM 3.2)
Header d3dkmddi.h
IRQL PASSIVE_LEVEL

See also

DriverEntry

DXGKARGCB_ISFEATUREENABLED2