NWDeleteTrusteeFromDirectory

Removes a trustee from a directory trustee list

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

Syntax

   #include <nwdirect.h> 
   or 
   #include <nwcalls.h> 
    
   N_EXTERN_LIBRARY(NWCCODE) NWDeleteTrusteeFromDirectory ( 
      NWCONN_HANDLE       conn,  
      NWDIR_HANDLE        dirHandle,  
      const nstr8 N_FAR  *path,  
      nuint32             objID);
   

Delphi Syntax

   uses calwin32 
    
   Function NWDeleteTrusteeFromDirectory 
     (conn : NWCONN_HANDLE; 
      dirHandle : NWDIR_HANDLE; 
      const path : pnstr8; 
      objID : nuint32 
   ) : NWCCODE;
   

Parameters

conn

(IN) Specifies the NetWare server connection handle.

dirHandle

(IN) Specifies the NetWare directory handle for the directory whose trustee list is being modified (zero if the path parameter points to the complete path, including the volume name).

path

(IN) Points to an absolute path (or a path relative to the dirHandle parameter) specifying the directory from which the trustee is being removed.

objID

(IN) Specifies the object ID for the trustee being deleted.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

Remarks

NWDeleteTrusteeFromDirectory revokes the rights for a trustee in a specific directory. The requesting workstation must have access control rights in the directory or in a parent directory to delete a trustee.

Deleting the explicit assignment of an trustee object in a directory is not the same as assigning no rights to the object in the directory. If no rights are assigned in a directory, the object inherits the same rights it has in the parent directory.

If you want to specify the name space that you are using for the parameters, use NWDeleteTrusteeFromNSDirectory.

NCP Calls

See Also

NWAddTrusteeToDirectory, NWAddTrusteeToNSDirectory, NWDeleteTrusteeFromNSDirectory, NWParseNetWarePath, NWScanDirectoryForTrustees2, NWScanNSDirectoryForTrustees