Adds a trustee to the trustee list in a directory
#include <nwdirect.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWAddTrusteeToDirectory (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
const nstr8 N_FAR *path,
nuint32 trusteeID,
nuint8 rightsMask);
uses calwin32
Function NWAddTrusteeToDirectory
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
const path : pnstr8;
trusteeID : nuint32;
rightsMask : nuint8
) : NWCCODE;
(IN) Specifies the NetWare server connection handle.
(IN) Specifies the directory handle associated with the desired directory path (0 if the path parameter contains the complete path, including the volume name).
(IN) Points to the absolute path (or a path relative to the directory handle) of the directory to which a trustee is being added.
(IN) Specifies the object ID for the object being added as a trustee.
(IN) Specifies the access rights mask the new trustee is being granted.
These are common return values; see Return Values (Return Values for C) for more information.
If the object is already a trustee for the specified directory, the current access mask of the trustee is replaced by the value contained in the trusteeID parameter. Otherwise, the object is added as a trustee to the directory and given a rights mask equal to the trusteeID parameter.
To modify a trustee rights list, the requesting workstation must have access control rights to the directory or to a parent of the directory.
The object must be static. If the object is dynamic, NWAddTrusteeToDirectory will return an error.
For Windows 32-bit platforms, dirHandle and path must be specified in the LONG namespace format.
For NLMs, dirHandle and path must be specified in the DOS namespace format, and path must be in upper case.
If you want to specify the name space that you are using for the parameters, use NWAddTrusteeToNSDirectory.