Resolution Changer DLL

Query and change a system's display modes
Download

Resolution Changer DLL Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Icy North Technologies
  • Operating Systems:
  • Windows All
  • File Size:
  • 16 KB

Resolution Changer DLL Tags


Resolution Changer DLL Description

ResMaster.dll was developed to be a DLL that can be used to query and change a system's display modes. I wrote this DLL for use with AutoPlay Media Studio 4.0, although it should be callable from any Win32 program written in C, C++, Delphi, VB, etc. You might want to use this DLL to change a user's display settings when your application starts and then to set it back again when the application exits. ResMaster.dll was written in C++ and does not have any external dependencies. It exposes three functions: - LPCTSTR GetCurrentDisplayMode() Returns the display's current settings in the format WIDTH,HEIGHT,BITSPERPIXEL,FREQUENCY. For example 1024,768,32,75 means 1024x768 at 32 bits per pixel with a 75 Hertz. It is a good idea to retrieve and store this informaiton at the start of your application so that you can restore it later or when your application exits. - LPCTSTR GetAllDisplayModes() Returns all display modes supported by the primary display in a semi-colon delimited string. For example: 320,200,8,60;320,200,8,75;320,200,16,60;etc... - int SetDisplayMode(int nWidth, int nHeight, int nBPP, int nFreq) Changes the display mode with the specfied values. Returns 1 if successful, 0 if it fails. Internally the function checks first to make sure that the mode is supported. However, you should still do some checks of your own. It is a good idea to prompt the user to make sure that they want to change their display resolution, even temporarily.


Resolution Changer DLL Related Software