setcom

  WORD setcom(lpdcb);    
  DCB FAR *lpdcb;    

The setcom function sets a communication device to the state specified by
the DCB structure. USER calls this function whenever an application calls the
SetCommState
function (USER.201).

Parameters

lpdcb

Points to a DCB structure.

Return Value

The return value is zero if the function is successful. Otherwise, it is a negative (IE_*) value if an error occurs.

Comments

The export ordinal for this function is 2.

This function reinitializes all hardware and controls as defined by the lpdcb parameter, but does not clear transmit or receive queues.