// dispmprt.h
DXGKDDI_GETDPADDRESS DxgkddiGetdpaddress;
NTSTATUS DxgkddiGetdpaddress(
HANDLE Context,
PDXGKARG_GETDPADDRESS pArgs
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DXGKDDI_GETDPADDRESS callback queries the DisplayPort (DP) address of a monitor connected through DP.
ContextContext pointer provided when querying the interface.
pArgsPointer to a DXGKARG_GETDPADDRESS structure.
DXGKDDI_GETDPADDRESS returns STATUS_SUCCESS if it succeeds; otherwise it returns an error code.
DXGKDDI_GETDPADDRESS is both for developmental and validation purposes.
For TargetId of a monitor connected through DP, the driver should return its DP address in the form of RootPortIndex, NumLinks, and DP Relative Address in RelAddress. NumLinks should be 0 if the DP monitor is directly connected to the GPU; otherwise, it should be the number of links between the root port and target device. The format of the Relative Address in RelAddress should follow the DP spec.