KsSetCommTimeouts
The availability of this function depends on what the device supports.
Sets the time-out parameters for all read and write operations on a specified communications device.
Syntax
BOOL KsSetCommTimeouts(
HANDLE hFile,
LPCOMMTIMEOUTS lpCommTimeouts
);
Parameters
hFile: a handle to the communications device. The KsCreateComm function returns this handle.
lpCommTimeouts: a pointer to a COMMTIMEOUTS structure that contains the new time-out values.
Return value
If the function succeeds, it returns TRUE, otherwise FALSE. To get extended error information, call GetLastError.
Example
N/A
Requirements
RT | Win32 | |
---|---|---|
Minimum supported version | 4.0 | 4.0 |
Header | kscom.h | kscom.h |
Library | KsApi_Rtss.lib | ksapi.h |
See also