FEQuickWrite

Performs a quick write of data in a file on the local server

Local Servers:blocking
Remote Servers:N/A
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:File Engine

Syntax

   #include <nwfileng.h>  
    
   int FEQuickWrite  (  
      LONG   connection,   
      LONG   handle,   
      LONG   position,  
      LONG   bytesToWrite,   
      void  *buffer); 
   

Parameters

connection

(IN) Specifies the connection writing the data.

handle

(IN) Specifies the handle of the file to which the data is being written.

position

(IN) Specifies the location in the file at which to start writing.

bytesToWrite

(IN) Specifies the number of bytes to write.

buffer

(OUT) Points to the buffer into which the written data is stored.

Return Values

See Return Values for C for more information.

0

Success

NetWare errors

Remarks

FEQuickWrite is designated "quick" because it bypasses some of the higher I/O levels in the server libraries.

FEQuickWrite is useful only in conjunction with the File System Monitoring Hooks functions and other FEQuick functions. The lower level handle used with FEQuickWrite is returned in FEQuickOpen and is not valid for more conventional functions like read, write, or close.

NOTE:It is the responsibility of the caller to keep track of and maintain the position parameter.

See Also

FEQuickClose, FEQuickFileLength, FEQuickOpen, FEQuickRead