c# - Prevent application from changing desktop resolution -


so have old game client annoyingly takes upon change desktop resolution cater 1600x900 resolution achieve full screen, i'm trying figure out how stop happening.

i imagine it's calling changedisplaysettings() in user32.dll, if possible block specific dll calls, or perhaps easier way?

thanks in advance.

edit: should add game client not own have no direct control on it's doing.

i have managed breakpoint before changedisplaysettingsa() call , modify lpdevmode parameters achieve want, need figure out how programmatically.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -