How to use NvAPI_DISP_TryCustomDisplay to change display resolution

We need to change display resolution in a Windows 10 VM based on A10-4Q vGPU. we found that “38401080” “31941860” “3584*2240” will fail to set with “NvAPI_DISP_TryCustomDisplay” API. Attached is the test source code we use.

Could you help to provide any samples/docs/assets/steps about how to use “NvAPI_DISP_TryCustomDisplay” to set display resolution? Also, if “NvAPI_DISP_TryCustomDisplay” can not set these display resolutions, is there any other ways/APIs that can help to change display resolution? thanks.

Hello @jackhe

I am closing this topic as discussed over the email.

Thank you.
NVAPI Forum Moderator