Creates a copy of the iterator.
#include <nwnet.h>
or
#include <nwitr.h>
NWDSCCODE NWDSItrClone (
nuint_ptr Iterator,
pnuint_ptr pNewIterator);
(IN) Specifies the iterator object to copy.
(OUT) Points to the new iterator object.
|
0x0000 0000 |
SUCCESSFUL |
|
ERR_ITR_INVALID_HANDLE |
Indicates the Iterator parameter was not a valid iterator object. |
|
nonzero value |
Nonzero values indicate errors. See |
This function creates a second iterator with all the characteristics of the original iterator. When cleaning up, you must destroy both the original and the new iterator.
For sample code, see Section 4.1, Cloning an Iterator Object: Example.