Creating a Variable Binding List
The SnmpCreateVbl function creates a new variable binding list. If the WinSNMP application specifies a variable name and a value, the function creates the list and adds the name and value as the first entry in the list. If the application specifies NULL for the variable name, the function creates an empty list.
To copy a variable binding list, call the SnmpDuplicateVbl function. The function creates a new variable binding list and initializes the new list with a copy of the data in the source variable binding list.
The SnmpCreateVbl function and the SnmpDuplicateVbl function allocate any necessary memory for the new variable binding list. The WinSNMP application must release the resources associated with these lists. It is recommended that the application do this by matching each call to SnmpCreateVbl and SnmpDuplicateVbl with a corresponding call to the SnmpFreeVbl function when it is appropriate to free the allocated memory.