Displaying 1 result from an estimated 1 matches for "lpclientdata".
Did you mean:
clientdata
2008 Jan 04
5
win32-api callback causes ruby to application error (crash).
...("L*"),
nTranslateMode.unpack("L*"), nRetransmitMode.unpack("L*"))
puts "SnmpGetLastError: #{SnmpGetLastError.call(nil)}"
SNMPAPI_CALLBACK = API::Callback.new(''LLLLPP'', ''L''){ |hSession, hWnd, wMsg,
wParam, lParam, lpClientData|
puts "Trap Recieved!"
}
session = SnmpCreateSession.call(nil, 0, SNMPAPI_CALLBACK, nil)
puts "SnmpCreateSession: #{session}"
puts "SnmpGetLastError: #{SnmpGetLastError.call(session)}"
SNMPAPI_ON = 1
result = SnmpRegister.call(session, nil, nil, nil, nil, SNMPAPI_O...