Copies a file, or a portion of a file, to another file
#include <nwfinfo.h>
int FileServerFileCopy (
int sourceFileHandle,
int destinationFileHandle,
LONG sourceFileOffset,
LONG destinationFileOffset,
LONG numberOfBytesToCopy,
LONG *numberOfBytesCopied);
(IN) Specifies the file handle of the source file.
(IN) Specifies the file handle of the destination file.
(IN) Specifies the offset (in bytes) in the source file where copy should begin.
(IN) Specifies the offset (in bytes) in the destination file where the data should be copied.
(IN) Specifies the number of bytes to be copied.
(OUT) Points to the number of bytes actually copied.
An application must pass file handles in the sourceFileHandle and destinationFileHandle parameters. A file handle can be obtained by calling the open, sopen, creat, or fileno function.
To copy from the beginning of the source file to a new file, set the sourceFileOffset and destinationFileOffset parameters to 0x00.
To copy the entire source file, specify a value in the numberOfBytesToCopy parameter that matches or exceeds the file size.
The numberOfBytesCopied parameter returns the number of bytes copied between files as a result of calling this function.