ISerial::SetBufferSize
Description
Sets the size of the read and/or write buffer for serial communication. The mask parameter specifies whether the buffer is a read or write buffer:
IO_IN_BUF
IO_OUT_BUF
IO_IN_AND_OUT_BUFS
VB Prototype
SetBufferSize(
mask As BufferMask,
size As Long
)
C++ Prototype
HRESULT SetBufferSize(
BufferMask mask,
long size
);
Parameters
mask
Which serial buffer to resize, the in buffer, the out buffer, or both.
size
The desired new size of the serial buffer to resize.
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