From: Saturn Date: 2009-11-11T21:20:07+09:00 Subject: Re: Changing screen resolution through Ruby Thanks Marvin, As you said problem is same here, I am unable to make it's arguments: I tried following: require 'Win32API' @e = Win32API.new("user32","ChangeDisplaySettings", ['I','I'], 'I' ) p @e.call(800, 600) it's giving me error Or nothing if I remove p from the last line. If any body has a clean solution like initialized all other DEVMODE settings with default and changing only resolution part please let me know. Thanks for helping me.