WriteEA
Writes EAs
#include <\nlm\nit\nwextatt.h>
int WriteEA (
int handle,
const char *keyBuffer,
const char *dataBuffer,
LONG dataBufferSize,
LONG accessFlags);
Values for EAs are defined in nwfattr.h
This function returns the number of bytes written (equal to dataBufferSize) if successful. Otherwise, it returns:
For cross-platform functionality, call NWWriteEA.
The directory or file must first be opened for extended attribute I/O with OpenEA. WriteEA writes the EA specified by the key in keyBuffer. The EA’s data is assumed to be in dataBuffer. The whole EA must be written with one call to WriteEA.
The return value of the function is the number of bytes actually written.
An EA can be deleted by setting dataBufferSize to 0 and dataBuffer to NULL.
This function does not work on remote NetWare 3.x servers.