The PurgeComm function can discard all characters from the output or input buffer of a specified communications resource. It can also terminate pending read or write operations on the resource. <br><br>BOOL PurgeComm(<br><br> HANDLE hFile, // handle of communications resource <br> DWORD dwFlags // action to perform<br>