// dispmprt.h
DXGKDDI_DISPLAYMUX_GET_DRIVER_SUPPORT_LEVEL DxgkddiDisplaymuxGetDriverSupportLevel;
NTSTATUS DxgkddiDisplaymuxGetDriverSupportLevel(
PVOID DriverContext,
PDXGK_DISPLAYMUX_SUPPORT_LEVEL pDriverSupportLevel
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Dxgkrnl calls a kernel-mode display driver's (KMD) DxgkDdiDisplayMuxGetDriverSupportLevel function to query the level of support the driver has for the automatic display switch (ADS) feature.
DriverContext[in] Handle to a context block that is associated with a display adapter. KMD's DxgkDdiAddDevice function previously provided this handle to Dxgkrnl.
pDriverSupportLevel[out] Pointer to a DXGK_DISPLAYMUX_SUPPORT_LEVEL value in which the driver writes the level of ADS support that it provides.
DxgkDdiDisplayMuxGetDriverSupportLevel returns STATUS_SUCCESS if it succeeds. Otherwise, it returns an appropriate NT_STATUS error code.
This DDI is called under synchronization level 2.
DxgkDdiDisplayMuxGetDriverSupportLevel is called before DxgkDdiStartDevice. It's meant to return just the level of automatic display switch support the driver generically has. The support level returned shouldn't be influenced by any other factor, including:
If the driver supports automatic display switching on any system then it return a value that isn't DXGK_DISPLAYMUX_DRIVER_SUPPORT_LEVEL_NONE.
For more information, see Automatic Display Switch.