Updates file information
#include <nwfile.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWSetFileInformation2 (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
const nstr8 N_FAR *fileName,
nuint8 searchAttrs,
NW_FILE_INFO2 N_FAR *info);
uses calwin32
Function NWSetFileInformation2
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
fileName : pnstr8;
searchAttrs : nuint8;
Var info : NW_FILE_INFO2
) : NWCCODE;
(IN) Specifies the NetWare server connection handle containing the file to be modified.
(IN) Specifies the NetWare directory handle (0 if the fileName parameter points to the complete path, including the volume name).
(IN) Points to the name of the file to modify. The name, or complete path, must be in the long name space to work on Windows workstations.
(IN) Specifies the search attributes.
(IN) Points to NW_FILE_INFO2.
These are common return values; see Return Values (Return Values for C) for more information.
NWSetFileInformation2 handles long names (up to 256 bytes).
NWSetFileInformation2 sets the file information defined by the NW_FILE_INFO2 structure.
The fileName parameter can specify either a complete path name 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 fileName parameter could be either of the following:
SYS:ACCOUNT/DOMEST/TARGET.DAT or DOMEST/TARGET.DAT
The searchAttrs parameter is used to include system and/or hidden files. If only the system bit is set in the searchAttrs parameter, all files are affected except hidden files. If only the hidden bit is set, all files are affected except system files. When neither bit is set (0x00), only files that are not designated hidden or system are affected.
NOTE:A file is designated hidden or system if its corresponding file attribute is set.
The searchAttrs parameter can have the following values: