NWScanObjectTrusteePaths

Returns the directory paths to which an object has trustee rights

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Bindery

Syntax

C

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

Pascal

   uses calwin32 
    
   Function NWScanObjectTrusteePaths 
     (conn : NWCONN_HANDLE; 
      objID : nuint32; 
      volNum : nuint16; 
      iterHandle : pnuint16; 
      accessRights : pnuint8; 
      dirPath : pnstr8 
   ) : NWCCODE; stdcall;
   

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.
dirPath
(OUT) Points to the directory path name in the DOS name space. This buffer should be at least 270 bytes.

Return Values

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

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

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

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

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.

NWScanObjectTrusteePaths was originally written for the 2.x platform and does not handle 3.x, 4.x, 5.x, and 6.x rights perfectly. For example, NWScanObjectTrusteePaths does not return the 2.x "Supervisory" right. To retrieve the correct trustee rights on the 3.x, 4.x, 5.x, and 6.x platforms, call NWScanObjectTrusteePaths to obtain a path. Then call the NWIntScanForTrustees function to return the rights of the object to the path.

See Section 4.2, Maximum Rights Mask Values.

NCP Calls

See Also

NWIntScanForTrustees (Multiple and Inter-File Management)