This function reads data from the ADU stream pipe. The number of bytes read is returned in lpNumberOfBytesRead.
The handle value must be the value returned by the open call.
ADU stream data blocks are limited to 7 characters in length.
int __stdcall ReadAduStream(void * hDevice,
void * lpBuffer,
unsigned long nNumberOfBytesToRead,
unsigned long * lpNumberOfBytesRead,
unsigned long iTimeout);
Declare Function ReadAduStream Lib "AduHid.DLL" _
(ByVal aduHandle As Long, ByVal lpBuffer As String, _
ByVal lNumberOfBytesToRead As Long, _
ByRef lBytesRead As Long, ByVal iTimeout As Long) As Long
A non-zero iTimeout value can only be supplied if timeout processing was activated during
the open call. (ie. a non-zero iTimeout value was passed into the open function)
Note: call GetLastError to get more information about a failed read operation.