Reads data from the input buffer for a communication channel (direct serial connection or modem connection).
ReceiveData( short ChannelID, short *Buffer, long NumberOfBytesToReceive, long *NumberOfBytesReceived, VARIANT_BOOL *Result); |
Parameters
ChannelID
A channel ID (0-7) used to identify a communication channel.
Buffer
A pointer to the buffer that receives the data read from the input buffer.
NumberOfBytesToReceive
The minimum number of bytes to read.
NumberOfBytesReceived
A pointer to the variable that receives number of bytes successfully read from the input buffer.
Result
If the method succeeds, the value of variable pointed to by Result is VARIANT_TRUE, otherwise the value is VARIANT_FALSE.