PRB: SNMP Applications Reference SNMPAPI.DLL on NT 3.51

Last reviewed: October 25, 1996
Article ID: Q157599
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) for Windows NT, version 4.0
  • Microsoft Windows NT Server, version 3.51
  • Microsoft Windows NT Workstation, version 3.51

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.


KBCategory: kbnetwork kbprg
KBSubcategory: NtwkSNMP
Additional reference words: 3.51 4.00 SNMP kbdsi



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 25, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.