Returns the extended attributes for a file
#include <nwfileio.h>
int GetExtendedFileAttributes (
char *filePath,
BYTE *extendedFileAttributes);
(IN) Points to a string containing the absolute path or path relative to the current working directory of the file for which to get extended file attributes (maximum 255 characters, including the NULL terminator).
(OUT) Points to the extended attributes.
GetExtendedFileAttributes returns the value of the first byte of the file attributes, known as the extended attributes byte. The following bits are defined:
NOTE:Do not confuse the file attributes byte with true extended attributes, which can be manipulated with the Extended Attribute functions.
If the transaction bit is set in the extendedFileAttributes parameter, NetWare TTS™ software tracks all writes to the file during a transaction. A transaction file cannot be deleted or renamed until the transaction bit is turned off with the SetExtendedFileAttributes function.
An application can specify a file in several ways. For example, suppose the full path of the file TARGET.DAT is:
SYS:ACCOUNT\DOMEST\TARGET.DAT
and the current working directory is SYS:ACCOUNT. The application can specify the partial path, DOMEST\TARGET.DAT, or the full path in the filePath parameter.
GetExtendedFileAttributes requires that the current connection have See File rights to the directory where the file resides.
The SetCurrentNameSpace function sets the name space which is used for parsing the path input to GetExtendedFileAttributes.
NOTE:For NetWare versions before 4.x, GetExtendedFileAttributes works with only the DOS name space for remote servers.