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