GetCommProperties (Windows CE 5.0)

Send Feedback

This function fills a buffer with communication properties data for a specified communication device.

BOOLGetCommProperties(HANDLEhFile, LPCOMMPROPlpCommProp);

Parameters

  • hFile
    [in] Handle to the communication device.

    The CreateFile function returns this handle.

  • lpCommProp
    [out] Long pointer to a COMMPROP structure in which the communication properties data is returned.

    This data can be used in subsequent calls to the SetCommState, SetCommTimeouts, or SetupComm function to configure the communication device.

Return Values

Nonzero indicates success.

Zero indicates failure.

To obtain extended error data, call the GetLastError function.

Remarks

GetCommProperties returns data from a device driver about the configuration settings supported by the driver.

Requirements

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

See Also

COMMPROP | CreateFile | SetCommState | SetCommTimeouts | SetupComm

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.