[in] I/O timeout value in milliseconds.
FlushRead
Flushes the contents of the I/O read buffer.
Syntax
Section titled “Syntax”virtual HRESULT FlushRead(long lTimeout = CUR_TIMEOUT) sealed override;Parameters
Section titled “Parameters”lTimeout
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Remarks
Section titled “Remarks”Any existing data in the I/O read buffer is discarded. In addition, if the read buffer is non-empty and no EOI was read during the last read operation, then data is read from the device until an EOI is encountered.
Example
Section titled “Example”The following example demonstrates use of the FlushRead function.
HRESULT Acme4321::Configure(){ HRESULT hr = S_OK;
// Discard contents of the I/O read buffer and read from the device until EOI hr = io.FlushRead();
return hr;}