Platform SDK: Active Directory, ADSI, and Directory Services

Using ADSI Exchange

This section describes how to do use ADSI to perform various tasks in Exchange. The following topics are covered:

If you plan to modify and compile Visual Basic® examples found in this section, you must first include a reference to the "Active DS Type Library" and ActiveX® Data Objects in your project.

To add a reference to the Active DS Type Library

  1. In the Microsoft® Visual Basic application, from the Projects menu, click References.
  2. Select the checkbox next to Active DS Type Library.

For Visual Basic samples that use ADO, you must also include a reference to "Microsoft ActiveX Data Objects."

To add a reference to the ActiveX Data Objects

  1. In the Microsoft Visual Basic application, from the Projects menu, click References.
  2. Select the checkbox next to Microsoft ActiveX Data Objects.