Performs an extended method for a communication channel (direct serial connection or modem connection).
EscapeCommFunc(short ChannelID, long Func, VARIANT_BOOL *Result); |
Parameters
ChannelID
A channel ID (0-7) used to identify a communication channel.
Func
Extended method to be performed, this parameter can be one of the following values:
dwFunc Value |
Comment |
3 |
Sets RTS (request-to-send) line |
4 |
Clears RTS (request-to-send) line |
5 |
Sets DTR (data-terminal-ready) line |
6 |
Clears DTR (data-terminal-ready) line |
7 |
Resets device if possible |
8 |
Sets the device break line |
9 |
Clears the device break line |
Result
If the method succeeds, the value of variable pointed to by Result is VARIANT_TRUE, otherwise the value is VARIANT_FALSE.