COM_Write

This function enables an application to transmit bytes to the serial port.

Syntax

ULONG COM_Write( HANDLE COM_Write, PUCHAR pSourceBytes, ULONG NumberOfBytes );

Parameters

COM_Write
Handle returned by the COM_Open function.
pSourceBytes
Pointer to bytes to be written.
NumberOfBytes
Specifies the number of bytes to be written.

Return Values

The number of bytes written indicates success. A value of –1 indicates failure.

Remarks

This function is exported to users through the WriteFile function. This function must obey flow-control and time-out values.

This function is defined in the Mdd.c file.

See Also

COM_Read