Serial.sys 和 SerCx 允许IOCTL_SERIAL_PURGE请求指定一个或多个 SERIAL_PURGE_XXX标志的任意组合。 但是,SerCx2 的限制性更高。 SerCx2 要求在清除接收缓冲区时清除所有读取请求。 因此,如果在IOCTL_SERIAL_PURGE请求中设置了SERIAL_PURGE_RXCLEAR标志,则 SerCx2 I/O 请求队列不得包含任何读取请求,或者必须设...
The DeviceIoControl function executes this IOCTL.ParametersdwOpenData [in] Handle returned from a call to the COM_Open function. dwCode [in] Set to this IOCTL: IOCTL_SERIAL_PURGE. pBufIn [in] Pointer to a DWORD variable containing the action. The following table shows the flags that this ...
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...
The DeviceIoControl function executes this IOCTL.ParametersdwOpenData [in] Handle returned from a call to the COM_Open function.dwCode [in] Set to this IOCTL: IOCTL_SERIAL_PURGE.pBufIn [in] Pointer to a DWORD variable containing the action. The following table shows the flags that this ...
IOCTL_SERIAL_PURGE 项目 2006/06/30 This IOCTL discards characters from the output or input buffer of a specified communications resource. It can also terminate pending read or write operations on the resource.ParametersdwOpenData [in] Specifies the handle returned from a call to the COM_Open ...
IOCTL_SERIAL_GET_WAIT_MASK (Windows CE .NET Driver Development) IOCTL_SERIAL_IMMEDIATE_CHAR (Windows CE .NET Driver Development) IOCTL_SERIAL_PURGE (Windows CE .NET Driver Development) IOCTL_SERIAL_SET_BREAK_OFF (Windows CE .NET Driver Development) IOCTL_SERIAL_SET_BREAK_ON (Windows CE .NET...
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...