2023-04-02 00:57:07 +08:00
|
|
|
All TWAIN operations are done through the a combination of
|
|
|
|
Data Group (DG), Data Argument Type (DAT), and Message (MSG)
|
2023-04-03 03:32:19 +08:00
|
|
|
triplets. Rather than dealing with all the combinations
|
2023-04-04 19:48:07 +08:00
|
|
|
directly in the DSM pinvokes and risk passing the wrong thing,
|
|
|
|
all valid triplet combinations are made available under this namespace.
|
2023-04-02 00:57:07 +08:00
|
|
|
|
|
|
|
Example:
|
2023-04-04 19:48:07 +08:00
|
|
|
To get the status of the DS, the triplet is
|
|
|
|
`DG_Control / DAT_STATUS / MSG_GET` in the documentation.
|
|
|
|
With this wrapper you can use a similar call path:
|
2023-04-02 00:57:07 +08:00
|
|
|
|
2023-04-04 19:48:07 +08:00
|
|
|
```cs
|
|
|
|
DGControl.Status.Get(...);
|
|
|
|
```
|
2023-04-02 00:57:07 +08:00
|
|
|
|
2023-04-04 19:48:07 +08:00
|
|
|
Only triplets usable by the application-side are defined here.
|
2023-04-02 00:57:07 +08:00
|
|
|
|
2023-04-04 19:48:07 +08:00
|
|
|
These are still relatively low-level calls and `TwainAppSession` is the next higher
|
|
|
|
level abstraction with some state keeping and other dotnet-friendly methods
|
|
|
|
and events for regular use.
|