And looks like there's an example on how to use the functions you need here -> http://sketchucation.com/forums/viewtopic.php?f=180&t=40319 - but he seems to be using another class than the default ruby Win32API class. I didn't look at the example code (you can download it).