Platform SDK: Active Directory, ADSI, and Directory Services |
The ADSI object model consists of COM objects. Clients manipulate objects with interfaces. ADSI providers implement the objects and their interfaces.
ADSI objects are COM objects that represent any item within a directory service: computers, users, files, servers, printers, print queues, and more — elements that network administrators work with daily. ADSI defines different kinds of objects to represent different kinds of elements. Each object, as shown in the following figure, supports one or more COM interfaces that give you access to information about the object itself (called metadata) and information about what the object represents.
Because COM interfaces are logically connected sets of properties and methods, you can think of each interface as a handle to the object that allows you access to only one set of logical functions at a time. In ADSI, the fundamental interfaces are:
More complex ADSI objects may expose additional interfaces. For example, IADsCollection supports methods that manage collections of directory elements of the same data type. IADsGroup methods manage the special case collections of objects that support the IADsMembers interface. For providers that support it, the IDirectorySearch interface supports methods to query directory services. In addition, ADSI supplies interfaces that represent well-known logical and physical items. For example, ADSI objects that represent users support IADsUser, those that represent computers support IADsComputer, and so on. Expanded explanations of ADSI objects can be found in The IADs and IDirectoryObject Interfaces. Not all providers implement all interfaces or all methods and properties on all interfaces. For more information, see provider-specific documentation in the ADSI reference pages.