So i just got into win32api stuff and i would like to make a (c++)dll to
join in a process. I got some code here but i dont know much about
win32api & params
···
-------------------------------------------------------------------------
require 'win32api'
hook = Win32API.new('user32','SetWindowsHookEx', [''], '')
library = Win32API.new('kernel32','LoadLibrary', [''], '')
procadr = Win32API.new('kernel32','GetProcAddress', [''], '')
lcall = library.call('mylibrary.dll')
pcall = procadr.call(lcall, 'funcname')
hook.call('WH_MSGFILTER',pcall,lcall,0)
-------------------------------------------------------------------------
Any help?
--
Posted via http://www.ruby-forum.com/.