ID: Q130564
If an SNMP manager application calls SnmpMgrGetTrap() to receive traps and there are traps available, it returns FALSE. If the application calls GetLastError(), the error code returned is 42 (SNMP_MGMTAPI_TRAP_ERRORS).
The SNMP Manager API SnmpMgrGetTrapListen() must be called before calling SnmpMgrGetTrap(). The event handle returned by SnmpMgrGetTrapListen() can then be ignored to poll for traps.
This behavior is by design.
For more information, please see the Microsoft Windows NT SNMP Programmer's Reference (PROGREF.RTF).
Additional query words:
Keywords : kbnetwork kbAPI kbNTOS350 kbSDKPlatform kbSNMP kbGrpNet
Issue type : kbprb
Last Reviewed: September 18, 1998