| Platform SDK: Network Management |
In addition to SNMP manager operations, the WinSNMP API version 2.0 also supports SNMP agent operations.
To register a WinSNMP application as an SNMP agent, the application can call the SnmpListen function. This function informs the Microsoft WinSNMP implementation that an SNMP entity will be acting in the role of an SNMP agent. The application can also call SnmpListen to inform the implementation when it will no longer be acting as an agent.
If an application calls the SnmpListen function and passes the value SNMPAPI_ON in the lStatus parameter, the following actions occur:
For more information about SNMP management applications and agent applications, see About SNMP.