// dispmprt.h
typedef struct _DXGK_FEATURE_INTERFACE {
USHORT Size;
USHORT Version;
PVOID Context;
PINTERFACE_REFERENCE InterfaceReference;
PINTERFACE_DEREFERENCE InterfaceDereference;
DXGKCB_ISFEATUREENABLED2 IsFeatureEnabled;
DXGKCB_QUERYFEATUREINTERFACE QueryFeatureInterface;
} DXGK_FEATURE_INTERFACE, *PDXGK_FEATURE_INTERFACE;
View the official Windows Driver Kit DDI referenceNo description available.
The DXGK_FEATURE_INTERFACE structure contains the port driver's interface that can be used to query it for its enabled features and their support.
SizeSize of this structure, in bytes.
VersionThe version number of the feature interface. Version number constants are defined in Dispmprt.h (for example, DXGK_FEATURE_INTERFACE_VERSION_1).
ContextPointer to a private context block.
InterfaceReferencePointer to the port driver's interface reference function.
InterfaceDereferencePointer to the port driver's interface dereference function.
IsFeatureEnabledThe port driver's DXGKCB_ISFEATUREENABLED2 function. KMD can call this function to query whether the system has enabled a feature.
QueryFeatureInterfaceThe port driver's DXGKCB_QUERYFEATUREINTERFACE function. KMD can call this function to query the OS for a feature's interface.
To get this interface, KMD calls Dxgkrnl's DxgkCbQueryServices callback with ServiceType set to DxgkServicesFeature. KMD can call DxgkCbQueryServices once it obtains the callback's pointer from a call to its DxgkDdiStartDevice.
For more information, see Querying WDDM feature support and enablement.