Modifies the inherited rights mask of a directory or file
#include <nwdir.h>
int ModifyInheritedRightsMask (
char *path,
WORD revokeRightsMask,
WORD grantRightsMask);
(IN) Specifies the string containing the path specification for the directory or file to be modified (maximum 255 characters, including the NULL terminator).
(IN) Specifies the rights mask that specifies which rights in the directory’s inherited rights mask are to be modified.
(IN) Specifies the rights mask to receive the modified rights.
For remote server support, this function returns the maximum rights mask for NetWare 2.x.
The ModifyInheritedRightsMask function specifies the directory or file by passing a pathname. The path parameter can identify an absolute or relative directory or file path. An absolute path includes a volume.
Examples of absolute pathnames would be:
Applications can use a relative file path to specify a directory or file. The relative path, combined with the CWD, specifies an absolute file path. For example, if the CWD points to SYS:\ and the specified pathname is PUBLIC\WORDP or PUBLIC\WORDP\ABC.TXT, then in the former case, the resulting directory is SYS:PUBLIC\WORDP and in the latter case, SYS:PUBLIC\WORDP\ABC.TXT.
The function specifies which rights to modify by passing the revokeRightsMask .
Both the grantRightsMask and the revokeRightsMask are 1-WORD parameters with bits defined as follows:
The grantRightsMask and the revokeRightsMask parameters are both single-byte parameters for NetWare 2.x remote server support. There is no Supervisor bit for NetWare 2.x servers.
The rights in the directory’s inherited rights mask are modified according to the revokeRightsMask and are placed in the grantRightsMask . The inherited rights mask can be completely reset by setting the revokeRightsMask to 0xFF and then setting the grantRightsMask to the desired inherited rights mask.
The current connection must have access control rights to the directory or file whose inherited rights mask is being modified.
SetCurrentNameSpace sets the name space which is used for parsing the path input to this function.
NOTE:For NetWare versions before 4.x, this function only works with DOS name space for remote servers.