I need to access a few functions of the win32 library in ruby. I have found extremely sparse information on the Win32API class online, so I\'m asking here.
I know th
I think you'll have to investigate the String#pack method to get your APPBARDATA struct filled correctly.
See the "Pickaxe" book section on Win32 and Ruby (scroll down to the Win32API class definition).
So as already spotted, you'll use a 'P' argument and you'll pass a properly-packed String (or Strings) into the function.
Alternatively, if you have a little time to investigate, you may want to look at the FFI library, which seems to do everything in a rather more friendly way. I have no direct experience, but try looking at