NWGetObjectEffectiveRightsExt

Returns the effective rights of an object to the specified directory or file, 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 NWGetObjectEffectiveRightsExt ( 
      NWCONN_HANDLE       conn,  
      nuint32             objID,  
      NWDIR_HANDLE        dirHandle,  
      const nstr8 N_FAR  *path,
      nuint8              buNameSpace,  
      pnuint16            rightsMask);
   

Parameters

conn
(IN) Specifies the NetWare server connection handle.
objID
(IN) Specifies the ID of the object of the user.
dirHandle
(IN) Specifies the NetWare directory handle associated with the directory path for which the effective rights are desired.
path
(IN) Points to the absolute path (or a path relative to the dirhandle parameter) of the directory or file whose effective rights mask is being reported. The characters in the string must be UTF-8.
buNameSpace
(IN) Specifies the name space of the specified path. See Name Space Flag Values in Multiple and Inter-File Services.
rightsMask
(OUT) Points to the rights mask. See Inherited Rights Mask Values. If the rightsMask parameter is zero, the client has no rights in the target directory.

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

0x8998

VOLUME_DOES_NOT_EXIST

0x899B

BAD_DIRECTORY_HANDLE

0x899C

INVALID_PATH

0x89A8

ERR_ACCESS_DENIED

0x89FB

INVALID_PARAMETERS

0x89FC

NO_SUCH_OBJECT

Remarks

To determine the effective rights of the requesting client, NWGetObjectEffectiveRightsExt performs a logical AND between the maximum rights mask of the directory and the current trustee rights of the client.

The current trustee rights of the client are obtained by performing a logical OR between a trustee access mask of the client and the trustee access mask of any object to which the process is security equivalent. The current trustee rights of the client can be explicitly listed in the directory or inherited from the parent directory. The maximum rights masks of parent directories do not affect inherited trustee rights.

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

NCP Calls

See Also

NWGetEffectiveRightsExt (Multiple and Inter-File Management)