_VCOMM_SetCommState


include vcomm.inc

VxDcall _VCOMM_SetCommState, <hPort, <OFFSET32 dcbPort>, ActionMask>
or      eax, eax
jz      error_handler

Sets the hardware and software state of a communications resource. Uses the C calling convention. This is an asynchronous service.

hPort

Handle of a communications resource.

dcbPort

Address of a _DCB structure that contains device control information.

ActionMask

One or more values specifying the communications settings to change. To change a setting, specify the flag with the same name (plus the f prefix) as the corresponding _DCB field.

fBaudRate

fStopBits

fEvtChar2

fBitMask

fXonChar

fRlsTimeout

fXonLim

fXoffChar

fCtsTimeout

fXoffLim

fErrorChar

fDsrTimeout

fByteSize

fEofChar

fTxDelay

fParity

fEvtChar1


See also _DCB, _VCOMM_GetCommState, _VCOMM_GetLastError