PRB: SNMP Applications Reference SNMPAPI.DLL on NT 3.51

ID: Q157599

The information in this article applies to:

SYMPTOMS

SNMP applications developed using Win32 SDK version 4.0 look for a non- existent SNMPAPI.DLL on NT 3.51.

CAUSE

The SNMP Utility functions such as SnmpUtilxxx( ) were packaged as a static library called SNMP.LIB under NT 3.51. This prevented developers writing SNMP manager applications in languages such as Visual Basic from making use of these APIs.

Microsoft addresses this potential limitation in the release of NT 4.0 by packaging the SNMP utility functions as a dynamic link library called SNMPAPI.DLL that ships with NT 4.0 Workstation and NT 4.0 Server. The DLL can be found under %SystemRoot%\system32. An SNMP application developed using the Win32 SDK version 4.0 looks for functions exported from this DLL that does not exist on NT 3.51.

RESOLUTION

On NT 3.51 systems, the appropriate version of SNMPAPI.DLL should be copied into the %SystemRoot%\system32 directory. This DLL can be found under the \mstools\snmpapi directory of the Win32 SDK version 4.0. This is not required for NT 4.0 systems because a different version ships with NT 4.0.

Developers using implicit linking for the SNMP utility functions should link with the SNMPAPI.LIB import library that is included with the Win32 SDK version 4.0.

Developers using explicit linking for the SNMP utility functions should load the SNMPAPI.DLL library and use the functions exported therein.

STATUS

This behavior is by design.

Additional query words:

Keywords          : kbnetwork kbAPI kbNTOS350 kbNTOS351 kbNTOS400 kbSDKPlatform kbSNMP kbGrpNet 
Issue type        : kbprb

Last Reviewed: July 31, 1998