Skip to content

Instantly share code, notes, and snippets.

@atomicules
Created May 12, 2010 15:55
Show Gist options
  • Save atomicules/398754 to your computer and use it in GitHub Desktop.
Save atomicules/398754 to your computer and use it in GitHub Desktop.
# For blog post
# New win32-api version of http://www.mustap.com/rubyzone_post_90_ruby-on-windows
require 'win32/api'
include Win32
desktop = API.new("SystemParametersInfo", ['L','L','P','L'] , 'L', "user32")
desktop.call(20,0,"c:\\my_img.bmp",0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment