ClearCommBreak

This function restores character transmission for a specified communications device and places the transmission line in a nonbreak state.

At a Glance

Header file: Winbase.h
Windows CE versions: 1.0 and later

Syntax

BOOL ClearCommBreak(HANDLE hFile);

Parameters

hFile

[in] Handle to the communications device. The CreateFile function returns this handle.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

A communications device is placed in a break state by the SetCommBreak or EscapeCommFunction function. Character transmission is then suspended until the break state is cleared by calling ClearCommBreak.

See Also

ClearCommError, CreateFile, EscapeCommFunction, SetCommBreak