[This is preliminary documentation and subject to change.]
A WinSNMP manager application initiates a transmission request by sending an SNMP message. SNMP messages include an SNMP protocol data unit. For additional information, see Working with Protocol Data Units.
A WinSNMP manager application must call the SnmpSendMsg function to request that the Microsoft WinSNMP implementation transmit the PDU, with the other required message elements defined by the relevant RFC. In addition to the destination entity, the application must specify the source entity and a context for the request. The SnmpSendMsg function executes asynchronously.
The WinSNMP manager application must call the SnmpRecvMsg function to retrieve the response to an SnmpSendMsg request.
The implementation verifies the validity of the PDU and the other message elements when an application calls SnmpSendMsg.