PRB: Order of Columns In IDirectorySearch Results Not Guaranteed

ID: Q201029


The information in this article applies to:


SYMPTOMS

The rows of results returned by IDirectorySearch::ExecuteSearch may not match the order of the properties specified by the caller.


STATUS

This behavior is by design.


MORE INFORMATION

When using the IDirectorySearch interface to search a directory service, the ExecuteSearch method is used to submit the query. The caller provides an array of properties for which they want information returned. The order of the properties in the attribute array does not guarantee the order of the columns in the results of the search.

When examining the results of the query, the attribute name and attribute type of the columns should be used by programs to determine the contents of the row. The name and type can be found in the ADS_SEARCH_COLUMN data structure that is returned by the IDirectorySearch::GetColumn call.

Additional query words: kbDSupport


Keywords          : kbADSI kbGrpPlatform 
Version           : winnt:2.0
Platform          : winnt 
Issue type        : kbprb 

Last Reviewed: April 15, 1999