CopyEA
Copies EAs from one file or directory to another
- Local Servers:blocking
- Remote Servers:blocking
- Classification:3.11, 3.12, 3.2,
4.x, 5.x, 6.x
- Service:Server-Based Extended
Attributes
Syntax
#include <\nlm\nit\nwextatt.h>
int CopyEA (
const char *srcPath,
const char *destPath,
int destVolumeNumber,
LONG destDirectoryNumber,
LONG *EAccount,
LONG *EAdataSize,
LONG *EAkeySize);
Parameters
- srcPath
- (IN) Specifies the source directory/file.
Relative paths must be relative to the current working directory
(CWD).
- destPath
- (IN) Specifies the path of destination directory/file.
Relative paths must be relative to the next two parameters.
- destVolumeNumber
- (IN) Specifies the volume number of destination
(only used if the volume is not specified in the destPath)
- destDirectoryNumber
- (IN) Specifies the directory number of destination
(only used if the directory is not specified in the destPath).
- EAcount
- (OUT) Receives the number of EAs that were copied.
- EAdataSize
- (OUT) Receives the amount of EA data that was copied.
- EAkeySize
- (OUT) Receives the amount of EA key data that was
copied.
Return Values
If successful, this function returns zero. Otherwise, a nonzero
value is returned.
Remarks
This function does not have a cross-platform counterpart.
All of the source EAs are copied to the destination.
SetCurrentNameSpace sets the name space which is used for
parsing the path input to this function.
NOTE:This function does not work remotely on NetWare 3.x servers.