GetCommTimeouts (Windows CE 5.0)

Send Feedback

This function retrieves the time-out parameters for all read and write operations on a specified communication device.

BOOLGetCommTimeouts(HANDLEhFile, LPCOMMTIMEOUTSlpCommTimeouts);

Parameters

  • hFile
    [in] Handle to the communication device.

    The CreateFile function returns this handle.

  • lpCommTimeouts
    [out] Long pointer to a COMMTIMEOUTS structure in which the time-out data is returned.

Return Values

Nonzero indicates success.

Zero indicates failure.

To obtain extended error data, call the GetLastError function.

Remarks

For more information about timeout values for communication devices, see the SetCommTimeouts function.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Serdev.lib.

See Also

CreateFile | COMMTIMEOUTS | SetCommTimeouts

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.