EscapeCommFunction (Compact 2013)
This function directs a specified communication device to perform an extended function.
BOOL EscapeCommFunction( HANDLE hFile, DWORD dwFunc );
[in] Handle to the communication device.
The CreateFile function returns this handle.
[in] Specifies the extended function code to perform. The following table shows possible values.
Restores character transmission and places the transmission line in a nonbreak state.
The CLRBREAK extended function code is identical to the ClearCommBreak function.
Clears the data-terminal-ready (DTR) signal.
Sets port to normal serial mode. This value is specific to Windows Embedded Compact.
Clears the request-to-send (RTS) signal.
Suspends character transmission and places the transmission line in a break state until the ClearCommBreak function is called (or EscapeCommFunction is called with the CLRBREAK extended function code).
The SETBREAK extended function code is identical to the SetCommBreak function. This extended function does not flush data that has not been transmitted.
Sends the DTR signal.
Sends the RTS signal.
Causes transmission to act as if an XOFF character has been received.
Causes transmission to act as if an XON character has been received.
Nonzero indicates success. Zero indicates failure. To obtain extended error data, call the GetLastError function.
Serial Communications Functions