NWScanObjectTrusteePathsExt

Returns the directory paths to which an object has trustee rights, using UTF-8 strings.

Local Servers:blocking
Remote Servers:blocking
NetWare Server:6.5 SP2 or later
Platform:NLM, Windows 2000, Windows XP
Client:4.90 SP2 or later
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Bindery

Syntax

   #include <nwbindry.h> 
   or 
   #include <nwcalls.h> 
    
   NWCCODE N_API  NWScanObjectTrusteePathsExt  ( 
      NWCONN_HANDLE   conn,  
      nuint32         objID,  
      nuint16         volNum,  
      pnuint16        iterHandle,  
      pnuint8         accessRights,  
      pnstr8          dirPath1506);
   

Parameters

conn
(IN) Specifies the NetWare server connection handle.
objID
(IN) Specifies the object ID of the user or group for which the trustee information is to be found.
volNum
(IN) Specifies the volume number of the volume being searched.
iterHandle
(IN/OUT) Points to the sequence number (set to -1 initially).
accessRights
(OUT) Points to the access mask of the trustee.
dirPath1506
(OUT) Points to the directory path name in the DOS name space. This buffer should be at least 1506 bytes.

Return Values

These are common return values. See Return Values (Return Values for C).

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x88F0

UTF8_CONVERSION_FAILED

0x890A

NLM_INVALID_CONNECTION

0x8996

SERVER_OUT_OF_MEMORY

0x8998

VOLUME_DOES_NOT_EXIST

0x899C

NO_MORE_TRUSTEES

0x89F0

WILD_CARD_NOT_ALLOWED

0x89F2

NO_OBJECT_READ_PRIVILEGE

0x89FC

NO_SUCH_OBJECT

Remarks

NWScanObjectTrusteePathsExt iteratively determines all of the directory paths of the object trustee and corresponding access masks.

NOTE:For information about the requirments for using the NWScanObjectTrusteePathsExt function, see UTF-8 Path and Filenames in Multiple and Inter-File Services.

Upon return, the iterHandle parameter is automatically incremented to point to the next directory path. When all valid directory paths have been returned, SUCCESS is returned and the first character of the dirPath parameter is set to zero.

To use the DOS path returned by the dirPath parameter in subsequent calls, you might have to convert the DOS path to the default name space compatible path.

Only SUPERVISOR, the object, or a bindery object with SUPERVISOR security equivalence can scan the directory paths of an object trustee.

NWScanObjectTrusteePathsExt does not handle 6.x rights perfectly. To retrieve the correct trustee rights on the 6.x platforms, call NWScanObjectTrusteePathsExt to obtain a path. Then call the NWIntScanForTrusteesExt function in Multiple and Inter-File Services to return the rights of the object to the path.

NCP Calls

See Also

NWIntScanForTrusteesExt (Multiple and Inter-File Management)