Returns information about directory or file trustees
#include <nwdir.h> int ScanTrustees ( char *pathName, LONG startingOffset, LONG vectorSize, LONG *trusteeVector, WORD *maskVector, LONG *actualVectorSize);
(IN) Specifies the string containing the path specification for the directory to be scanned (maximum 255 characters, included the NULL terminator).
(IN) Specifies the starting byte.
(IN) Specifies the Number of trusteeVector structures that trusteeVector can hold.
(OUT) Points to an array of structures containing the trustees of the scanned directory.
(OUT) Points to structure that specifies the trustee rights.
(OUT) Receives the actual number of trusteeVector structures being returned.
An application can use this function iteratively to scan a directory and return information about all the directory trustees.
SetCurrentNameSpace sets the name space which is used for parsing the path input to this function.
NOTE:For NetWare versions before 4.x, this function only works with DOS name space for remote servers.
It's an ID that can be converted into NWDSMapIDToName()
Example:
ScanTrustees(path, startingOffset, TRUSTEES_PER_SCAN, trusteeVector, maskVector, &actualVectorSize) for (i = 0; i < actualVectorSize; i++) { char name[MAX_DN_CHARS + 1]; LONG trustee = NWLongSwap(trusteeVector[i]); ccode = NWDSMapIDToName(context, conn, trustee, name);
ScanBinderyObjectTrusteePaths