This topic has not yet been rated - Rate this topic

SetCommTimeouts (Windows Embedded Compact 7)

1/23/2013

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.

Header

winbase.h

Library

Serdev.lib

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.