Windows Mobile 6.5
A version of this page is also available for

This function transmits a specified character ahead of any pending data in the output buffer of the specified communications device.

BOOL TransmitCommChar(
  HANDLE hFile,
  char cChar


[in] Handle to the communications device returned by the CreateFile function.


[in] Specifies the character to be transmitted.

Nonzero indicates success. Zero indicates failure. To obtain extended error information, call the GetLastError function.

The TransmitCommChar function is useful for sending an interrupt character (such as a CTRL+C) to a host system.

If the device is not transmitting, TransmitCommChar cannot be called repeatedly.

After TransmitCommChar places a character in the output buffer, the character must be transmitted before the function can be called again.

If the previous character has not been sent, TransmitCommChar returns an error.

Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions