Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SetCommTimeouts

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function sets the timeout parameters for all read and write operations on a specified communications device.


BOOL SetCommTimeouts(
  HANDLE hFile,
  LPCOMMTIMEOUTS lpCommTimeouts
);

hFile

[in] Handle to the communications device returned by the CreateFile function.

lpCommTimeouts

[in] Long pointer to a COMMTIMEOUTS structure that contains the new time-out values.

Nonzero indicates success. Zero indicates failure. To obtain extended error information, call the GetLastError function.

Headerwinbase.h
LibrarySerdev.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2014 Microsoft