This function sets the time-out parameters for all read and write operations on a specified communications device.
At a Glance
Header file: | Winbase.h |
Windows CE versions: | 1.0 and later |
Syntax
BOOL SetCommTimeouts(HANDLE hFile,
LPCOMMTIMEOUTS lpCommTimeouts);
Parameters
hFile
[in] Handle to the communications device. The CreateFile function returns this handle.
lpCommTimeouts
[in] Long pointer to a COMMTIMEOUTS structure that contains the new time-out values.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
See Also