I am trying to write a desktop application in Ruby. We need to find out
what monitors are attached to the XP machine this will run on.
I looked at how SWT does this and it is accomplished via calling
EnumDisplayMonitors (windows api).
I cannot figure out how to call this from within Ruby using Win32API.
EnumDisplayMonitors's api is this:
BOOL EnumDisplayMonitors(
HDC hdc,
LPCRECT lprcClip,
MONITORENUMPROC lpfnEnum,
LPARAM dwData
);
How can I supply a proc? Is what I want to do even possible?
Any help would be appreciated. All this kind of stuff is not very
clearly documented for the novice and I can't find any relevant samples.
···
--
Posted via http://www.ruby-forum.com/.