Using the Article Source Code
I used Microsoft Visual C++ version 5 for this article. My project consists of just five files:
facade.cpp
netMgmtEngine.cpp
snmpmgr.c
netMgmtEngine.h
snmpdefs.h
To create a Visual C++ project, you need the above files, and remember to include the two libraries mgmtapi.lib and snmpapi.lib. Also, make sure that your platform is running the SNMP serviceyou can check this via the Control Panel or ask a system administrator. The Microsoft SNMP API is available only on the NT product line, so it should work on NT, Windows 2000, and XP machines. It was tested only on an NT machine. Perhaps some brave soul out there might try running it on XP and letting me know if it works?