// d3dkmddi.h
NTSTATUS DxgkIsFeatureEnabled2(
PVOID DriverObject,
DXGKARGCB_ISFEATUREENABLED2 *pArgs
);
View the official Windows Driver Kit DDI referenceNo description available.
KMD can call the display port driver's DxgkIsFeatureEnabled2 function before Dxgkrnl is enabled to determine whether a particular feature is enabled.
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.
DxgkIsFeatureEnabled2 returns STATUS_SUCCESS upon success completion. Otherwise, it returns an appropriate NTSTATUS code.
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:
For more information, see Querying WDDM feature support and enablement.