Hi,
I have to switch the primary and secondary display. For this I tried:
Code:DISPLAY_DEVICE disdev; ZeroMemory(&disdev, sizeof(disdev)); disdev.cb = sizeof(disdev); int x, flags ; EnumDisplayDevices(NULL, 1, &disdev, 1); // flags = CDS_SET_PRIMARY | CDS_UPDATEREGISTRY |CDS_RESET; x = ChangeDisplaySettingsEx(disdev.DeviceName, NULL, NULL, flags, NULL);
Well, it didn't work, although I get a successful as return value.
I tried all kinds of different flags but it never works (although I always get a successful return value).
Could anyone please help me with this ?


Reply With Quote