Three types of ADSI interfaces can be used to perform directory searches. The application environment and other requirements may indicate which interface is used.
- IDirectorySearch. IDirectorySearch is a basic COM interface only available to C/C++ programmers. For more information, see Searching With the IDirectorySearch Interface.
- ADO. The ActiveX Data Object (ADO) interfaces are Automation interfaces that use OLE DB. Use ADO for queries within applications that rely on Automation. These include Visual Basic applications, Active Server Pages, and so on. For more information, see Searching with ActiveX Data Objects.
- OLE DB. OLE DB is a set of C/C++ interfaces used to query databases. By supporting these interfaces, ADSI providers can implement advanced OLE DB features, such as distributed queries with other OLE DB providers. For more information, see Searching with OLE DB.