Returns information about an iterator object.
#include <nwnet.h>
or
#include <nwitr.h>
NWDSCCODE NWDSItrGetInfo (
nuint_ptr Iterator,
pnbool8 pIsScalable,
pnbool8 pIsPositionable);
(IN) Specifies the iterator object.
(OUT) Points to a value that specifies whether the iterator object was created on a server running NDS 8 (optional).
(OUT) Points to a value that specifies whether the iterator object is positionable (optional).
|
0x0000 0000 |
SUCCESSFUL |
|
zero value |
Nonzero values indicate errors. See |
An N_TRUE value for the pIsPositionable parameter indicates that the NWDSItrGetPosition and NWDSItrSetPosition functions work with this iterator. An iterator created on a eDirectory server not running NDS 8 always returns N_TRUE.
Iterator objects are positionable if they also use a search filter that uses only the same attributes as the index. For example, if an iterator object uses the _BaseClass, _RDN index, the search filter must use only the _BaseClass and the _RDN symbols for attributes for the iterator to be positionable. For example, the following search filters would make the iterator positionable:
There are other conditions that can cause an iterator to be nonpositionable. For more information, see Search Filters.
For sample code, see Section 4.5, Getting Iterator Information: Example.