Microsoft KB Archive/157599

{|
 * width="100%"|

PRB: SNMP Applications Reference SNMPAPI.DLL on NT 3.51

 * }

Q157599

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), included with:
 * Microsoft Windows NT Server versions 3.51, 4.0
 * Microsoft Windows NT Workstation versions 3.51, 4.0

-

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 kbOSWinNT350 kbOSWinNT351 kbOSWinNT400 kbSDKPlatform kbSNMP kbGrpDSNet

Issue type : kbprb

Technology : kbAudDeveloper kbWin32sSearch kbWin32API