// dispmprt.h
DXGKDDI_DISPLAYMUX_PRE_SWITCH_TO DxgkddiDisplaymuxPreSwitchTo;
NTSTATUS DxgkddiDisplaymuxPreSwitchTo(
PVOID DriverContext,
ULONG VidPnTargetId,
ULONG CurrentBrightnessLevel
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Dxgkrnl calls the kernel-mode display driver's (KMD) DxgkddiDisplayMuxPreSwitchTo function to notify the driver currently not connected to the display that the display is about to be switched to its GPU.
DriverContext[in] Handle to a context block that is associated with a display adapter. KMD's DxgkDdiAddDevice function previously provided this handle to Dxgkrnl.
VidPnTargetId[in] The VidPN target that the DDI is being called for.
CurrentBrightnessLevel[in] The current brightness level for the panel.
DxgkddiDisplayMuxPreSwitchTo returns STATUS_SUCCESS if it succeeds. Otherwise, it returns an appropriate NT_STATUS error code.
This DDI is called under synchronization level 2.
For more information, see Automatic Display Switch.
DxgkddiDisplayMuxPreSwitchAway