When you already have opened files for Input/Output Files Transport, you may use this method to connect a virtual serial device to them.
The input file handle must have GENERIC_READ access right and output file handle must have GENERIC_WRITE access right.