PRB: Certain LDAP API Functions Raise Errors When Called (283199)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows NT Workstation 4.0 SP4
  • Microsoft Windows NT Workstation 4.0 SP5
  • Microsoft Windows NT Workstation 4.0 SP6
  • Microsoft Windows NT Workstation 4.0 SP6a
  • Microsoft Windows NT Server 4.0 SP4
  • Microsoft Windows NT Server 4.0 SP5
  • Microsoft Windows NT Server 4.0 SP6
  • Microsoft Windows NT Server 4.0 SP6a

This article was previously published under Q283199

SYMPTOMS

When you are using the Microsoft Lightweight Directory Access Protocol (LDAP) API from a C application that was built with Wldap32.lib, certain function calls may return errors even when they are called correctly. General protection faults or access violations may also occur when you call some functions, even though memory is properly allocated.

CAUSE

The ordinal numbers for some of the functions in the Wldap32.lib file that were included in Visual Studio 6 and its service packs do not match the ordinals exported by the Wldap32.dll file that is found in the operating systems that are listed at the beginning of this article.

RESOLUTION

A fixed version of Wldap32.lib is available from the Microsoft Platform Software Development Kit (SDK). You can download the latest version of the Platform SDK at no charge from the following Microsoft Web site:

MORE INFORMATION

When you are using Microsoft Visual C++, the easiest way to make sure that the latest libraries and header files from the Platform SDK are being used is to adjust the order of the directories in which they are found.

To instruct Visual Studio to use certain directories in a desired order, follow this procedure: From the Tools menu, click Options. Go to the Directories tab. Choose the Show directories for: drop-down box and use the UP ARROW and DOWN ARROW keys to make sure that the files in the Platform SDK directories are used before the libraries that were included with Visual Studio.

Modification Type:MajorLast Reviewed:2/12/2004
Keywords:kbDSWADSI2003Swept kbprb KB283199 kbAudDeveloper