Sets the iterator’s current position to the source iterator’s position.
#include <nwnet.h>
or
#include <nwitr.h>
NWDSCCODE NWDSItrSetPositionFromIterator (
nuint_ptr Iterator,
nuint_ptr srcIterator,
nuint32 timeout);
(IN) Specifies the iterator object that will have its position changed.
(IN) Specifies the source iterator.
(IN) Specifies the time (in milliseconds) allowed before returning an error.
|
0x0000 0000 |
SUCCESSFUL |
|
ERR_ITR_INVALID_HANDLE |
Indicates the Iterator parameter was not a valid iterator object or that one iterator was from an NDS 8 server and the other one was not. |
|
nonzero value |
Nonzero values indicate errors. See |
For NDS 8, the two iterators do not need to be identical. The system tries to find the closest match in the srcIterator and positions the destination one accordingly.
For NDS server not running NDS 8, the Iterator must be a clone of the srcIterator.
Both iterators must either be from NDS 8 servers or from servers not running NDS 8. If one references an NDS 8 server and the other a server that is not running NDS 8, an error (ERR_ITR_INVALID_HANDLE) is returned.