xcall AUI, AUI_IMAGE, IMGOP_TWERR, handle, status
IMGOP_TWERR only applies when the status returned from another opcode is 11 (TWAIN error). In that case, you can use opcode 9 to retrieve a more specific error code, among the following:
|
Value |
Meaning |
|
1 |
Failure due to unknown causes |
|
2 |
Not enough memory to perform operation |
|
3 |
No data source |
|
4 |
Source already in use |
|
5 |
Source/Manager error already reported |
|
6 |
Unknown capability requested |
|
7 |
Undefined error |
|
8 |
Undefined error |
|
9 |
Bad protocol |
|
10 |
Parameter out of range |
|
11 |
Message received out of sequence |
|
12 |
Unknown destination source app |
|
13 |
Could not create parent window |
|
14 |
TWAIN Source Manager not found |