Displaying 1 result from an estimated 1 matches for "snmpapi_callback".
2008 Jan 04
5
win32-api callback causes ruby to application error (crash).
...%s
nRetransmitMode: %s\n",
nMajorVersion.unpack("L*"), MinorVersion.unpack("L*"), nLevel.unpack
("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 "SnmpGetLastErro...