SetCommTimeouts (Windows CE 5.0)

Send Feedback

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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.