ComQryTxQue
This function retrieves transmit buffer size statistics for the specified port.
- Syntax: err_t far ComQryTxQue(handle_t Handle, int far *TotalSizeP,
int far *FreeSizeP)
- Parameters: handle_t Handle - The handle returned via a successful ComOpen.
int far *TotalSizeP - Far pointer to an integer which receives the
total size (in bytes) of the transmit queue
int far *FreeSizeP - Far pointer to an integer which receives the number
of free bytes available in the transmit queue
Actual numbers of characters buffered in the transmit
queue, ready for transmission is:
*TotalSizeP - *FreeSizeP
Note that this is a dynamic value that may change
from millisecond to millisecond.
- Returns: 0 - if successful
Any other value indicates an error condition.
ENOTYOURS - The specified port has not been acquired by the calling
application.
- Comments: ComOpen() must first be called in order to get a valid handle to
the communications port.