Platform SDK: Network Management

About Traps and Notifications

One type of message an SNMP agent application can send to a WinSNMP application is an asynchronous message that informs the application of a significant event. An example of a significant event is when a network link shuts down or when an authentication failure occurs.

These types of messages are called traps under SNMPv1 and notifications under SNMPv2C. The Microsoft WinSNMP implementation always translates SNMPv1 traps to the SNMPv2C format, as defined by RFC 1908.

When you call the SnmpCreatePdu function to create a trap PDU, you can create only an SNMPv2C trap PDU. The only type of trap PDU you can update with a call to the SnmpSetPduData function is an SNMPv2C trap PDU.

For more information, see the following topics: