SPORT_SPECIAL_FUNC

Run-Time Function: Executes the Win32 API communications function EscapeCommFunction on the specified port.

Module: USE DFLIB

Syntax

iresult = SPORT_SPECIAL_FUNC (port, function)

port
(Input) Integer. The port number.


function
(Input) INTEGER(4). The function to perform.

Results:

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

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_SPECIAL_FUNC( 2, ? )
END