win32file.SetCommState

SetCommState(handle, dcb)

Configures a communications device according to the specifications in a device-control block. The function reinitializes all hardware and control settings, but it does not empty output or input queues.

Parameters

handle : PyHANDLE

The handle to the communications device.

dcb : PyDCB

The control settings.