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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -