Setdisplayconfig failed to open the S-Video connected display

Afon.zhang 396 Reputation points
2021-01-19T02:42:54+00:00

I have two monitors, two ordinary LCD monitors (connected to the machine), brand AOC.

This machine is connected to another host through S-Video. At this time, the display No. 123 can be seen in Windows settings. At this time, if you manually disconnect the display of 3 (connect S-Video), the display connected to S-Video cannot be opened by setting the extended mode of setdisplay

Is there any API that can solve this problem

Windows development | Windows API - Win32
{count} votes

Accepted answer
  1. Afon.zhang 396 Reputation points
    2021-05-08T02:44:58.49+00:00

    Has been resolved, attach the resolution steps

    1. Call EnumDisplayDevices
    2. Call ChangeDisplaySettingsEx((LPCWSTR)DisplayDevice.DeviceName, &DevMode, NULL, CDS_UPDATEREGISTRY | CDS_NORESET, NULL);
    3. Call ChangeDisplaySettingsEx(NULL, NULL, NULL, 0, NULL);
      Attach the address: https://blog.csdn.net/immotal_xiaoqiang/article/details/115342002?spm=1001.2014.3001.5501
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.