FS_TransactNamedPipe


FS_TransactNamedPipe(
 PIOREQ pir
 )

Data is written to and read from a named pipe in a single request through FS_TransactNamedPipe. This routine handles the Win32 function: TransactNamedPipe().

ir_rh

Supplies handle to local NP FS or network resource which contains the named pipe.

ir_fh

Supplies FSD file handle of an opened named pipe.

ir_sfn

Supplies system file number.

ir_data2

Supplies a pointer to the output data buffer to write to the pipe.

ir_size

Supplies the size in bytes of the write (output) buffer.

ir_data

Supplies a pointer to the input buffer that receives data from the pipe.

ir_length

Supplies the size in bytes of the read (input) buffer.

ir_error

Returns status of the operation ( 0 if no error, errorcode otherwise ).

ir_length

Returns number of bytes actually read from the pipe.


This operation may take place asynchronously, and it is recommended that the implementation of this function be async when ever possible. To do this, the function may return ERROR_IO_PENDING to allow the caller to continue processing while the operation completes. If ERROR_IO_PENDING is returned, the Complete_Async() service in the IFSMGR must be called when the operation completes. The address of the I/O request packet must be passed to identify the completed request.