Skip to content

Uses PInvoke and various Win32 API elements to change screen resolution for one or more monitors

License

Notifications You must be signed in to change notification settings

timmui/ScreenResolutionChanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScreenResolutionChanger

Sets the Screen Resolution of the specified monitor in single or multi-monitor setups. Uses Pinvoke and multiple Win32 API features to make the changes. Written in C#. PowerShell Function also provided.

Tested with Windows 7. Requires PowerShell v2 for the PowerShell Function.

PowerShell Function also avalible on Microsoft TechNet Script Center (https://gallery.technet.microsoft.com/scriptcenter/Set-ScreenResolutionEx-54c5de59).

Directory

  • C# Script - The C# standalone C# script
  • PowerShell Function - The PowerShell Function
  • FindDispNum Tool - A simple tool written in C# that will show all the display information for the computer including the DeviceID needed to run the script and function.

FindDispNum Tool Instructions

  1. Run the .exe from cmd.
  2. Identify the DeviceID of the monitor you want to make changes to.

Acknowledgements

About

Uses PInvoke and various Win32 API elements to change screen resolution for one or more monitors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published