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).
lpdcb
Points to a DCB structure.
The return value is zero if the function is successful. Otherwise, it is a negative (IE_*) value if an error occurs.
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.