COMMTIMEOUTS


include vcomm.inc

COMMTIMEOUTS STRUC
ReadIntervalTimeout           DD  ?  ; time-out between chars; see below
ReadTotalTimeoutMultiplier    DD  ?  ; see below
ReadTotalTimeoutConstant      DD  ?  ; see below
WriteTotalTimeoutMultiplier   DD  ?  ; see below
WriteTotalTimeoutConstant     DD  ?  ; see below
COMMTIMEOUTS ENDS

Specifies the read and write time-outs for a communications device.

ReadIntervalTimeout

The maximum time, in milliseconds, allowed to elapse between the arrival of any two characters. Can be MAXDWORD, in which case a time-out occurs immediately for every read operation.

ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant

Multiplier and constant used to calculate the total time-out for a read operation. The total time-out is the number of bytes times the multiplier plus the constant. If both these values are zero, total time-outs are not used for read operations.

WriteTotalTimeoutMultiplier and WriteTotalTimeoutConstant

Multiplier and constant used to calculate the total time-out for a write operation. The total time-out is the number of bytes times the multiplier plus the constant. If both these values are zero, total time-outs are not used for write operations.