Platform SDK: Active Directory, ADSI, and Directory Services |
To reduce the memory requirement or for other purposes, the client can focus on a small number of objects returned from the server and ignore the rest of the result set that are of no interest. To accomplish this, the client specifies the search size limit and other appropriate search criteria. For example, if the directory stores the SAT scores of a school district, you can query the top ten students with the highest SAT scores by specifying a size limit of 10 (ten) and a descending sort order.
The default for size limit is no limit.
Use the ADS_SEARCHPREF_SIZE_LIMIT preference to specify a size limit.