Serial.sys 和 SerCx 允许IOCTL_SERIAL_PURGE请求指定一个或多个 SERIAL_PURGE_XXX标志的任意组合。 但是,SerCx2 的限制性更高。 SerCx2 要求在清除接收缓冲区时清除所有读取请求。 因此,如果在IOCTL_SERIAL_PURGE请求中设置了SERIAL_PURGE_RXCLEAR标志,则 SerCx2 I/O 请求队列不得包含任何读取请求,或者必须设...
if the SERIAL_PURGE_TXCLEAR flag is set in anIOCTL_SERIAL_PURGErequest, then either the SerCx2 I/O request queue must not contain any write requests, or the SERIAL_PURGE_TXABORT flag must be set. Otherwise, theIOCTL_SERIAL_PURGErequest fails with a STATUS_INVALID_DEVICE_STATE status code...
IOCTL_SERIAL_GET_WAIT_MASK IOCTL_SERIAL_IMMEDIATE_CHAR IOCTL_SERIAL_PURGE IOCTL_SERIAL_SET_BREAK_OFF IOCTL_SERIAL_SET_BREAK_ON IOCTL_SERIAL_SET_DCB IOCTL_SERIAL_SET_DTR IOCTL_SERIAL_SET_QUEUE_SIZE IOCTL_SERIAL_SET_RTS IOCTL_SERIAL_SET_TIMEOUTS IOCTL_SERIAL_SET_WAIT_MASK IOCTL_SERIAL_SET_XOFF...
The IOCTL_SERIAL_PURGE request cancels the specified requests and deletes data from the specified buffers. The purge request can be used to cancel all read requests and write requests and to delete all data from the receive buffer and the transmit buffer....