mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
23 lines
836 B
Plaintext
23 lines
836 B
Plaintext
All TWAIN operations are done through the a combination of
|
|
Data Group (DG), Data Argument Type (DAT), and Message (MSG)
|
|
triplets. Rather than letting consumers of this lib deal
|
|
with all the combinations themselves and risk passing the
|
|
wrong thing, all valid triplet combinations are simply
|
|
made available under this namespace.
|
|
|
|
Example:
|
|
To get the status of the DS, just use the
|
|
"Get" method (represents MSG), in the
|
|
"Status" embedded class (represnts DAT), in the
|
|
"DGControl" class (represents DG).
|
|
|
|
or better explained in code:
|
|
|
|
DGControl.Status.Get(...)
|
|
|
|
and that's the triplet at-a-glance. Only triplets usable by the
|
|
application-side are defined here.
|
|
|
|
Also some of the operations are marked as internal when there are
|
|
better wrapped managed version available. Goal is to
|
|
eventually keep the exposed triplets to a minimum. |