[Win32utils-devel] win32-api callback causes ruby to application error (crash).

Daniel Berger djberg96 at gmail.com
Sat Jan 5 12:33:18 EST 2008

Hi Nao,

nao16t at gmail.com wrote:
> # I originally intended to post this question here.
> # But it took some time for subscription authorization process.
> # So I have posted the same question to the forum when I was waiting
> # for the subscription confirmation notice.
> # It seems to me the forum is not so active, let me drop here too.

That's fine. I monitor both.


> SNMPAPI_CALLBACK = API::Callback.new('LLLLPP', 'L'){ |hSession, hWnd, 
> wMsg, wParam, lParam, lpClientData|
>   puts "Trap Recieved!"
> }

I haven't tested it, but shouldn't the 5th parameter be 'L'. The docs 
say lParam is a 32 bit identifier.



More information about the win32utils-devel mailing list