BOOL SetCommState(<br><br> HANDLE hFile, // handle of communications device<br> LPDCB lpDCB // address of device-control block structure<br> <br> <br><br>Parameters<br><br>hFile<br><br>Identifies the communications device. The CreateFile function returns this handle. <br><br>lpDCB<br><br>Points to a DCB structure containing the configuration information for the specified communications device. <br><br> <br><br>Return Values<br><br>If the function succeeds, the return value is nonzero.<br>If the function fails, the return value is zero. To get extended error information, call GetLastError.
If the function succeeds, the return value is nonzero.<br>If the function fails, the return value is zero.<br>To get extended error information, call GetLastError.