Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GetCommProperties

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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


BOOL GetCommProperties(
  HANDLE hFile,
  LPCOMMPROP lpCommProp
);

hFile

[in] Handle to the communication device, returned by the CreateFile function.

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.

Nonzero indicates success. Zero indicates failure. To obtain extended error data, call the GetLastError function.

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

Headerwinbase.h
LibrarySerdev.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft