PRB: SNMP Applications Reference SNMPAPI.DLL on NT 3.51 (157599)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • Microsoft Windows NT Server 3.51
    • Microsoft Windows NT Server 4.0
    • Microsoft Windows NT Workstation 3.51
    • Microsoft Windows NT Workstation 4.0

This article was previously published under Q157599

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.

Modification Type:MajorLast Reviewed:4/9/2004
Keywords:kbAPI kbnetwork kbprb kbSNMP KB157599