summaryrefslogtreecommitdiff
path: root/twain/inc/twain.h
diff options
context:
space:
mode:
Diffstat (limited to 'twain/inc/twain.h')
-rw-r--r--twain/inc/twain.h128
1 files changed, 64 insertions, 64 deletions
diff --git a/twain/inc/twain.h b/twain/inc/twain.h
index a9643e6111f9..8c5003474956 100644
--- a/twain/inc/twain.h
+++ b/twain/inc/twain.h
@@ -3,21 +3,21 @@
Copyright (C) 1991, 1992 TWAIN Working Group: Aldus, Caere, Eastman-Kodak,
Hewlett-Packard and Logitech Corporations. All rights reserved.
- Copyright (C) 1997 TWAIN Working Group: Bell+Howell, Canon, DocuMagix,
+ Copyright (C) 1997 TWAIN Working Group: Bell+Howell, Canon, DocuMagix,
Fujitsu, Genoa Technology, Hewlett-Packard, Kofax Imaging Products, and
Ricoh Corporation. All rights reserved.
-
- Copyright 1998 TWAIN Working Group: Adobe Systems Incorporated,
- Canon Information Systems, Eastman Kodak Company,
- Fujitsu Computer Products of America, Genoa Technology,
- Hewlett-Packard Company, Intel Corporation, Kofax Image Products,
- JFL Peripheral Solutions Inc., Ricoh Corporation, and Xerox Corporation.
+
+ Copyright 1998 TWAIN Working Group: Adobe Systems Incorporated,
+ Canon Information Systems, Eastman Kodak Company,
+ Fujitsu Computer Products of America, Genoa Technology,
+ Hewlett-Packard Company, Intel Corporation, Kofax Image Products,
+ JFL Peripheral Solutions Inc., Ricoh Corporation, and Xerox Corporation.
All rights reserved.
- Copyright 2000 TWAIN Working Group: Adobe Systems Incorporated,
- Canon Information Systems, Digimarc Corporation, Eastman Kodak Company,
- Fujitsu Computer Products of America, Hewlett-Packard Company,
- JFL Peripheral Solutions Inc., Ricoh Corporation, and Xerox Corporation.
+ Copyright 2000 TWAIN Working Group: Adobe Systems Incorporated,
+ Canon Information Systems, Digimarc Corporation, Eastman Kodak Company,
+ Fujitsu Computer Products of America, Hewlett-Packard Company,
+ JFL Peripheral Solutions Inc., Ricoh Corporation, and Xerox Corporation.
All rights reserved.
@@ -25,34 +25,34 @@
data sources written to the TWAIN specification.
It defines constants, data structures, messages etc.
for the public interface to TWAIN.
-
+
Revision History:
version 1.0, March 6, 1992. TWAIN 1.0.
version 1.1, January 1993. Tech Notes 1.1
version 1.5, June 1993. Specification Update 1.5
- Change DC to TW
+ Change DC to TW
Change filename from DC.H to TWAIN.H
version 1.5, July 1993. Remove spaces from country identifiers
-
- version 1.7, July 1997 Added Capabilities and data structure for
+
+ version 1.7, July 1997 Added Capabilities and data structure for
document imaging and digital cameras.
KHL.
version 1.7, July 1997 Inserted Borland compatibile structure packing
directives provided by Mentor. JMH
- version 1.7, Aug 1997 Expanded file tabs to spaces.
- NOTE: future authors should be sure to have
- their editors set to automatically expand tabs
+ version 1.7, Aug 1997 Expanded file tabs to spaces.
+ NOTE: future authors should be sure to have
+ their editors set to automatically expand tabs
to spaces (original tab setting was 4 spaces).
version 1.7, Sept 1997 Added job control values
Added return codes
- version 1.7, Sept 1997 changed definition of pRGBRESPONSE to
+ version 1.7, Sept 1997 changed definition of pRGBRESPONSE to
pTW_RGBRESPONSE
version 1.7 Aug 1998 Added missing TWEI_BARCODEROTATION values
TWBCOR_ types JMH
version 1.8 August 1998 Added new types and definitions required
for 1.8 Specification JMH
version 1.8 January 1999 Changed search mode from SRCH_ to TWBD_ as
- in 1.8 Specification, added TWBT_MAXICODE JMH
+ in 1.8 Specification, added TWBT_MAXICODE JMH
version 1.8 January 1999 Removed undocumented duplicate AUTO<cap> JMH
version 1.8 March 1999 Removed undocumented 1.8 caps:
CAP_FILESYSTEM
@@ -63,9 +63,9 @@
* CAP_PAGEMULTIPLEACQUIRE - is CAP_REACQUIREALLOWED,
requires spec change. JMH
Added Mac structure packing modifications JMH
- version 1.9 March 2000 Added new types and definations required
+ version 1.9 March 2000 Added new types and definations required
for 1.9 Specification MLM
- version 1.9 March 2000 Added ICAP_JPEGQUALITY, TWJQ_ values,
+ version 1.9 March 2000 Added ICAP_JPEGQUALITY, TWJQ_ values,
updated TWON_PROTOCOLMINOR for Release v1.9 MN
\* ======================================================================== */
@@ -123,10 +123,10 @@
* Corrected to allow building of TWAIN MacOS PowerPC Applications
* and MacOS PowerPC TWAIN sources.
*
- * The modification allows a PowerPC Application to use a
+ * The modification allows a PowerPC Application to use a
* TWAIN 68k Source and a PowerPC Source to be used by a 68k Application.
*
- * The modification concerns the data alignment of the C-Structures used by
+ * The modification concerns the data alignment of the C-Structures used by
* TWAIN during the communication between the Application and Source.
*
* The Data Alignment must be 68k code and not PowerPC.
@@ -168,12 +168,12 @@ typedef wchar_t TW_UNI512[512], FAR *pTW_UNI512; /* added 1.9 */
/* Numeric types. */
typedef char TW_INT8, FAR *pTW_INT8;
-typedef short TW_INT16, FAR *pTW_INT16;
+typedef short TW_INT16, FAR *pTW_INT16;
typedef long TW_INT32, FAR *pTW_INT32;
typedef unsigned char TW_UINT8, FAR *pTW_UINT8;
typedef unsigned short TW_UINT16, FAR *pTW_UINT16;
typedef unsigned long TW_UINT32, FAR *pTW_UINT32;
-typedef unsigned short TW_BOOL, FAR *pTW_BOOL;
+typedef unsigned short TW_BOOL, FAR *pTW_BOOL;
/* Fixed point structure type. */
typedef struct {
@@ -473,9 +473,9 @@ typedef struct
/* ----------------------------------------------------------------------- *\
- Version 1.7: Added Following data structure for Document Imaging
+ Version 1.7: Added Following data structure for Document Imaging
July 1997 Enhancement.
- KHL TW_CUSTOMDSDATA -- For Saving and Restoring Source's
+ KHL TW_CUSTOMDSDATA -- For Saving and Restoring Source's
state.
TW_INFO -- Each attribute for extended image
information.
@@ -864,7 +864,7 @@ typedef struct {
#define TWJC_JSIS 2
#define TWJC_JSXC 3
#define TWJC_JSXS 4
-
+
/* Added 1.7 */
/* TWEI_BARCODEROTATION values (BCOR_ means barcode rotation) */
#define TWBCOR_ROT0 0
@@ -897,7 +897,7 @@ typedef struct {
#define TWCB_NOCLEAR 2
/* CAP_DEVICEEVENT values (DE_ means device event) */
-#define TWDE_CUSTOMEVENTS 0x8000
+#define TWDE_CUSTOMEVENTS 0x8000
#define TWDE_CHECKAUTOMATICCAPTURE 0
#define TWDE_CHECKBATTERY 1
#define TWDE_CHECKDEVICEONLINE 2
@@ -1000,7 +1000,7 @@ typedef struct {
#define TWFY_UNKNOWN 8
/* ICAP_JPEGQUALITY values (JQ_ means jpeg quality) */
-#define TWJQ_UNKNOWN -4
+#define TWJQ_UNKNOWN -4
#define TWJQ_LOW -3
#define TWJQ_MEDIUM -2
#define TWJQ_HIGH -1
@@ -1270,7 +1270,7 @@ typedef struct {
#define TWLG_USA 13 /* U.S. English */
/* Added for 1.8 */
#define TWLG_USERLOCALE -1
-#define TWLG_AFRIKAANS 14
+#define TWLG_AFRIKAANS 14
#define TWLG_ALBANIA 15
#define TWLG_ARABIC 16
#define TWLG_ARABIC_ALGERIA 17
@@ -1518,7 +1518,7 @@ typedef struct {
#define MSG_CHANGEDIRECTORY 0x0801
#define MSG_CREATEDIRECTORY 0x0802
#define MSG_DELETE 0x0803
-#define MSG_FORMATMEDIA 0x0804
+#define MSG_FORMATMEDIA 0x0804
#define MSG_GETCLOSE 0x0805
#define MSG_GETFIRSTFILE 0x0806
#define MSG_GETINFO 0x0807
@@ -1595,7 +1595,7 @@ typedef struct {
#define CAP_REACQUIREALLOWED 0x1030 /* Added 1.8 */
#define CAP_BATTERYMINUTES 0x1032 /* Added 1.8 */
#define CAP_BATTERYPERCENTAGE 0x1033 /* Added 1.8 */
-
+
/* image data sources MAY support these caps */
#define ICAP_AUTOBRIGHT 0x1100
#define ICAP_BRIGHTNESS 0x1101
@@ -1674,8 +1674,8 @@ typedef struct {
/* ----------------------------------------------------------------------- *\
Version 1.7: Following is Extended Image Info Attributes.
- July 1997
- KHL
+ July 1997
+ KHL
\* ----------------------------------------------------------------------- */
@@ -1738,9 +1738,9 @@ typedef struct {
#define TWEI_CHAPTERNUMBER 0x1239 /* added 1.9 */
#define TWEI_DOCUMENTNUMBER 0x123A /* added 1.9 */
#define TWEI_PAGENUMBER 0x123B /* added 1.9 */
-#define TWEI_CAMERA 0x123C /* added 1.9 */
+#define TWEI_CAMERA 0x123C /* added 1.9 */
#define TWEI_FRAMENUMBER 0x123D /* added 1.9 */
-#define TWEI_FRAME 0x123E /* added 1.9 */
+#define TWEI_FRAME 0x123E /* added 1.9 */
#define TWEI_PIXELFLAVOR 0x123F /* added 1.9 */
#define TWEJ_NONE 0x0000
@@ -1755,7 +1755,7 @@ typedef struct {
/* Added 1.8 */
/* TW_PASSTHRU.Direction values */
#define TWDR_GET 1
-#define TWDR_SET 2
+#define TWDR_SET 2
/***************************************************************************
* Return Codes and Condition Codes section *
@@ -1806,7 +1806,7 @@ typedef struct {
/* bit patterns: for query the operation that are supported by the data source on a capability */
/* Application gets these through DG_CONTROL/DAT_CAPABILITY/MSG_QUERYSUPPORT */
/* Added 1.6 */
-#define TWQC_GET 0x0001
+#define TWQC_GET 0x0001
#define TWQC_SET 0x0002
#define TWQC_GETDEFAULT 0x0004
#define TWQC_GETCURRENT 0x0008
@@ -1828,21 +1828,21 @@ typedef struct {
* This could identify an application or a data source.
* If this is NULL, the message goes to the Source Manager.
*
- * DG The Data Group.
+ * DG The Data Group.
* Example: DG_IMAGE.
*
* DAT The Data Attribute Type.
* Example: DAT_IMAGEMEMXFER.
- *
+ *
* MSG The message. Messages are interpreted by the destination module
- * with respect to the Data Group and the Data Attribute Type.
+ * with respect to the Data Group and the Data Attribute Type.
* Example: MSG_GET.
*
- * pData A pointer to the data structure or variable identified
+ * pData A pointer to the data structure or variable identified
* by the Data Attribute Type.
* Example: (TW_MEMREF)&ImageMemXfer
* where ImageMemXfer is a TW_IMAGEMEMXFER structure.
- *
+ *
* Returns:
* ReturnCode
* Example: TWRC_SUCCESS.
@@ -1891,21 +1891,21 @@ typedef TW_UINT16 (*DSMENTRYPROC)(pTW_IDENTITY, pTW_IDENTITY,
* pOrigin Identifies the source module of the message. This could
* identify an application or the Data Source Manager.
*
- * DG The Data Group.
+ * DG The Data Group.
* Example: DG_IMAGE.
- *
+ *
* DAT The Data Attribute Type.
* Example: DAT_IMAGEMEMXFER.
- *
+ *
* MSG The message. Messages are interpreted by the data source
* with respect to the Data Group and the Data Attribute Type.
* Example: MSG_GET.
*
- * pData A pointer to the data structure or variable identified
+ * pData A pointer to the data structure or variable identified
* by the Data Attribute Type.
* Example: (TW_MEMREF)&ImageMemXfer
* where ImageMemXfer is a TW_IMAGEMEMXFER structure.
- *
+ *
* Returns:
* ReturnCode
* Example: TWRC_SUCCESS.
@@ -1923,28 +1923,28 @@ extern "C" {
#ifdef _MSWIN_
#ifdef _WIN32
__declspec(dllexport) TW_UINT16 FAR PASCAL DS_Entry (pTW_IDENTITY pOrigin,
- TW_UINT32 DG,
- TW_UINT16 DAT,
- TW_UINT16 MSG,
+ TW_UINT32 DG,
+ TW_UINT16 DAT,
+ TW_UINT16 MSG,
TW_MEMREF pData);
#else /* _WIN32 */
TW_UINT16 FAR PASCAL DS_Entry (pTW_IDENTITY pOrigin,
- TW_UINT32 DG,
- TW_UINT16 DAT,
- TW_UINT16 MSG,
+ TW_UINT32 DG,
+ TW_UINT16 DAT,
+ TW_UINT16 MSG,
TW_MEMREF pData);
#endif /* _WIN32 */
-
+
typedef TW_UINT16 (FAR PASCAL *DSENTRYPROC) (pTW_IDENTITY pOrigin,
- TW_UINT32 DG,
- TW_UINT16 DAT,
- TW_UINT16 MSG,
+ TW_UINT32 DG,
+ TW_UINT16 DAT,
+ TW_UINT16 MSG,
TW_MEMREF pData);
#else /* _MSWIN_ */
-FAR PASCAL TW_UINT16 DS_Entry( pTW_IDENTITY pOrigin,
- TW_UINT32 DG,
- TW_UINT16 DAT,
- TW_UINT16 MSG,
+FAR PASCAL TW_UINT16 DS_Entry( pTW_IDENTITY pOrigin,
+ TW_UINT32 DG,
+ TW_UINT16 DAT,
+ TW_UINT16 MSG,
TW_MEMREF pData);
typedef TW_UINT16 (*DSENTRYPROC)(pTW_IDENTITY,