win32file.GetCommState

PyDCB = GetCommState(handle)

Returns a device-control block (a DCB structure) with the current control settings for a specified communications device.

Parameters

handle : PyHANDLE

The handle to the communications device.