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?