[an error occurred while processing this directive]
|
GetCommTimeouts (hPort, &CommTimeouts);
CommTimeouts.ReadIntervalTimeout = 500;
CommTimeouts.ReadTotalTimeoutMultiplier = 0;
CommTimeouts.ReadTotalTimeoutConstant = 1;
CommTimeouts.WriteTotalTimeoutMultiplier = 0;
CommTimeouts.WriteTotalTimeoutConstant = 1000;
if (!SetCommTimeouts (hPort, &CommTimeouts))
{err_code= GetLastError();
sprintf(str,"%s(Не устанавливается DCB) Сведения:( %x)", _KERNEL_FAULT, err_code);
ShowMessage(str); PortClose ();return FALSE;
}
E-mail: info@telesys.ru