This functions searches for any ADU device attached to the computer that matches the serial number. The function opens the first ADU device that matches and passes back a handle to it.
The handle value must be retained by the calling program and used with all subsequent ReadAduStream and CloseAduStream function calls.
Note that the serial number of a ADU device is unique so only one device will match.
void * __stdcall OpenAduStreamBySerialNumber(const char* psSerialNumber,
unsigned long iTimeout);
Declare Function OpenAduStreamBySerialNumber Lib "AduHid.DLL" _
(ByVal sSerialNumber As String, _
ByVal iTimeout As Long) As Long
Any non-zero iTimeout value will enable timeout handling. The actual timeout period is
passed into the ReadAduStream function call.