How do i enable Desktop Resizing using NVAPI?

I have recently gotten back into Counter-Strike. While on a hiatus from the game, i have acquired myself a 3440x1440 (21:9) ultrawide monitor. When i play CS:GO, i like to play a 4:3 stretched resolution to 16:9. which i have successfully achieved on my ultrawide monitor by using Desktop Resizing and resizing the desktop to 2560x1440 (16:9).

Now i’m trying to develop a small program using the NVAPI, which will detect when CS:GO is launched, and then enable desktop resizing at 2560x1440. and then revert to 3440x1440 when i close the game again. However, i have no experience with the NVAPI, and i cant seem to figure out how to enable Desktop Resizing through the documentation. Does anyone have an idea on how to get me started? and how to enable Desktop Resizing?

Dear @pete372b

Thank you for contacting the NVIDIA developer forum.
Our technical team has received your query and we will get back to you after an initial investigation.

Thanks,
NVAPI Forum Moderator

Dear @pete372b

We checked the desktop resizing functionality details, currently, there is no support in the NVAPI SDK for the same. We have noted your request and we will let you know when we start supporting this functionality through NVAPI SDK in the future.

Thank you.
NVAPI Forum Moderator

Ahh too bad. But Awesome to hear its been noted! Thank you so much! :)

1 Like