#include <nwdirect.h> or #include <nwcalls.h>NWCCODE N_API NWSetDirectoryInformation (NWCONN_HANDLE conn, NWDIR_HANDLE dirHandle, pnstr8 path, nuint32 dirDateTime, nuint32 ownerID, nuint8 rightsMask);
dirHandle, an index number from 1 to 255, points to a volume or a directory on the NetWare server. A NetWare server maintains a Directory Handle Table for each logged in workstation.
path can identify a full or partial directory path. A full directory path defines a volume or a directory on a given NetWare server in the format VOLUME:DIRECTORY/.../DIRECTORY. A partial directory path specifies at least a directory, and possibly one or more parent directories. The string accessed by path can contain wildcard characters.
dirHandle can be zero if path points to the complete path, including the volume name.
Applications frequently combine a directory handle and a directory path to specify a target directory. For example, if the specified directory handle points to SYS: and the specified directory path is PUBLIC/WORDP, the specified directory is SYS:PUBLIC/WORDP.
dirDateTime appears in standard DOS format. The first two bytes contain the year, month, and day fields, and the second two bytes contain the hour, minute, and second fields.
NWSetDirectoryInformation sets the date and time in ascending order (byte 1, byte 2, byte 3, byte 4). The date and time values are defined as follows:
rightsMask contains the subdirectory's maximum rights mask. The bits in the maximum rights mask are defined as follows:
To change a directory's information, the requesting workstation must have parental and modify rights to the directory's parent. Only SUPERVISOR can change the owner of a directory.
0x2222 | 22 | 25 | Set Directory Information |
0x2222 | 23 | 17 | Get File Server Information |
0x2222 | 87 | 07 | Modify File Or Subdirectory DOS Information |