Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function sets the timeout parameters for all read and write operations on a specified communications device.
BOOLSetCommTimeouts(HANDLEhFile, LPCOMMTIMEOUTSlpCommTimeouts);
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 obtain extended error information, call the GetLastError function.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Serdev.lib.
See Also
CreateFile | COMMTIMEOUTS | GetCommTimeouts | ReadFile
Send Feedback on this topic to the authors