Sets the extended attributes of a file
#include <nwfile.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWSetExtendedFileAttributes2 (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
const nstr8 N_FAR *path,
nuint8 extAttrs);
uses calwin32
Function NWSetExtendedFileAttributes2
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
path : pnstr8;
extAttrs : nuint8
) : NWCCODE;
(IN) Specifies the connection handle.
(IN) Specifies the directory handle of the root directory of the new directory..
(IN) Points to the string containing the name and path of the new directory.
(IN) Specifies the extended attributes for the file.
These are common return values; see Return Values (Return Values for C) for more information.
NWSetExtendedFileAttributes2 requires Search rights to the directory where the file resides.
The path parameter can specify either the complete path name for a file or a path relative to the current working directory.
For example, if the complete path name is SYS:ACCOUNT/DOMEST/TARGET.DAT and the directory handle mapping is SYS:ACCOUNT, the path parameter could point to either of the following:
SYS:/ACCOUNT/DOMEST/TARGET.DAT or DOMEST/TARGET.DAT
The bit map for the extAttrs parameter follows:
|
0-2 |
Search mode bits |
|
4 |
Transaction bit |
|
6 |
Read audit bit (not yet implemented) |
|
7 |
Write audit bit (not yet implemented) |
Setting the transaction bit prompts TTS™ to track all Writes to the file during a transaction. A transaction file cannot be deleted or renamed until the transaction bit is turned off by calling NWSetExtendedFileAttributes2.
Setting the index bit prompts NetWare to index the File Allocation Tables for the file, thereby reducing the time required to access files. Files larger than 2 MB should have this bit set.
NOTE:To modify further extended file attributes, use NWSetNSEntryDOSInfo.