SPORT_CANCEL_IO

Run-Time Function: Cancels any I/O in progress to the specified port.

Module: USE DFLIB

Syntax

iresult = SPORT_CANCEL_IO (port)

port
(Input) Integer. The port number.

Results:

The result is of type INTEGER(4). The result is zero if successful; otherwise, a Win32 error value.


Note: 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.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: Using the Serial I/O Port Routines, and Communications, and Communications Functions in the Win32 SDK

Example

USE DFLIB
INTEGER(4) iresult
iresult = SPORT_CANCEL_IO( 2 )
END