PDA

View Full Version : Extend topology with SetDisplayConfig function


agastal
05-22-2019, 12:48 PM
I can't extend two duplicate Displaylink monitors programmatically.

Normally to extend two monitors just a system call is needed, but with two Displaylink monitors duplicated, it doesn't work.

The function SetDisplayConfig (https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-setdisplayconfig) does not work:

SetDisplayConfig(0, NULL,0, NULL,(SDC_APPLY | SDC_TOPOLOGY_EXTEND));

The manual operation in Windows Settings works correctly but by code (C or C++ or C#) it is impossible to extend two duplciate monitors.

Has anyone already had this problem?