Création d’une PDU

Pour créer et initialiser un PDU, une application WinSNMP appelle la fonction SnmpCreatePdu . L’application doit appeler SnmpCreatePdu avant d’appeler la fonction SnmpSendMsg pour demander que l’implémentation Microsoft WINSNMP transmette un PDU. L’application doit également appeler SnmpCreatePdu avant d’appeler la fonction SnmpEncodeMsg pour demander l’encodage d’un message SNMP.

L’application doit appeler la fonction SnmpFreePdu pour libérer les ressources allouées par la fonction SnmpCreatePdu pour les nouvelles PDU.