EscapeCommFunction

Syntax

int EscapeCommFunction(nCid,nFunc)

This function directs the communication device specified by the nCid parameter to carry out the extended function specified by the nFunc parameter.

Parameter Type/Description  

nCid int Specifies the communication device to carry out the extended function. The OpenComm function returns this value.  
nFunc int Specifies the function code of the extended function. It can be any one of the following values:  
  Value Description
  CLRDTR Clears the data-terminal-ready (DTR) signal.
  CLRRTS Clears the request-to-send (RTS) signal.
  RESETDEV Resets the device if possible.
  SETDTR Sends the data-terminal-ready (DTR) signal.
  SETRTS Sends the request-to-send (RTS) signal.
  SETXOFF Causes transmission to act as if an XOFF character has been received.
  SETXON Causes transmission to act as if an XON character has been received.

Return Value

The return value specifies the result of the function. It is zero if it is successful. It is negative if the nFunc parameter does not specify a valid function code.