115
EscapeCommFunction
LONG EscapeCommFunction(idComDev, nFunction)
int idComDev; /* Identifier of the communication device */
int nFunction; /* Code of the expanded function */
The EscapeCommFunction is used to specify the communication device used to execute the
expanded function.
< Parameter >
idComDev Specifies the communication device used to execute the expanded function.
The OpenComm function returns this value.
nFunction Specifies the function code of the expanded function. It will be one of the following:
CLRDTR Clears the DTR (data terminal ready) signal. This will function if
a 9-Wire connection is established.
CLRRTS Clears the RTS (request to send) signal. This will function if a
9-Wire connection is established.
GETMAXCOM Returns the maximum value of the COM port identifier supported
by the system. This value ranges between 0x00 and 0x7F. 0x00
corresponds to COM1, 0x01 corresponds to COM2, and 0x02
corresponds to COM3, and so on.
GETMAXLPT Not supported.
RESETDEV Not supported.
SETDTR Sends a DTR (data terminal ready) signal. This will function if a
9-Wire connection is established.
SETRTS Sends an RTS (request to send) signal. This will function if a
9-Wire connection is established.
SETXOFF Not supported.
SETXON Not supported.
< Return value >
Returns zero if the function is terminated normally. Otherwise it returns a value less than zero.
Note on IrDA:
Some nFunction parameters are not supported at present. Those which are currently supported will
function if a 9-Wire connection is established. They will not function for a 3-Wire or 3-Wire-Raw
connection. If these parameters are specified, the EscapeCommFunction function will be terminated
normally.