typedef struct _COMMTIMEOUTS { /* ctmo */
DWORD ReadIntervalTimeout;
DWORD ReadTotalTimeoutMultiplier;
DWORD ReadTotalTimeoutConstant;
DWORD WriteTotalTimeoutMultiplier;
DWORD WriteTotalTimeoutConstant;
} COMMTIMEOUTS,*LPCOMMTIMEOUTS;
ReadIntervalTimeout
Indicates the maximum time between the arrival of two characters on the communications line. This timer is started when the first character of the internal buffer is received and is restarted after each subsequent character. This is the interval timeout in milliseconds.
If the timer expires in a call to ReadFile, any buffered data is returned. A value of zero indicates no interval timeouts.
ReadTotalTimeoutMultiplier
Indicates the multiplier in milliseconds to be applied to the number of characters specified (by nNumberOfBytesToRead) in ReadFile. A zero indicates no multiplier.
ReadTotalTimeoutConstant
Indicates the constant in milliseconds to be included in the TotalTimeout calculation for ReadFile. A value of zero indicates no constant.
WriteTotalTimeoutMultipler
Indicates the multiplier in milliseconds to be applied to the number of characters specified (by nNumberOfBytesToWrite) in WriteFile. A zero indicates no multiplier.
WriteTotalTimeoutConstant
Indicates the constant in milliseconds to be included in the TotalTimeout calculation for WriteFile operations. A value of zero indicates no constant.