INtime SDK Help
SetCommConfig (Serial Communications)
INtime SDK v6 > About INtime > Networking and I/O > Serial Communications (COMM) > SetCommConfig (Serial Communications)

Sets the current configuration of a communications device.

BOOLEAN SetCommConfig(
  COMMHANDLE hCommDev,    // handle to communications device
  LPCOMMCONFIG lpCC,      // configuration services
  DWORD dwSize            // size of structure
);

Parameters

hCommDev
[in] Handle to the open communications device.
lpCC
[in] Pointer to a COMMCONFIG structure.
dwSize
[in] Specifies the size, in bytes, of the structure pointed to by lpCC.

Return Values

Non-zero
Success.
0 (zero)
Failure. To determine the status, call GetLastRtError.

Status

E_BUSY
An I/O operation is already in progress.
E_DISCONNECTED
COMM channel is closed.
E_PARAM
Invalid parameter.

Requirements

Requirements

Versions Defined in Include Link to
INtime 3.1 intime/rt/include/comm.h comm.h comm.lib
See Also