Enabling inactive displays

Hi everyone,

I can enable an inactive display through the NVIDIA Control Panel (“Set up multiple displays”), but I need to do it programmatically. I know NVAPI can enumerate unattached displays (e.g. NvAPI_EnumNvidiaUnAttachedDisplayHandle), but I don’t see a straightforward way to “attach” or enable them so Windows recognizes them as active.

Is there a publicly documented NVAPI call for programmatically enabling inactive displays? If not, should I just rely on ChangeDisplaySettingsEx or another Windows API method? Any advice or recommended approaches would be really helpful!

Thanks in advance.

-Patrick