Skip to content

Instantly share code, notes, and snippets.

@aib
Created January 27, 2022 10:59
Show Gist options
  • Save aib/96753c296a047c818a10369457e90e1b to your computer and use it in GitHub Desktop.
Save aib/96753c296a047c818a10369457e90e1b to your computer and use it in GitHub Desktop.
TWAIN 2.5 Operation Triplets
TWAIN 2.5 Operation Triplets (§7)
A -> SM
DG_CONTROL DAT_IDENTITY MSG_CLOSEDS 7-58 duplicated (SM -> S)
DG_CONTROL DAT_IDENTITY MSG_GETDEFAULT 7-61
DG_CONTROL DAT_IDENTITY MSG_GETFIRST 7-62
DG_CONTROL DAT_IDENTITY MSG_GETNEXT 7-64
DG_CONTROL DAT_IDENTITY MSG_OPENDS 7-66 duplicated (SM -> S)
DG_CONTROL DAT_IDENTITY MSG_SET 7-69
DG_CONTROL DAT_IDENTITY MSG_USERSELECT 7-70
DG_CONTROL DAT_PARENT MSG_CLOSEDSM 7-78
DG_CONTROL DAT_PARENT MSG_OPENDSM 7-79
DG_CONTROL DAT_STATUS MSG_GET 7-98 duplicated (A -> S)
A -> S (Control)
DG_CONTROL DAT_CAPABILITY MSG_GET 7-13
DG_CONTROL DAT_CAPABILITY MSG_GETCURRENT 7-16
DG_CONTROL DAT_CAPABILITY MSG_GETDEFAULT 7-19
DG_CONTROL DAT_CAPABILITY MSG_GETHELP 7-21
DG_CONTROL DAT_CAPABILITY MSG_GETLABEL 7-22
DG_CONTROL DAT_CAPABILITY MSG_GETLABELENUM 7-23
DG_CONTROL DAT_CAPABILITY MSG_QUERYSUPPORT 7-25
DG_CONTROL DAT_CAPABILITY MSG_RESET 7-27
DG_CONTROL DAT_CAPABILITY MSG_RESETALL 7-30
DG_CONTROL DAT_CAPABILITY MSG_SET 7-32
DG_CONTROL DAT_CAPABILITY MSG_SETCONSTRAINT 7-35
DG_CONTROL DAT_CUSTOMDSDATA MSG_GET 7-38
DG_CONTROL DAT_CUSTOMDSDATA MSG_SET 7-39
DG_CONTROL DAT_DEVICEEVENT MSG_GET 7-40
DG_CONTROL DAT_FILESYSTEM MSG_AUTOMATICCAPTUREDIRECTORY 7-45
DG_CONTROL DAT_FILESYSTEM MSG_CHANGEDIRECTORY 7-46
DG_CONTROL DAT_FILESYSTEM MSG_COPY 7-48
DG_CONTROL DAT_FILESYSTEM MSG_CREATEDIRECTORY 7-49
DG_CONTROL DAT_FILESYSTEM MSG_DELETE 7-50
DG_CONTROL DAT_FILESYSTEM MSG_FORMATMEDIA 7-51
DG_CONTROL DAT_FILESYSTEM MSG_GETCLOSE 7-52
DG_CONTROL DAT_FILESYSTEM MSG_GETFIRSTFILE 7-53
DG_CONTROL DAT_FILESYSTEM MSG_GETINFO 7-55
DG_CONTROL DAT_FILESYSTEM MSG_GETNEXTFILE 7-56
DG_CONTROL DAT_FILESYSTEM MSG_RENAME 7-57
DG_CONTROL DAT_EVENT MSG_PROCESSEVENT 7-43
DG_CONTROL DAT_METRICS MSG_GET 7-72
DG_CONTROL DAT_PASSTHRU MSG_PASSTHRU 7-80
DG_CONTROL DAT_PENDINGXFERS MSG_ENDXFER 7-81
DG_CONTROL DAT_PENDINGXFERS MSG_GET 7-83
DG_CONTROL DAT_PENDINGXFERS MSG_RESET 7-85
DG_CONTROL DAT_PENDINGXFERS MSG_STOPFEEDER 7-87
DG_CONTROL DAT_SETUPFILEXFER MSG_GET 7-88
DG_CONTROL DAT_SETUPFILEXFER MSG_GETDEFAULT 7-90
DG_CONTROL DAT_SETUPFILEXFER MSG_RESET 7-92
DG_CONTROL DAT_SETUPFILEXFER MSG_SET 7-94
DG_CONTROL DAT_SETUPMEMXFER MSG_GET 7-96
DG_CONTROL DAT_STATUS MSG_GET 7-99 duplicated (A -> SM)
DG_CONTROL DAT_STATUSUTF8 MSG_GET 7-100
DG_CONTROL DAT_TWAINDIRECT MSG_SETTASK 7-101
DG_CONTROL DAT_USERINTERFACE MSG_DISABLEDS 7-103
DG_CONTROL DAT_USERINTERFACE MSG_ENABLEDS 7-104
DG_CONTROL DAT_USERINTERFACE MSG_ENABLEDSUIONLY 7-107
DG_CONTROL DAT_XFERGROUP MSG_GET 7-108
DG_CONTROL DAT_XFERGROUP MSG_SET 7-109
A -> S (Image)
DG_IMAGE DAT_CIECOLOR MSG_GET 7-110
DG_IMAGE DAT_EXTIMAGEINFO MSG_GET 7-111
DG_IMAGE DAT_FILTER MSG_GET 7-113
DG_IMAGE DAT_FILTER MSG_GETDEFAULT 7-114
DG_IMAGE DAT_FILTER MSG_SET 7-115
DG_IMAGE DAT_FILTER MSG_RESET 7-117
DG_IMAGE DAT_GRAYRESPONSE MSG_RESET 7-118
DG_IMAGE DAT_GRAYRESPONSE MSG_SET 7-119
DG_IMAGE DAT_ICCPROFILE MSG_GET 7-120
DG_IMAGE DAT_IMAGEFILEXFER MSG_GET 7-122
DG_IMAGE DAT_IMAGEINFO MSG_GET 7-124
DG_IMAGE DAT_IMAGELAYOUT MSG_GET 7-126
DG_IMAGE DAT_IMAGELAYOUT MSG_GETDEFAULT 7-128
DG_IMAGE DAT_IMAGELAYOUT MSG_RESET 7-129
DG_IMAGE DAT_IMAGELAYOUT MSG_SET 7-130
DG_IMAGE DAT_IMAGEMEMFILEXFER MSG_GET 7-132
DG_IMAGE DAT_IMAGEMEMXFER MSG_GET 7-135
DG_IMAGE DAT_IMAGENATIVEXFER MSG_GET 7-138
DG_IMAGE DAT_JPEGCOMPRESSION MSG_GET 7-141
DG_IMAGE DAT_JPEGCOMPRESSION MSG_GETDEFAULT 7-142
DG_IMAGE DAT_JPEGCOMPRESSION MSG_RESET 7-143
DG_IMAGE DAT_JPEGCOMPRESSION MSG_SET 7-144
DG_IMAGE DAT_PALETTE8 MSG_GET 7-145
DG_IMAGE DAT_PALETTE8 MSG_GETDEFAULT 7-146
DG_IMAGE DAT_PALETTE8 MSG_RESET 7-147
DG_IMAGE DAT_PALETTE8 MSG_SET 7-148
DG_IMAGE DAT_RGBRESPONSE MSG_RESET 7-149
DG_IMAGE DAT_RGBRESPONSE MSG_SET 7-150
A -> S (Audio)
DG_AUDIO DAT_AUDIOFILEXFER MSG_GET 7-7
DG_AUDIO DAT_AUDIOINFO MSG_GET 7-8
DG_AUDIO DAT_AUDIONATIVEXFER MSG_GET 7-9
SM -> S (Control)
DG_CONTROL DAT_IDENTITY MSG_CLOSEDS 7-59 duplicated (A -> SM)
DG_CONTROL DAT_IDENTITY MSG_GET 7-60 duplicated?
DG_CONTROL DAT_IDENTITY MSG_OPENDS 7-68 duplicated (A -> SM)
S -> A (Control via SM, Windows only)
DG_CONTROL DAT_NULL MSG_CLOSEDSOK 7-74
DG_CONTROL DAT_NULL MSG_CLOSEDSREQ 7-75
DG_CONTROL DAT_NULL MSG_DEVICEEVENT 7-76
DG_CONTROL DAT_NULL MSG_XFERREADY 7-77
TWAIN 2.0 Entry Points
DG_CONTROL DAT_ENTRYPOINT MSG_GET 7-41
DG_CONTROL DAT_ENTRYPOINT MSG_SET 7-42
Deprecated?
DG_CONTROL DAT_CALLBACK MSG_INVOKE_CALLBACK 7-10
DG_CONTROL DAT_CALLBACK MSG_REGISTER_CALLBACK 7-11
DG_CONTROL DAT_CALLBACK2 MSG_REGISTER_CALLBACK 7-12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment