'How to create virtual displays using NVIDIA Grid driver API on windows VM

I have a windows VM on google cloud which has got NVIDIA GPU (Tesla T4 - Driver Version: 461.33). It has also got Google Graphics Array driver installed.

I have a requirement where I need atleast one additional display(virtual display) which I have to enable/disable at runtime. I am trying to enable/disable the virtual displays using NVIDIA Grid driver API. But I am unable to find proper documentation and API description to accomplish this.

Any kind of help would be greatly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source