Testdll: Sample SNMP Extension Agent

Click to open or copy the files for the Testdll sample.

These files (Testdll.c, Testmib.c, and Testmib.h) provide an example of how to structure an Extension Agent DLL which works in conjunction with the SNMP Extendible Agent for Windows NT.

The Testdll sample demonstrates how to build an extension agent DLL that works with the extendible SNMP agent. This DLL implements the toaster MIB and shows how new MIBs can be added to the agent through a DLL.

Extensive comments have been included to describe its structure and operation. See also "Microsoft Windows NT SNMP Programmer's Reference".

Building SDK Samples

This sample uses the following keywords:

createevent; dllentry; getcurrenttime; memcpy; mib_control_func; mib_doneness_func; mib_leaf_func; mib_toasttype_func; oid_sizeof; resolvevarbind; setevent; snmpextensioninit; snmpextensionquery; snmpextensiontrap; snmputilmemalloc; snmputiloidappend; snmputiloidcmp; snmputiloidcpy; snmputiloidfree; switch