Platform SDK: Active Directory, ADSI, and Directory Services

Processing a Result Set

A result set is returned as a series of rows. Each row may or may not contain a given attribute. If you are using the OLE DB provider, the result set appears as would a normal SQL result set. If you are using ADO for the query, the ADODB.Recordset object is used for traversing the result set. IDirectorySearch (available only from languages which support vtable bindings) contains members for moving the row cursor and checking property values in a given row. Alternatively, you can use IDirectoryObject to easily get and set properties.