Added support for TransmitCommChar.
This commit is contained in:
parent
9ca4285a9f
commit
eeb356567b
|
@ -1435,10 +1435,24 @@ BOOL WINAPI TransmitCommChar(
|
||||||
HANDLE hComm, /* [in] The communication device in need of a command character. */
|
HANDLE hComm, /* [in] The communication device in need of a command character. */
|
||||||
CHAR chTransmit) /* [in] The character to transmit. */
|
CHAR chTransmit) /* [in] The character to transmit. */
|
||||||
{
|
{
|
||||||
FIXME("(%x,'%c'), stub ! Use win32 handle!\n",hComm,chTransmit);
|
BOOL r = FALSE;
|
||||||
return TRUE;
|
int fd;
|
||||||
|
|
||||||
|
WARN("(%x,'%c') not perfect!\n",hComm,chTransmit);
|
||||||
|
|
||||||
|
fd = FILE_GetUnixHandle( hComm, GENERIC_READ );
|
||||||
|
if ( fd < 0 )
|
||||||
|
SetLastError ( ERROR_INVALID_PARAMETER );
|
||||||
|
else
|
||||||
|
{
|
||||||
|
r = (1 == write(fd, &chTransmit, 1));
|
||||||
|
close(fd);
|
||||||
|
}
|
||||||
|
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* GetCommTimeouts (KERNEL32.@)
|
* GetCommTimeouts (KERNEL32.@)
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue