ADU Error Codes
Check the return code after each call into the AduHid.dll. If the call failed
additional information is usually available from the GetLastError function.
Most of the error codes returned by GetLastError will be values set by the Windows
operating system functions that the AduHid.dll uses.
A few of the error codes are set by AduHid.dll. The error codes are consistent with
Microsoft's documentation.
Some common error codes are listed here.
Common Error Codes
Error Code |
Description |
24 |
ERROR_BAD_LENGTH
"The program issued a command but the command length is incorrect."
FIX: Number of bytes to read/write must be > 0. |
1460 |
ERROR_TIMEOUT
"This operation returned because the timeout period expired."
This is be a normal condition on a read operation if the ADU device had nothing to report
to the host.
FIX: Ensure that the ADU device is connected. Retry the operation.
NOTE: If the ADU device was disconnected and reconnected then the old handle must be
closed and a new handle opened. (call AduDeviceClose, followed by AduDeviceOpen) |
1784 |
ERROR_INVALID_USER_BUFFER
"The supplied user buffer is not valid for the requested operation."
FIX: Supply a non-zero value for the buffer pointer. |
|