[This is preliminary documentation and subject to change.]
To create and initialize a PDU a WinSNMP manager application calls the SnmpCreatePdu function. The application must call SnmpCreatePdu before it calls the SnmpSendMsg function to request that the Microsoft WinSNMP implementation transmit a PDU. The application must also call SnmpCreatePdu before it calls the SnmpEncodeMsg function to request encoding of an SNMP message.
The application must call the SnmpFreePdu function to release the resources that the SnmpCreatePdu function allocates for new PDUs.