インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス
Serial Port I/O Function: Cancels any I/O in progress to the specified port.
USE IFPORT
result = SPORT_CANCEL_IO (port)
port |
(Input) Integer. The port number. |
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows* error value.
This call also kills the thread that keeps an outstanding read operation to the serial port. This call must be done before any of the port characteristics are modified.
USE IFPORT
INTEGER(4) iresult
iresult = SPORT_CANCEL_IO( 2 )
END