GetCommState (Windows CE 5.0)

Send Feedback

This function fills in a device-control block (a DCB structure) with the current control settings for a specified communication device.

BOOL GetCommState(HANDLEhFile, LPDCBlpDCB);

Parameters

  • hFile
    [in] Handle to the communication device.

    The CreateFile function returns this handle.

  • lpDCB
    [out] Long pointer to the DCB structure in which the control settings data is returned.

Return Values

Nonzero indicates success.

Zero indicates failure.

To obtain extended error data, call the GetLastError function.

Requirements

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

See Also

CreateFile | DCB | SetCommState

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.