Performs a quick read of data in a file on the local server
#include <nwfileng.h>
int FEQuickRead (
LONG connection,
LONG handle,
LONG position,
LONG bytesToRead,
LONG *bytesRead,
void *buffer);
(IN) Specifies the connection reading the data.
(IN) Specifies the handle of the file from which the data is being read.
(IN) Specifies the location in the file at which to start reading.
(IN) Specifies the number of bytes to read.
(OUT) Points to number of bytes actually read.
(OUT) Points to the buffer into which the read data is stored.
FEQuickRead is designated "quick" because it bypasses some of the higher I/O levels in the server libraries.
FEQuickRead is useful only in conjunction with the File System Monitoring Hooks functions and other FEQuick functions. The lower level handle used with FEQuickRead is returned in FEQuickOpen and is not valid for more conventional functions like read, write, or close.
When FEQuickRead is successful (returns 0), the number of bytes actually read is located in the bytesRead parameter.
NOTE:It is the responsibility of the caller to keep track of and maintain the position parameter.