ISerial::Flush

Description

Manually flushes the read and write buffers associated with serial interfaces.

VB Prototype

Flush(
  mask As BufferMask, ' Optional Parameter
  discard As Boolean ' Optional Parameter
)

C++ Prototype

HRESULT Flush(
  BufferMask mask,
  VARIANT_BOOL discard
);

Parameters

mask

[Optional in Visual Basic] Which serial buffer to resize, the in buffer, the out buffer, or both.

discard

[Optional in Visual Basic] Specifies whether to due a discard of the data or perform I/O to the device.

Return Value

Refer to the table of return codes.

See Also

ComponentVersion, SpecVersion, HardwareInterfaceName, HardwareInterfaceNumber, HardwareInterfaceType, LockState, OptionString, ProgID, ResourceName, SessionType, SoftwareManufacturerID, SoftwareManufacturerName, Timeout, LastStatus, BytesAvailable, BaudRate, DataBits, ClearToSendState, DataCarrierDetectState, DataSetReadyState, DataTerminalReadyState, EndIn, EndOut, FlowControl, Parity, RingIndicatorState, RequestToSendState, StopBits, ReplacementCharacter, XONCharacter, XOFFCharacter, GetAttribute, SetAttribute, LockRsrc, UnlockRsrc, Init, Close, SetBufferSize, Flush, ISerial Overview