ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

twain.h
Go to the documentation of this file.
00001 /* ======================================================================== *\
00002 
00003   Copyright (C) 1991, 1992 TWAIN Working Group: Aldus, Caere, Eastman-Kodak,
00004   Hewlett-Packard and Logitech Corporations.  All rights reserved.
00005 
00006   Copyright (C) 1997 TWAIN Working Group: Bell+Howell, Canon, DocuMagix,
00007   Fujitsu, Genoa Technology, Hewlett-Packard, Kofax Imaging Products, and
00008   Ricoh Corporation.  All rights reserved.
00009 
00010   Copyright (C) 1998 TWAIN Working Group: Adobe Systems Incorporated,
00011   Canon Information Systems, Eastman Kodak Company,
00012   Fujitsu Computer Products of America, Genoa Technology,
00013   Hewlett-Packard Company, Intel Corporation, Kofax Image Products,
00014   JFL Peripheral Solutions Inc., Ricoh Corporation, and Xerox Corporation.
00015   All rights reserved.
00016 
00017   TWAIN.h -  This is the definitive include file for applications and
00018           data sources written to the TWAIN specification.
00019           It defines constants, data structures, messages etc.
00020           for the public interface to TWAIN.
00021 
00022   Revision History:
00023     version 1.0, March 6, 1992.  TWAIN 1.0.
00024     version 1.1, January 1993.   Tech Notes 1.1
00025     version 1.5, June 1993.      Specification Update 1.5
00026                                  Change DC to TW
00027                                  Change filename from DC.H to TWAIN.H
00028     version 1.5, July 1993.      Remove spaces from country identifiers
00029 
00030     version 1.7, July 1997       Added Capabilities and data structure for
00031                                  document imaging and digital cameras.
00032                                  KHL.
00033     version 1.7, July 1997       Inserted Borland compatible structure packing
00034                                  directives provided by Mentor.  JMH
00035     version 1.7, Aug 1997        Expanded file tabs to spaces.
00036                                  NOTE: future authors should be sure to have
00037                                  their editors set to automatically expand tabs
00038                                  to spaces (original tab setting was 4 spaces).
00039     version 1.7, Sept 1997       Added job control values
00040                                  Added return codes
00041     version 1.7, Sept 1997       changed definition of pRGBRESPONSE to
00042                                  pTW_RGBRESPONSE
00043     version 1.7  Aug 1998        Added missing TWEI_BARCODEROTATION values
00044                                  TWBCOR_ types JMH
00045     version 1.8  August 1998     Added new types and definitions required
00046                                  for 1.8 Specification JMH
00047     version 1.8  January 1999    Changed search mode from SRCH_ to TWBD_ as
00048                                  in 1.8 Specification, added TWBT_MAXICODE  JMH
00049     version 1.8  January 1999    Removed undocumented duplicate AUTO<cap> JMH
00050 \* ======================================================================== */
00051 
00052 #ifndef TWAIN
00053 #define TWAIN
00054 
00055 #include <stdarg.h>
00056 
00057 #include "windef.h"
00058 #include "winbase.h"
00059 
00060 /* The Twain structures must be packed on 2 byte alignment */
00061 #include "pshpack2.h"
00062 
00063 #undef FAR
00064 #define FAR
00065 
00066 /****************************************************************************
00067  * TWAIN Version                                                            *
00068  ****************************************************************************/
00069 #define TWON_PROTOCOLMINOR   8        /* Changed for Version 1.8            */
00070 #define TWON_PROTOCOLMAJOR   1
00071 
00072 /****************************************************************************
00073  * Platform Dependent Definitions and Typedefs                              *
00074  ****************************************************************************/
00075 
00076 /* Define one of the following, depending on the platform */
00077 /* #define _MAC_   */
00078 /* #define _UNIX_  */
00079 #define _MSWIN_
00080 
00081 #ifdef  _MSWIN_
00082     typedef HANDLE         TW_HANDLE;
00083     typedef LPVOID         TW_MEMREF;
00084     typedef BYTE         * HPBYTE;
00085     typedef void         * HPVOID;
00086 #endif  /* _MSWIN_ */
00087 
00088 #ifdef  _MAC_
00089 #define PASCAL         pascal
00090 #define FAR
00091     typedef Handle         TW_HANDLE;
00092     typedef char          *TW_MEMREF;
00093 #endif  /* _MAC_ */
00094 
00095 #ifdef  _UNIX_
00096 /*    #define PASCAL         pascal */
00097 #define FAR
00098     typedef unsigned char *TW_HANDLE;
00099     typedef unsigned char *TW_MEMREF;
00100 #endif  /* _UNIX_ */
00101 
00102 /****************************************************************************
00103  * Type Definitions                                                         *
00104  ****************************************************************************/
00105 
00106 /* String types. These include room for the strings and a NULL char,     *
00107  * or, on the Mac, a length byte followed by the string.                 *
00108  * TW_STR255 must hold less than 256 chars so length fits in first byte. */
00109 typedef char    TW_STR32[34],     FAR *pTW_STR32;
00110 typedef char    TW_STR64[66],     FAR *pTW_STR64;
00111 typedef char    TW_STR128[130],   FAR *pTW_STR128;
00112 typedef char    TW_STR255[256],   FAR *pTW_STR255;
00113 
00114 /* Numeric types. */
00115 typedef char           TW_INT8,   FAR *pTW_INT8;
00116 typedef short          TW_INT16,  FAR *pTW_INT16;
00117 typedef LONG           TW_INT32,  FAR *pTW_INT32;
00118 typedef unsigned char  TW_UINT8,  FAR *pTW_UINT8;
00119 typedef unsigned short TW_UINT16, FAR *pTW_UINT16;
00120 typedef ULONG          TW_UINT32, FAR *pTW_UINT32;
00121 typedef unsigned short TW_BOOL,   FAR *pTW_BOOL;
00122 
00123 /* Fixed point structure type. */
00124 typedef struct {
00125     TW_INT16     Whole;        /* maintains the sign */
00126     TW_UINT16    Frac;
00127 } TW_FIX32,  FAR *pTW_FIX32;
00128 
00129 /****************************************************************************
00130  * Structure Definitions                                                    *
00131  ****************************************************************************/
00132 
00133 /* No DAT needed. */
00134 typedef struct {
00135    TW_FIX32   X;
00136    TW_FIX32   Y;
00137    TW_FIX32   Z;
00138 } TW_CIEPOINT, FAR * pTW_CIEPOINT;
00139 
00140 /* No DAT needed. */
00141 typedef struct {
00142    TW_FIX32   StartIn;
00143    TW_FIX32   BreakIn;
00144    TW_FIX32   EndIn;
00145    TW_FIX32   StartOut;
00146    TW_FIX32   BreakOut;
00147    TW_FIX32   EndOut;
00148    TW_FIX32   Gamma;
00149    TW_FIX32   SampleCount;  /* if =0 use the gamma */
00150 } TW_DECODEFUNCTION, FAR * pTW_DECODEFUNCTION;
00151 
00152 /* No DAT needed. */
00153 typedef struct {
00154    TW_UINT8    Index;    /* Value used to index into the color table. */
00155    TW_UINT8    Channel1; /* First  tri-stimulus value (e.g Red)       */
00156    TW_UINT8    Channel2; /* Second tri-stimulus value (e.g Green)     */
00157    TW_UINT8    Channel3; /* Third  tri-stimulus value (e.g Blue)      */
00158 } TW_ELEMENT8, FAR * pTW_ELEMENT8;
00159 
00160 /* No DAT.  Defines a frame rectangle in ICAP_UNITS coordinates. */
00161 typedef struct {
00162    TW_FIX32   Left;
00163    TW_FIX32   Top;
00164    TW_FIX32   Right;
00165    TW_FIX32   Bottom;
00166 } TW_FRAME, FAR * pTW_FRAME;
00167 
00168 /* No DAT needed.  Used to manage memory buffers. */
00169 typedef struct {
00170    TW_UINT32  Flags;  /* Any combination of the TWMF_ constants.           */
00171    TW_UINT32  Length; /* Number of bytes stored in buffer TheMem.          */
00172    TW_MEMREF  TheMem; /* Pointer or handle to the allocated memory buffer. */
00173 } TW_MEMORY, FAR * pTW_MEMORY;
00174 
00175 /* No DAT needed. */
00176 typedef struct {
00177    TW_DECODEFUNCTION   Decode[3];
00178    TW_FIX32            Mix[3][3];
00179 } TW_TRANSFORMSTAGE, FAR * pTW_TRANSFORMSTAGE;
00180 
00181 /* No DAT needed.  Describes version of software currently running. */
00182 typedef struct {
00183    TW_UINT16  MajorNum;  /* Major revision number of the software. */
00184    TW_UINT16  MinorNum;  /* Incremental revision number of the software. */
00185    TW_UINT16  Language;  /* e.g. TWLG_SWISSFRENCH */
00186    TW_UINT16  Country;   /* e.g. TWCY_SWITZERLAND */
00187    TW_STR32   Info;      /* e.g. "1.0b3 Beta release" */
00188 } TW_VERSION, FAR * pTW_VERSION;
00189 
00190 /* TWON_ARRAY. Container for array of values (a simplified TW_ENUMERATION) */
00191 typedef struct {
00192    TW_UINT16  ItemType;
00193    TW_UINT32  NumItems;    /* How many items in ItemList           */
00194    TW_UINT8   ItemList[1]; /* Array of ItemType values starts here */
00195 } TW_ARRAY, FAR * pTW_ARRAY;
00196 
00197 /* TWON_ENUMERATION. Container for a collection of values. */
00198 typedef struct {
00199    TW_UINT16  ItemType;
00200    TW_UINT32  NumItems;     /* How many items in ItemList                 */
00201    TW_UINT32  CurrentIndex; /* Current value is in ItemList[CurrentIndex] */
00202    TW_UINT32  DefaultIndex; /* Powerup value is in ItemList[DefaultIndex] */
00203    TW_UINT8   ItemList[1];  /* Array of ItemType values starts here       */
00204 } TW_ENUMERATION, FAR * pTW_ENUMERATION;
00205 
00206 /* TWON_ONEVALUE. Container for one value. */
00207 typedef struct {
00208    TW_UINT16  ItemType;
00209    TW_UINT32  Item;
00210 } TW_ONEVALUE, FAR * pTW_ONEVALUE;
00211 
00212 /* TWON_RANGE. Container for a range of values. */
00213 typedef struct {
00214    TW_UINT16  ItemType;
00215    TW_UINT32  MinValue;     /* Starting value in the range.           */
00216    TW_UINT32  MaxValue;     /* Final value in the range.              */
00217    TW_UINT32  StepSize;     /* Increment from MinValue to MaxValue.   */
00218    TW_UINT32  DefaultValue; /* Power-up value.                        */
00219    TW_UINT32  CurrentValue; /* The value that is currently in effect. */
00220 } TW_RANGE, FAR * pTW_RANGE;
00221 
00222 /* DAT_CAPABILITY. Used by application to get/set capability from/in a data source. */
00223 typedef struct {
00224    TW_UINT16  Cap; /* id of capability to set or get, e.g. CAP_BRIGHTNESS */
00225    TW_UINT16  ConType; /* TWON_ONEVALUE, _RANGE, _ENUMERATION or _ARRAY   */
00226    TW_HANDLE  hContainer; /* Handle to container of type Dat              */
00227 } TW_CAPABILITY, FAR * pTW_CAPABILITY;
00228 
00229 /* DAT_CIECOLOR. */
00230 typedef struct {
00231    TW_UINT16           ColorSpace;
00232    TW_INT16            LowEndian;
00233    TW_INT16            DeviceDependent;
00234    TW_INT32            VersionNumber;
00235    TW_TRANSFORMSTAGE   StageABC;
00236    TW_TRANSFORMSTAGE   StageLMN;
00237    TW_CIEPOINT         WhitePoint;
00238    TW_CIEPOINT         BlackPoint;
00239    TW_CIEPOINT         WhitePaper;
00240    TW_CIEPOINT         BlackInk;
00241    TW_FIX32            Samples[1];
00242 } TW_CIECOLOR, FAR * pTW_CIECOLOR;
00243 
00244 /* DAT_EVENT. For passing events down from the application to the DS. */
00245 typedef struct {
00246    TW_MEMREF  pEvent;    /* Windows pMSG or Mac pEvent.                 */
00247    TW_UINT16  TWMessage; /* TW msg from data source, e.g. MSG_XFERREADY */
00248 } TW_EVENT, FAR * pTW_EVENT;
00249 
00250 /* DAT_GRAYRESPONSE */
00251 typedef struct {
00252    TW_ELEMENT8         Response[1];
00253 } TW_GRAYRESPONSE, FAR * pTW_GRAYRESPONSE;
00254 
00255 /* DAT_IDENTITY. Identifies the program/library/code resource. */
00256 typedef struct {
00257    TW_UINT32  Id;              /* Unique number.  In Windows, application hWnd      */
00258    TW_VERSION Version;         /* Identifies the piece of code              */
00259    TW_UINT16  ProtocolMajor;   /* Application and DS must set to TWON_PROTOCOLMAJOR */
00260    TW_UINT16  ProtocolMinor;   /* Application and DS must set to TWON_PROTOCOLMINOR */
00261    TW_UINT32  SupportedGroups; /* Bit field OR combination of DG_ constants */
00262    TW_STR32   Manufacturer;    /* Manufacturer name, e.g. "Hewlett-Packard" */
00263    TW_STR32   ProductFamily;   /* Product family name, e.g. "ScanJet"       */
00264    TW_STR32   ProductName;     /* Product name, e.g. "ScanJet Plus"         */
00265 } TW_IDENTITY, FAR * pTW_IDENTITY;
00266 
00267 /* DAT_IMAGEINFO. Application gets detailed image info from DS with this. */
00268 typedef struct {
00269    TW_FIX32   XResolution;      /* Resolution in the horizontal             */
00270    TW_FIX32   YResolution;      /* Resolution in the vertical               */
00271    TW_INT32   ImageWidth;       /* Columns in the image, -1 if unknown by DS*/
00272    TW_INT32   ImageLength;      /* Rows in the image, -1 if unknown by DS   */
00273    TW_INT16   SamplesPerPixel;  /* Number of samples per pixel, 3 for RGB   */
00274    TW_INT16   BitsPerSample[8]; /* Number of bits for each sample           */
00275    TW_INT16   BitsPerPixel;     /* Number of bits for each padded pixel     */
00276    TW_BOOL    Planar;           /* True if Planar, False if chunky          */
00277    TW_INT16   PixelType;        /* How to interp data; photo interp (TWPT_) */
00278    TW_UINT16  Compression;      /* How the data is compressed (TWCP_xxxx)   */
00279 } TW_IMAGEINFO, FAR * pTW_IMAGEINFO;
00280 
00281 /* DAT_IMAGELAYOUT. Provides image layout information in current units. */
00282 typedef struct {
00283    TW_FRAME   Frame;          /* Frame coords within larger document */
00284    TW_UINT32  DocumentNumber;
00285    TW_UINT32  PageNumber;     /* Reset when you go to next document  */
00286    TW_UINT32  FrameNumber;    /* Reset when you go to next page      */
00287 } TW_IMAGELAYOUT, FAR * pTW_IMAGELAYOUT;
00288 
00289 /* DAT_IMAGEMEMXFER. Used to pass image data (e.g. in strips) from DS to application.*/
00290 typedef struct {
00291    TW_UINT16  Compression;  /* How the data is compressed                */
00292    TW_UINT32  BytesPerRow;  /* Number of bytes in a row of data          */
00293    TW_UINT32  Columns;      /* How many columns                          */
00294    TW_UINT32  Rows;         /* How many rows                             */
00295    TW_UINT32  XOffset;      /* How far from the side of the image        */
00296    TW_UINT32  YOffset;      /* How far from the top of the image         */
00297    TW_UINT32  BytesWritten; /* How many bytes written in Memory          */
00298    TW_MEMORY  Memory;       /* Mem struct used to pass actual image data */
00299 } TW_IMAGEMEMXFER, FAR * pTW_IMAGEMEMXFER;
00300 
00301 /* Changed in 1.1: QuantTable, HuffmanDC, HuffmanAC TW_MEMREF -> TW_MEMORY  */
00302 /* DAT_JPEGCOMPRESSION. Based on JPEG Draft International Std, ver 10918-1. */
00303 typedef struct {
00304    TW_UINT16   ColorSpace;       /* One of the TWPT_xxxx values                */
00305    TW_UINT32   SubSampling;      /* Two word "array" for subsampling values    */
00306    TW_UINT16   NumComponents;    /* Number of color components in image        */
00307    TW_UINT16   RestartFrequency; /* Frequency of restart marker codes in MDU's */
00308    TW_UINT16   QuantMap[4];      /* Mapping of components to QuantTables       */
00309    TW_MEMORY   QuantTable[4];    /* Quantization tables                        */
00310    TW_UINT16   HuffmanMap[4];    /* Mapping of components to Huffman tables    */
00311    TW_MEMORY   HuffmanDC[2];     /* DC Huffman tables                          */
00312    TW_MEMORY   HuffmanAC[2];     /* AC Huffman tables                          */
00313 } TW_JPEGCOMPRESSION, FAR * pTW_JPEGCOMPRESSION;
00314 
00315 /* DAT_PALETTE8. Color palette when TWPT_PALETTE pixels xfer'd in mem buf. */
00316 typedef struct {
00317    TW_UINT16    NumColors;   /* Number of colors in the color table.  */
00318    TW_UINT16    PaletteType; /* TWPA_xxxx, specifies type of palette. */
00319    TW_ELEMENT8  Colors[256]; /* Array of palette values starts here.  */
00320 } TW_PALETTE8, FAR * pTW_PALETTE8;
00321 
00322 /* DAT_PENDINGXFERS. Used with MSG_ENDXFER to indicate additional data. */
00323 typedef struct {
00324    TW_UINT16 Count;
00325    union {
00326       TW_UINT32 EOJ;
00327       TW_UINT32 Reserved;
00328    } u;
00329 } TW_PENDINGXFERS, FAR *pTW_PENDINGXFERS;
00330 
00331 /* DAT_RGBRESPONSE */
00332 typedef struct {
00333    TW_ELEMENT8         Response[1];
00334 } TW_RGBRESPONSE, FAR * pTW_RGBRESPONSE;
00335 
00336 /* DAT_SETUPFILEXFER. Sets up DS to application data transfer via a file. */
00337 typedef struct {
00338    TW_STR255 FileName;
00339    TW_UINT16 Format;   /* Any TWFF_ constant */
00340    TW_INT16  VRefNum;  /* Used for Mac only  */
00341 } TW_SETUPFILEXFER, FAR * pTW_SETUPFILEXFER;
00342 
00343 /* DAT_SETUPMEMXFER. Sets up DS to application data transfer via a memory buffer. */
00344 typedef struct {
00345    TW_UINT32 MinBufSize;
00346    TW_UINT32 MaxBufSize;
00347    TW_UINT32 Preferred;
00348 } TW_SETUPMEMXFER, FAR * pTW_SETUPMEMXFER;
00349 
00350 /* DAT_STATUS. Application gets detailed status info from a data source with this. */
00351 typedef struct {
00352    TW_UINT16  ConditionCode; /* Any TWCC_ constant     */
00353    TW_UINT16  Reserved;      /* Future expansion space */
00354 } TW_STATUS, FAR * pTW_STATUS;
00355 
00356 /* DAT_USERINTERFACE. Coordinates UI between application and data source. */
00357 typedef struct {
00358    TW_BOOL    ShowUI;  /* TRUE if DS should bring up its UI           */
00359    TW_BOOL    ModalUI; /* For Mac only - true if the DS's UI is modal */
00360    TW_HANDLE  hParent; /* For windows only - Application window handle        */
00361 } TW_USERINTERFACE, FAR * pTW_USERINTERFACE;
00362 
00363 /* SDH - 03/21/95 - TWUNK */
00364 /* DAT_TWUNKIDENTITY. Provides DS identity and 'other' information necessary */
00365 /*                    across thunk link. */
00366 typedef struct {
00367    TW_IDENTITY identity;        /* Identity of data source.                 */
00368    TW_STR255   dsPath;          /* Full path and file name of data source.  */
00369 } TW_TWUNKIDENTITY, FAR * pTW_TWUNKIDENTITY;
00370 
00371 /* SDH - 03/21/95 - TWUNK */
00372 /* Provides DS_Entry parameters over thunk link. */
00373 typedef struct
00374 {
00375     TW_INT8     destFlag;       /* TRUE if dest is not NULL                 */
00376     TW_IDENTITY dest;           /* Identity of data source (if used)        */
00377     TW_INT32    dataGroup;      /* DSM_Entry dataGroup parameter            */
00378     TW_INT16    dataArgType;    /* DSM_Entry dataArgType parameter          */
00379     TW_INT16    message;        /* DSM_Entry message parameter              */
00380     TW_INT32    pDataSize;      /* Size of pData (0 if NULL)                */
00381     /*  TW_MEMREF   pData; */   /* Based on implementation specifics, a     */
00382                                 /* pData parameter makes no sense in this   */
00383                                 /* structure, but data (if provided) will be*/
00384                                 /* appended in the data block.              */
00385    } TW_TWUNKDSENTRYPARAMS, FAR * pTW_TWUNKDSENTRYPARAMS;
00386 
00387 /* SDH - 03/21/95 - TWUNK */
00388 /* Provides DS_Entry results over thunk link. */
00389 typedef struct
00390 {
00391     TW_UINT16   returnCode;     /* Thunker DsEntry return code.             */
00392     TW_UINT16   conditionCode;  /* Thunker DsEntry condition code.          */
00393     TW_INT32    pDataSize;      /* Size of pData (0 if NULL)                */
00394     /*  TW_MEMREF   pData; */   /* Based on implementation specifics, a     */
00395                                 /* pData parameter makes no sense in this   */
00396                                 /* structure, but data (if provided) will be*/
00397                                 /* appended in the data block.              */
00398 } TW_TWUNKDSENTRYRETURN, FAR * pTW_TWUNKDSENTRYRETURN;
00399 
00400 /* WJD - 950818 */
00401 /* Added for 1.6 Specification */
00402 /* TWAIN 1.6 CAP_SUPPORTEDCAPSEXT structure */
00403 typedef struct
00404 {
00405     TW_UINT16 Cap;   /* Which CAP/ICAP info is relevant to */
00406     TW_UINT16 Properties;  /* Messages this CAP/ICAP supports */
00407 } TW_CAPEXT, FAR * pTW_CAPEXT;
00408 
00409 /* ----------------------------------------------------------------------- *\
00410 
00411   Version 1.7:      Added Following data structure for Document Imaging
00412   July 1997         Enhancement.
00413   KHL               TW_CUSTOMDSDATA --  For Saving and Restoring Source's
00414                                         state.
00415                     TW_INFO         --  Each attribute for extended image
00416                                         information.
00417                     TW_EXTIMAGEINFO --  Extended image information structure.
00418 
00419 \* ----------------------------------------------------------------------- */
00420 
00421 typedef struct {
00422     TW_UINT32  InfoLength;     /* Length of Information in bytes.  */
00423     TW_HANDLE  hData;          /* Place holder for data, DS Allocates */
00424 }TW_CUSTOMDSDATA, FAR *pTW_CUSTOMDSDATA;
00425 
00426 typedef struct {
00427     TW_UINT16   InfoID;
00428     TW_UINT16   ItemType;
00429     TW_UINT16   NumItems;
00430     TW_UINT16   CondCode;
00431     TW_UINT32   Item;
00432 }TW_INFO, FAR* pTW_INFO;
00433 
00434 typedef struct {
00435     TW_UINT32   NumInfos;
00436     TW_INFO     Info[1];
00437 }TW_EXTIMAGEINFO, FAR* pTW_EXTIMAGEINFO;
00438 
00439 /* Added 1.8 */
00440 
00441 /* DAT_AUDIOINFO, information about audio data */
00442 typedef struct {
00443    TW_STR255  Name;       /* name of audio data */
00444    TW_UINT32  Reserved;   /* reserved space */
00445 } TW_AUDIOINFO, FAR * pTW_AUDIOINFO;
00446 
00447 /* DAT_DEVICEEVENT, information about events */
00448 typedef struct {
00449    TW_UINT32  Event;                  /* One of the TWDE_xxxx values. */
00450    TW_STR255  DeviceName;             /* The name of the device that generated the event */
00451    TW_UINT32  BatteryMinutes;         /* Battery Minutes Remaining    */
00452    TW_INT16   BatteryPercentage;      /* Battery Percentage Remaining */
00453    TW_INT32   PowerSupply;            /* Power Supply                 */
00454    TW_FIX32   XResolution;            /* Resolution                   */
00455    TW_FIX32   YResolution;            /* Resolution                   */
00456    TW_UINT32  FlashUsed2;             /* Flash Used2                  */
00457    TW_UINT32  AutomaticCapture;       /* Automatic Capture            */
00458    TW_UINT32  TimeBeforeFirstCapture; /* Automatic Capture            */
00459    TW_UINT32  TimeBetweenCaptures;    /* Automatic Capture            */
00460 } TW_DEVICEEVENT, FAR * pTW_DEVICEEVENT;
00461 
00462 /* DAT_FILESYSTEM, information about TWAIN file system */
00463 typedef struct {
00464    /* DG_CONTROL / DAT_FILESYSTEM / MSG_xxxx fields     */
00465    TW_STR255  InputName; /* The name of the input or source file */
00466    TW_STR255  OutputName; /* The result of an operation or the name of a destination file */
00467    TW_MEMREF  Context; /* Source specific data used to remember state information */
00468    /* DG_CONTROL / DAT_FILESYSTEM / MSG_DELETE field    */
00469    int        Recursive; /* recursively delete all sub-directories */
00470    /* DG_CONTROL / DAT_FILESYSTEM / MSG_GETINFO fields  */
00471    TW_INT32   FileType; /* One of the TWFT_xxxx values */
00472    TW_UINT32  Size; /* Size of current FileType */
00473    TW_STR32   CreateTimeDate; /* creation date of the file */
00474    TW_STR32   ModifiedTimeDate; /* last date the file was modified */
00475    TW_UINT32  FreeSpace; /* bytes of free space on the current device */
00476    TW_INT32   NewImageSize; /* estimate of the amount of space a new image would take up */
00477    TW_UINT32  NumberOfFiles; /* number of files, depends on FileType */
00478    TW_UINT32  NumberOfSnippets; 
00479    char       Reserved[512]; 
00480 } TW_FILESYSTEM, FAR * pTW_FILESYSTEM;
00481 
00482 /* DAT_PASSTHRU, device dependent data to pass through Data Source */
00483 typedef struct {
00484    TW_MEMREF  pCommand;        /* Pointer to Command buffer */
00485    TW_UINT32  CommandBytes;    /* Number of bytes in Command buffer */
00486    TW_INT32   Direction;       /* One of the TWDR_xxxx values.  Defines the direction of data flow */
00487    TW_MEMREF  pData;           /* Pointer to Data buffer */
00488    TW_UINT32  DataBytes;       /* Number of bytes in Data buffer */
00489    TW_UINT32  DataBytesXfered; /* Number of bytes successfully transferred */
00490 } TW_PASSTHRU, FAR * pTW_PASSTHRU;
00491 
00492 /* DAT_SETUPAUDIOFILEXFER, information required to setup an audio file transfer */
00493 typedef struct {
00494    TW_STR255  FileName; /* full path target file */
00495    TW_UINT16  Format;   /* one of TWAF_xxxx */
00496    TW_INT16 VRefNum;
00497 } TW_SETUPAUDIOFILEXFER, FAR * pTW_SETUPAUDIOFILEXFER;
00498 
00499 /****************************************************************************
00500  * Generic Constants                                                        *
00501  ****************************************************************************/
00502 
00503 #define TWON_ARRAY           3 /* indicates TW_ARRAY container       */
00504 #define TWON_ENUMERATION     4 /* indicates TW_ENUMERATION container */
00505 #define TWON_ONEVALUE        5 /* indicates TW_ONEVALUE container    */
00506 #define TWON_RANGE           6 /* indicates TW_RANGE container       */
00507 
00508 #define TWON_ICONID          962 /* res Id of icon used in USERSELECT lbox */
00509 #define TWON_DSMID           461 /* res Id of the DSM version num resource */
00510 #define TWON_DSMCODEID       63  /* res Id of the Mac SM Code resource     */
00511 
00512 #define TWON_DONTCARE8       0xff
00513 #define TWON_DONTCARE16      0xffff
00514 #define TWON_DONTCARE32      0xffffffff
00515 
00516 /* Flags used in TW_MEMORY structure. */
00517 #define TWMF_APPOWNS     0x1
00518 #define TWMF_DSMOWNS     0x2
00519 #define TWMF_DSOWNS      0x4
00520 #define TWMF_POINTER     0x8
00521 #define TWMF_HANDLE      0x10
00522 
00523 /* Palette types for TW_PALETTE8 */
00524 #define TWPA_RGB         0
00525 #define TWPA_GRAY        1
00526 #define TWPA_CMY         2
00527 
00528 /* There are four containers used for capabilities negotiation:
00529  *    TWON_ONEVALUE, TWON_RANGE, TWON_ENUMERATION, TWON_ARRAY
00530  * In each container structure ItemType can be TWTY_INT8, TWTY_INT16, etc.
00531  * The kind of data stored in the container can be determined by doing
00532  * DCItemSize[ItemType] where the following is defined in TWAIN glue code:
00533  *          DCItemSize[]= { sizeof(TW_INT8),
00534  *                          sizeof(TW_INT16),
00535  *                          etc.
00536  *                          sizeof(TW_UINT32) };
00537  *
00538  */
00539 
00540 #define TWTY_INT8        0x0000    /* Means Item is a TW_INT8   */
00541 #define TWTY_INT16       0x0001    /* Means Item is a TW_INT16  */
00542 #define TWTY_INT32       0x0002    /* Means Item is a TW_INT32  */
00543 
00544 #define TWTY_UINT8       0x0003    /* Means Item is a TW_UINT8  */
00545 #define TWTY_UINT16      0x0004    /* Means Item is a TW_UINT16 */
00546 #define TWTY_UINT32      0x0005    /* Means Item is a TW_UINT32 */
00547 
00548 #define TWTY_BOOL        0x0006    /* Means Item is a TW_BOOL   */
00549 
00550 #define TWTY_FIX32       0x0007    /* Means Item is a TW_FIX32  */
00551 
00552 #define TWTY_FRAME       0x0008    /* Means Item is a TW_FRAME  */
00553 
00554 #define TWTY_STR32       0x0009    /* Means Item is a TW_STR32  */
00555 #define TWTY_STR64       0x000a    /* Means Item is a TW_STR64  */
00556 #define TWTY_STR128      0x000b    /* Means Item is a TW_STR128 */
00557 #define TWTY_STR255      0x000c    /* Means Item is a TW_STR255 */
00558 
00559 /****************************************************************************
00560  * Capability Constants                                                     *
00561  ****************************************************************************/
00562 
00563 /* ICAP_BITORDER values (BO_ means Bit Order) */
00564 #define TWBO_LSBFIRST    0
00565 #define TWBO_MSBFIRST    1
00566 
00567 /* ICAP_COMPRESSION values (CP_ means ComPression ) */
00568 #define TWCP_NONE        0
00569 #define TWCP_PACKBITS    1
00570 #define TWCP_GROUP31D    2 /* Follows CCITT spec (no End Of Line)          */
00571 #define TWCP_GROUP31DEOL 3 /* Follows CCITT spec (has End Of Line)         */
00572 #define TWCP_GROUP32D    4 /* Follows CCITT spec (use cap for K Factor)    */
00573 #define TWCP_GROUP4      5 /* Follows CCITT spec                           */
00574 #define TWCP_JPEG        6 /* Use capability for more info                 */
00575 #define TWCP_LZW         7 /* Must license from Unisys and IBM to use      */
00576 #define TWCP_JBIG        8 /* For Bitonal images  -- Added 1.7 KHL         */
00577 /* Added 1.8 */
00578 #define TWCP_PNG         9
00579 #define TWCP_RLE4        10
00580 #define TWCP_RLE8        11
00581 #define TWCP_BITFIELDS   12
00582 
00583 
00584 /* ICAP_IMAGEFILEFORMAT values (FF_means File Format)   */
00585 #define TWFF_TIFF        0    /* Tagged Image File Format     */
00586 #define TWFF_PICT        1    /* Macintosh PICT               */
00587 #define TWFF_BMP         2    /* Windows Bitmap               */
00588 #define TWFF_XBM         3    /* X-Windows Bitmap             */
00589 #define TWFF_JFIF        4    /* JPEG File Interchange Format */
00590 #define TWFF_FPX         5    /* Flash Pix                    */
00591 #define TWFF_TIFFMULTI   6    /* Multi-page tiff file         */
00592 #define TWFF_PNG         7
00593 #define TWFF_SPIFF       8
00594 #define TWFF_EXIF        9
00595 
00596 
00597 /* ICAP_FILTER values (FT_ means Filter Type) */
00598 #define TWFT_RED         0
00599 #define TWFT_GREEN       1
00600 #define TWFT_BLUE        2
00601 #define TWFT_NONE        3
00602 #define TWFT_WHITE       4
00603 #define TWFT_CYAN        5
00604 #define TWFT_MAGENTA     6
00605 #define TWFT_YELLOW      7
00606 #define TWFT_BLACK       8
00607 
00608 /* ICAP_LIGHTPATH values (LP_ means Light Path) */
00609 #define TWLP_REFLECTIVE   0
00610 #define TWLP_TRANSMISSIVE 1
00611 
00612 /* ICAP_LIGHTSOURCE values (LS_ means Light Source) */
00613 #define TWLS_RED         0
00614 #define TWLS_GREEN       1
00615 #define TWLS_BLUE        2
00616 #define TWLS_NONE        3
00617 #define TWLS_WHITE       4
00618 #define TWLS_UV          5
00619 #define TWLS_IR          6
00620 
00621 /* ICAP_ORIENTATION values (OR_ means ORientation) */
00622 #define TWOR_ROT0        0
00623 #define TWOR_ROT90       1
00624 #define TWOR_ROT180      2
00625 #define TWOR_ROT270      3
00626 #define TWOR_PORTRAIT    TWOR_ROT0
00627 #define TWOR_LANDSCAPE   TWOR_ROT270
00628 
00629 /* ICAP_PLANARCHUNKY values (PC_ means Planar/Chunky ) */
00630 #define TWPC_CHUNKY      0
00631 #define TWPC_PLANAR      1
00632 
00633 /* ICAP_PIXELFLAVOR values (PF_ means Pixel Flavor) */
00634 #define TWPF_CHOCOLATE   0  /* zero pixel represents darkest shade  */
00635 #define TWPF_VANILLA     1  /* zero pixel represents lightest shade */
00636 
00637 /* ICAP_PIXELTYPE values (PT_ means Pixel Type) */
00638 #define TWPT_BW          0 /* Black and White */
00639 #define TWPT_GRAY        1
00640 #define TWPT_RGB         2
00641 #define TWPT_PALETTE     3
00642 #define TWPT_CMY         4
00643 #define TWPT_CMYK        5
00644 #define TWPT_YUV         6
00645 #define TWPT_YUVK        7
00646 #define TWPT_CIEXYZ      8
00647 
00648 /* ICAP_SUPPORTEDSIZES values (SS_ means Supported Sizes) */
00649 #define TWSS_NONE        0
00650 #define TWSS_A4LETTER    1
00651 #define TWSS_B5LETTER    2
00652 #define TWSS_USLETTER    3
00653 #define TWSS_USLEGAL     4
00654 /* Added 1.5 */
00655 #define TWSS_A5          5
00656 #define TWSS_B4          6
00657 #define TWSS_B6          7
00658 /*#define TWSS_B          8 */
00659 /* Added 1.7 */
00660 #define TWSS_USLEDGER    9
00661 #define TWSS_USEXECUTIVE 10
00662 #define TWSS_A3          11
00663 #define TWSS_B3          12
00664 #define TWSS_A6          13
00665 #define TWSS_C4          14
00666 #define TWSS_C5          15
00667 #define TWSS_C6          16
00668 /* Added 1.8 */
00669 #define TWSS_4A0          17
00670 #define TWSS_2A0          18
00671 #define TWSS_A0           19
00672 #define TWSS_A1           20
00673 #define TWSS_A2           21
00674 #define TWSS_A4           TWSS_A4LETTER
00675 #define TWSS_A7           22
00676 #define TWSS_A8           23
00677 #define TWSS_A9           24
00678 #define TWSS_A10          25
00679 #define TWSS_ISOB0        26
00680 #define TWSS_ISOB1        27
00681 #define TWSS_ISOB2        28
00682 #define TWSS_ISOB3        TWSS_B3
00683 #define TWSS_ISOB4        TWSS_B4
00684 #define TWSS_ISOB5        29
00685 #define TWSS_ISOB6        TWSS_B6
00686 #define TWSS_ISOB7        30
00687 #define TWSS_ISOB8        31
00688 #define TWSS_ISOB9        32
00689 #define TWSS_ISOB10       33
00690 #define TWSS_JISB0        34
00691 #define TWSS_JISB1        35
00692 #define TWSS_JISB2        36
00693 #define TWSS_JISB3        37
00694 #define TWSS_JISB4        38
00695 #define TWSS_JISB5        TWSS_B5LETTER
00696 #define TWSS_JISB6        39
00697 #define TWSS_JISB7        40
00698 #define TWSS_JISB8        41
00699 #define TWSS_JISB9        42
00700 #define TWSS_JISB10       43
00701 #define TWSS_C0           44
00702 #define TWSS_C1           45
00703 #define TWSS_C2           46
00704 #define TWSS_C3           47
00705 #define TWSS_C7           48
00706 #define TWSS_C8           49
00707 #define TWSS_C9           50
00708 #define TWSS_C10          51
00709 #define TWSS_USSTATEMENT  52
00710 #define TWSS_BUSINESSCARD 53
00711 
00712 /* ICAP_XFERMECH values (SX_ means Setup XFer) */
00713 #define TWSX_NATIVE      0
00714 #define TWSX_FILE        1
00715 #define TWSX_MEMORY      2
00716 
00717 /* ICAP_UNITS values (UN_ means UNits) */
00718 #define TWUN_INCHES      0
00719 #define TWUN_CENTIMETERS 1
00720 #define TWUN_PICAS       2
00721 #define TWUN_POINTS      3
00722 #define TWUN_TWIPS       4
00723 #define TWUN_PIXELS      5
00724 
00725 /* Added 1.5 */
00726 /* ICAP_BITDEPTHREDUCTION values (BR_ means Bitdepth Reduction) */
00727 #define TWBR_THRESHOLD     0
00728 #define TWBR_HALFTONE      1
00729 #define TWBR_CUSTHALFTONE  2
00730 #define TWBR_DIFFUSION     3
00731 
00732 /* Added 1.7 */
00733 /* ICAP_DUPLEX values */
00734 #define TWDX_NONE         0
00735 #define TWDX_1PASSDUPLEX  1
00736 #define TWDX_2PASSDUPLEX  2
00737 
00738 /* Added 1.7 */
00739 /* TWEI_BARCODETYPE values */
00740 #define TWBT_3OF9                 0
00741 #define TWBT_2OF5INTERLEAVED      1
00742 #define TWBT_2OF5NONINTERLEAVED   2
00743 #define TWBT_CODE93               3
00744 #define TWBT_CODE128              4
00745 #define TWBT_UCC128               5
00746 #define TWBT_CODABAR              6
00747 #define TWBT_UPCA                 7
00748 #define TWBT_UPCE                 8
00749 #define TWBT_EAN8                 9
00750 #define TWBT_EAN13                10
00751 #define TWBT_POSTNET              11
00752 #define TWBT_PDF417               12
00753 /* Added 1.8 */
00754 #define TWBT_2OF5INDUSTRIAL       13
00755 #define TWBT_2OF5MATRIX           14
00756 #define TWBT_2OF5DATALOGIC        15
00757 #define TWBT_2OF5IATA             16
00758 #define TWBT_3OF9FULLASCII        17
00759 #define TWBT_CODABARWITHSTARTSTOP 18
00760 #define TWBT_MAXICODE             19
00761 
00762 /* Added 1.7 */
00763 /* TWEI_DESKEWSTATUS values */
00764 #define TWDSK_SUCCESS     0
00765 #define TWDSK_REPORTONLY  1
00766 #define TWDSK_FAIL        2
00767 #define TWDSK_DISABLED    3
00768 
00769 /* Added 1.7 */
00770 /* TWEI_PATCHCODE values */
00771 #define TWPCH_PATCH1      0
00772 #define TWPCH_PATCH2      1
00773 #define TWPCH_PATCH3      2
00774 #define TWPCH_PATCH4      3
00775 #define TWPCH_PATCH6      4
00776 #define TWPCH_PATCHT      5
00777 
00778 /* Added 1.7 */
00779 /* CAP_JOBCONTROL values */
00780 #define TWJC_NONE   0
00781 #define TWJC_JSIC   1
00782 #define TWJC_JSIS   2
00783 #define TWJC_JSXC   3
00784 #define TWJC_JSXS   4
00785 
00786 /* Added 1.7 */
00787 /* TWEI_BARCODEROTATION values (BCOR_ means barcode rotation) */
00788 #define TWBCOR_ROT0   0
00789 #define TWBCOR_ROT90  1
00790 #define TWBCOR_ROT180 2
00791 #define TWBCOR_ROT270 3
00792 #define TWBCOR_ROTX   4
00793 
00794 /* Added 1.8 */
00795 /* ACAP_AUDIOFILEFORMAT values (AF_ means audio format) */
00796 #define TWAF_WAV      0
00797 #define TWAF_AIFF     1
00798 #define TWAF_AU       3
00799 #define TWAF_SND      4
00800 
00801 /* CAP_ALARMS values (AL_ means alarms) */
00802 #define TWAL_ALARM          0
00803 #define TWAL_FEEDERERROR    1
00804 #define TWAL_FEEDERWARNING  2
00805 #define TWAL_BARCODE        3
00806 #define TWAL_DOUBLEFEED     4
00807 #define TWAL_JAM            5
00808 #define TWAL_PATCHCODE      6
00809 #define TWAL_POWER          7
00810 #define TWAL_SKEW           8
00811 
00812 /* CAP_CLEARBUFFERS values (CB_ means clear buffers) */
00813 #define TWCB_AUTO           0
00814 #define TWCB_CLEAR          1
00815 #define TWCB_NOCLEAR        2
00816 
00817 /* CAP_DEVICEEVENT values (DE_ means device event) */
00818 #define TWDE_CUSTOMEVENTS           0x8000
00819 #define TWDE_CHECKAUTOMATICCAPTURE  0
00820 #define TWDE_CHECKBATTERY           1
00821 #define TWDE_CHECKDEVICEONLINE      2
00822 #define TWDE_CHECKFLASH             3
00823 #define TWDE_CHECKPOWERSUPPLY       4
00824 #define TWDE_CHECKRESOLUTION        5
00825 #define TWDE_DEVICEADDED            6
00826 #define TWDE_DEVICEOFFLINE          7
00827 #define TWDE_DEVICEREADY            8
00828 #define TWDE_DEVICEREMOVED          9
00829 #define TWDE_IMAGECAPTURED          10
00830 #define TWDE_IMAGEDELETED           11
00831 #define TWDE_PAPERDOUBLEFEED        12
00832 #define TWDE_PAPERJAM               13
00833 #define TWDE_LAMPFAILURE            14
00834 #define TWDE_POWERSAVE              15
00835 #define TWDE_POWERSAVENOTIFY        16
00836 
00837 /* CAP_FEEDERALIGNMENT values (FA_ means feeder alignment) */
00838 #define TWFA_NONE   0
00839 #define TWFA_LEFT   1
00840 #define TWFA_CENTER 2
00841 #define TWFA_RIGHT  3
00842 
00843 /* CAP_FEEDERORDER values (FO_ means feeder order) */
00844 #define TWFO_FIRSTPAGEFIRST 0
00845 #define TWFO_LASTPAGEFIRST  1
00846 
00847 /* CAP_FILESYSTEM values (FS_ means file system) */
00848 #define TWFS_FILESYSTEM       0
00849 #define TWFS_RECURSIVEDELETE  1
00850 
00851 /* CAP_POWERSUPPLY values (PS_ means power supply) */
00852 #define TWPS_EXTERNAL 0
00853 #define TWPS_BATTERY  1
00854 
00855 /* CAP_PRINTER values (PR_ means printer) */
00856 #define TWPR_IMPRINTERTOPBEFORE     0
00857 #define TWPR_IMPRINTERTOPAFTER      1
00858 #define TWPR_IMPRINTERBOTTOMBEFORE  2
00859 #define TWPR_IMPRINTERBOTTOMAFTER   3
00860 #define TWPR_ENDORSERTOPBEFORE      4
00861 #define TWPR_ENDORSERTOPAFTER       5
00862 #define TWPR_ENDORSERBOTTOMBEFORE   6
00863 #define TWPR_ENDORSERBOTTOMAFTER    7
00864 
00865 /* CAP_PRINTERMODE values (PM_ means printer mode) */
00866 #define TWPM_SINGLESTRING     0
00867 #define TWPM_MULTISTRING      1
00868 #define TWPM_COMPOUNDSTRING   2
00869 
00870 /* ICAP_BARCODESEARCHMODE values (TWBD_ means search) */
00871 #define TWBD_HORZ     0
00872 #define TWBD_VERT     1
00873 #define TWBD_HORZVERT 2
00874 #define TWBD_VERTHORZ 3
00875 
00876 /* ICAP_FLASHUSED2 values (FL_ means flash) */
00877 #define TWFL_NONE     0
00878 #define TWFL_OFF      1
00879 #define TWFL_ON       2
00880 #define TWFL_AUTO     3
00881 #define TWFL_REDEYE   4
00882 
00883 /* ICAP_FLIPROTATION values (FR_ means flip rotation) */
00884 #define TWFR_BOOK     0
00885 #define TWFR_FANFOLD  1
00886 
00887 /* ICAP_IMAGEFILTER values (IF_ means image filter) */
00888 #define TWIF_NONE     0
00889 #define TWIF_AUTO     1
00890 #define TWIF_LOWPASS  2
00891 #define TWIF_BANDPASS 3
00892 #define TWIF_HIGHPASS 4
00893 #define TWIF_TEXT     TWIF_BANDPASS
00894 #define TWIF_FINELINE TWIF_HIGHPASS
00895 
00896 /* ICAP_NOISEFILTER values (NF_ means noise filter) */
00897 #define TWNF_NONE         0
00898 #define TWNF_AUTO         1
00899 #define TWNF_LONEPIXEL    2
00900 #define TWNF_MAJORITYRULE 3
00901 
00902 /* ICAP_OVERSCAN values (OV_ means overscan) */
00903 #define TWOV_NONE       0
00904 #define TWOV_AUTO       1
00905 #define TWOV_TOPBOTTOM  2
00906 #define TWOV_LEFTRIGHT  3
00907 #define TWOV_ALL        4
00908 
00909 /* TW_FILESYSTEM.FileType values (FT_ means file type) */
00910 #define TWFY_CAMERA         0
00911 #define TWFY_CAMERATOP      1
00912 #define TWFY_CAMERABOTTOM   2
00913 #define TWFY_CAMERAPREVIEW  3
00914 #define TWFY_DOMAIN         4
00915 #define TWFY_HOST           5
00916 #define TWFY_DIRECTORY      6
00917 #define TWFY_IMAGE          7
00918 #define TWFY_UNKNOWN        8
00919 
00920 /****************************************************************************
00921  * Country Constants                                                        *
00922  ****************************************************************************/
00923 
00924 #define TWCY_AFGHANISTAN   1001
00925 #define TWCY_ALGERIA        213
00926 #define TWCY_AMERICANSAMOA  684
00927 #define TWCY_ANDORRA        033
00928 #define TWCY_ANGOLA        1002
00929 #define TWCY_ANGUILLA      8090
00930 #define TWCY_ANTIGUA       8091
00931 #define TWCY_ARGENTINA       54
00932 #define TWCY_ARUBA          297
00933 #define TWCY_ASCENSIONI     247
00934 #define TWCY_AUSTRALIA       61
00935 #define TWCY_AUSTRIA         43
00936 #define TWCY_BAHAMAS       8092
00937 #define TWCY_BAHRAIN        973
00938 #define TWCY_BANGLADESH     880
00939 #define TWCY_BARBADOS      8093
00940 #define TWCY_BELGIUM         32
00941 #define TWCY_BELIZE         501
00942 #define TWCY_BENIN          229
00943 #define TWCY_BERMUDA       8094
00944 #define TWCY_BHUTAN        1003
00945 #define TWCY_BOLIVIA        591
00946 #define TWCY_BOTSWANA       267
00947 #define TWCY_BRITAIN          6
00948 #define TWCY_BRITVIRGINIS  8095
00949 #define TWCY_BRAZIL          55
00950 #define TWCY_BRUNEI         673
00951 #define TWCY_BULGARIA       359
00952 #define TWCY_BURKINAFASO   1004
00953 #define TWCY_BURMA         1005
00954 #define TWCY_BURUNDI       1006
00955 #define TWCY_CAMAROON       237
00956 #define TWCY_CANADA           2
00957 #define TWCY_CAPEVERDEIS    238
00958 #define TWCY_CAYMANIS      8096
00959 #define TWCY_CENTRALAFREP  1007
00960 #define TWCY_CHAD          1008
00961 #define TWCY_CHILE           56
00962 #define TWCY_CHINA           86
00963 #define TWCY_CHRISTMASIS   1009
00964 #define TWCY_COCOSIS       1009
00965 #define TWCY_COLOMBIA        57
00966 #define TWCY_COMOROS       1010
00967 #define TWCY_CONGO         1011
00968 #define TWCY_COOKIS        1012
00969 #define TWCY_COSTARICA     506
00970 #define TWCY_CUBA           005
00971 #define TWCY_CYPRUS         357
00972 #define TWCY_CZECHOSLOVAKIA  42
00973 #define TWCY_DENMARK         45
00974 #define TWCY_DJIBOUTI      1013
00975 #define TWCY_DOMINICA      8097
00976 #define TWCY_DOMINCANREP   8098
00977 #define TWCY_EASTERIS      1014
00978 #define TWCY_ECUADOR        593
00979 #define TWCY_EGYPT           20
00980 #define TWCY_ELSALVADOR     503
00981 #define TWCY_EQGUINEA      1015
00982 #define TWCY_ETHIOPIA       251
00983 #define TWCY_FALKLANDIS    1016
00984 #define TWCY_FAEROEIS       298
00985 #define TWCY_FIJIISLANDS    679
00986 #define TWCY_FINLAND        358
00987 #define TWCY_FRANCE          33
00988 #define TWCY_FRANTILLES     596
00989 #define TWCY_FRGUIANA       594
00990 #define TWCY_FRPOLYNEISA    689
00991 #define TWCY_FUTANAIS      1043
00992 #define TWCY_GABON          241
00993 #define TWCY_GAMBIA         220
00994 #define TWCY_GERMANY         49
00995 #define TWCY_GHANA          233
00996 #define TWCY_GIBRALTER      350
00997 #define TWCY_GREECE          30
00998 #define TWCY_GREENLAND      299
00999 #define TWCY_GRENADA       8099
01000 #define TWCY_GRENEDINES    8015
01001 #define TWCY_GUADELOUPE     590
01002 #define TWCY_GUAM           671
01003 #define TWCY_GUANTANAMOBAY 5399
01004 #define TWCY_GUATEMALA      502
01005 #define TWCY_GUINEA         224
01006 #define TWCY_GUINEABISSAU  1017
01007 #define TWCY_GUYANA         592
01008 #define TWCY_HAITI          509
01009 #define TWCY_HONDURAS       504
01010 #define TWCY_HONGKONG      852
01011 #define TWCY_HUNGARY         36
01012 #define TWCY_ICELAND        354
01013 #define TWCY_INDIA           91
01014 #define TWCY_INDONESIA       62
01015 #define TWCY_IRAN            98
01016 #define TWCY_IRAQ           964
01017 #define TWCY_IRELAND        353
01018 #define TWCY_ISRAEL         972
01019 #define TWCY_ITALY           39
01020 #define TWCY_IVORYCOAST    225
01021 #define TWCY_JAMAICA       8010
01022 #define TWCY_JAPAN           81
01023 #define TWCY_JORDAN         962
01024 #define TWCY_KENYA          254
01025 #define TWCY_KIRIBATI      1018
01026 #define TWCY_KOREA           82
01027 #define TWCY_KUWAIT         965
01028 #define TWCY_LAOS          1019
01029 #define TWCY_LEBANON       1020
01030 #define TWCY_LIBERIA        231
01031 #define TWCY_LIBYA          218
01032 #define TWCY_LIECHTENSTEIN   41
01033 #define TWCY_LUXENBOURG     352
01034 #define TWCY_MACAO          853
01035 #define TWCY_MADAGASCAR    1021
01036 #define TWCY_MALAWI         265
01037 #define TWCY_MALAYSIA        60
01038 #define TWCY_MALDIVES       960
01039 #define TWCY_MALI          1022
01040 #define TWCY_MALTA          356
01041 #define TWCY_MARSHALLIS     692
01042 #define TWCY_MAURITANIA    1023
01043 #define TWCY_MAURITIUS      230
01044 #define TWCY_MEXICO           3
01045 #define TWCY_MICRONESIA     691
01046 #define TWCY_MIQUELON       508
01047 #define TWCY_MONACO          33
01048 #define TWCY_MONGOLIA      1024
01049 #define TWCY_MONTSERRAT    8011
01050 #define TWCY_MOROCCO        212
01051 #define TWCY_MOZAMBIQUE    1025
01052 #define TWCY_NAMIBIA        264
01053 #define TWCY_NAURU         1026
01054 #define TWCY_NEPAL          977
01055 #define TWCY_NETHERLANDS     31
01056 #define TWCY_NETHANTILLES   599
01057 #define TWCY_NEVIS         8012
01058 #define TWCY_NEWCALEDONIA   687
01059 #define TWCY_NEWZEALAND      64
01060 #define TWCY_NICARAGUA      505
01061 #define TWCY_NIGER          227
01062 #define TWCY_NIGERIA        234
01063 #define TWCY_NIUE          1027
01064 #define TWCY_NORFOLKI      1028
01065 #define TWCY_NORWAY          47
01066 #define TWCY_OMAN           968
01067 #define TWCY_PAKISTAN        92
01068 #define TWCY_PALAU         1029
01069 #define TWCY_PANAMA         507
01070 #define TWCY_PARAGUAY       595
01071 #define TWCY_PERU            51
01072 #define TWCY_PHILLIPPINES    63
01073 #define TWCY_PITCAIRNIS    1030
01074 #define TWCY_PNEWGUINEA     675
01075 #define TWCY_POLAND          48
01076 #define TWCY_PORTUGAL       351
01077 #define TWCY_QATAR          974
01078 #define TWCY_REUNIONI      1031
01079 #define TWCY_ROMANIA         40
01080 #define TWCY_RWANDA         250
01081 #define TWCY_SAIPAN         670
01082 #define TWCY_SANMARINO       39
01083 #define TWCY_SAOTOME       1033
01084 #define TWCY_SAUDIARABIA    966
01085 #define TWCY_SENEGAL        221
01086 #define TWCY_SEYCHELLESIS  1034
01087 #define TWCY_SIERRALEONE   1035
01088 #define TWCY_SINGAPORE       65
01089 #define TWCY_SOLOMONIS     1036
01090 #define TWCY_SOMALI        1037
01091 #define TWCY_SOUTHAFRICA    27
01092 #define TWCY_SPAIN           34
01093 #define TWCY_SRILANKA        94
01094 #define TWCY_STHELENA      1032
01095 #define TWCY_STKITTS       8013
01096 #define TWCY_STLUCIA       8014
01097 #define TWCY_STPIERRE       508
01098 #define TWCY_STVINCENT     8015
01099 #define TWCY_SUDAN         1038
01100 #define TWCY_SURINAME       597
01101 #define TWCY_SWAZILAND      268
01102 #define TWCY_SWEDEN          46
01103 #define TWCY_SWITZERLAND     41
01104 #define TWCY_SYRIA         1039
01105 #define TWCY_TAIWAN         886
01106 #define TWCY_TANZANIA       255
01107 #define TWCY_THAILAND        66
01108 #define TWCY_TOBAGO        8016
01109 #define TWCY_TOGO           228
01110 #define TWCY_TONGAIS        676
01111 #define TWCY_TRINIDAD      8016
01112 #define TWCY_TUNISIA        216
01113 #define TWCY_TURKEY          90
01114 #define TWCY_TURKSCAICOS   8017
01115 #define TWCY_TUVALU        1040
01116 #define TWCY_UGANDA         256
01117 #define TWCY_USSR             7
01118 #define TWCY_UAEMIRATES     971
01119 #define TWCY_UNITEDKINGDOM   44
01120 #define TWCY_USA              1
01121 #define TWCY_URUGUAY        598
01122 #define TWCY_VANUATU       1041
01123 #define TWCY_VATICANCITY     39
01124 #define TWCY_VENEZUELA       58
01125 #define TWCY_WAKE          1042
01126 #define TWCY_WALLISIS      1043
01127 #define TWCY_WESTERNSAHARA 1044
01128 #define TWCY_WESTERNSAMOA  1045
01129 #define TWCY_YEMEN         1046
01130 #define TWCY_YUGOSLAVIA      38
01131 #define TWCY_ZAIRE          243
01132 #define TWCY_ZAMBIA         260
01133 #define TWCY_ZIMBABWE       263
01134 /* Added for 1.8 */
01135 #define TWCY_ALBANIA        355
01136 #define TWCY_ARMENIA        374
01137 #define TWCY_AZERBAIJAN     994
01138 #define TWCY_BELARUS        375
01139 #define TWCY_BOSNIAHERZGO   387
01140 #define TWCY_CAMBODIA       855
01141 #define TWCY_CROATIA        385
01142 #define TWCY_CZECHREPUBLIC  420
01143 #define TWCY_DIEGOGARCIA    246
01144 #define TWCY_ERITREA        291
01145 #define TWCY_ESTONIA        372
01146 #define TWCY_GEORGIA        995
01147 #define TWCY_LATVIA         371
01148 #define TWCY_LESOTHO        266
01149 #define TWCY_LITHUANIA      370
01150 #define TWCY_MACEDONIA      389
01151 #define TWCY_MAYOTTEIS      269
01152 #define TWCY_MOLDOVA        373
01153 #define TWCY_MYANMAR        95
01154 #define TWCY_NORTHKOREA     850
01155 #define TWCY_PUERTORICO     787
01156 #define TWCY_RUSSIA         7
01157 #define TWCY_SERBIA         381
01158 #define TWCY_SLOVAKIA       421
01159 #define TWCY_SLOVENIA       386
01160 #define TWCY_SOUTHKOREA     82
01161 #define TWCY_UKRAINE        380
01162 #define TWCY_USVIRGINIS     340
01163 #define TWCY_VIETNAM        84
01164 
01165 /****************************************************************************
01166  * Language Constants                                                       *
01167  ****************************************************************************/
01168 
01169 #define TWLG_DAN              0 /* Danish                 */
01170 #define TWLG_DUT              1 /* Dutch                  */
01171 #define TWLG_ENG              2 /* International English  */
01172 #define TWLG_FCF              3 /* French Canadian        */
01173 #define TWLG_FIN              4 /* Finnish                */
01174 #define TWLG_FRN              5 /* French                 */
01175 #define TWLG_GER              6 /* German                 */
01176 #define TWLG_ICE              7 /* Icelandic              */
01177 #define TWLG_ITN              8 /* Italian                */
01178 #define TWLG_NOR              9 /* Norwegian              */
01179 #define TWLG_POR             10 /* Portuguese             */
01180 #define TWLG_SPA             11 /* Spanish                */
01181 #define TWLG_SWE             12 /* Swedish                */
01182 #define TWLG_USA             13 /* U.S. English           */
01183 /* Added for 1.8 */
01184 #define TWLG_USERLOCALE           -1
01185 #define TWLG_AFRIKAANS            14
01186 #define TWLG_ALBANIA              15
01187 #define TWLG_ARABIC               16
01188 #define TWLG_ARABIC_ALGERIA       17
01189 #define TWLG_ARABIC_BAHRAIN       18
01190 #define TWLG_ARABIC_EGYPT         19
01191 #define TWLG_ARABIC_IRAQ          20
01192 #define TWLG_ARABIC_JORDAN        21
01193 #define TWLG_ARABIC_KUWAIT        22
01194 #define TWLG_ARABIC_LEBANON       23
01195 #define TWLG_ARABIC_LIBYA         24
01196 #define TWLG_ARABIC_MOROCCO       25
01197 #define TWLG_ARABIC_OMAN          26
01198 #define TWLG_ARABIC_QATAR         27
01199 #define TWLG_ARABIC_SAUDIARABIA   28
01200 #define TWLG_ARABIC_SYRIA         29
01201 #define TWLG_ARABIC_TUNISIA       30
01202 #define TWLG_ARABIC_UAE           31 /* United Arabic Emirates */
01203 #define TWLG_ARABIC_YEMEN         32
01204 #define TWLG_BASQUE               33
01205 #define TWLG_BYELORUSSIAN         34
01206 #define TWLG_BULGARIAN            35
01207 #define TWLG_CATALAN              36
01208 #define TWLG_CHINESE              37
01209 #define TWLG_CHINESE_HONGKONG     38
01210 #define TWLG_CHINESE_PRC          39 /* People's Republic of China */
01211 #define TWLG_CHINESE_SINGAPORE    40
01212 #define TWLG_CHINESE_SIMPLIFIED   41
01213 #define TWLG_CHINESE_TAIWAN       42
01214 #define TWLG_CHINESE_TRADITIONAL  43
01215 #define TWLG_CROATIA              44
01216 #define TWLG_CZECH                45
01217 #define TWLG_DANISH               TWLG_DAN
01218 #define TWLG_DUTCH                TWLG_DUT
01219 #define TWLG_DUTCH_BELGIAN        46
01220 #define TWLG_ENGLISH              TWLG_ENG
01221 #define TWLG_ENGLISH_AUSTRALIAN   47
01222 #define TWLG_ENGLISH_CANADIAN     48
01223 #define TWLG_ENGLISH_IRELAND      49
01224 #define TWLG_ENGLISH_NEWZEALAND   50
01225 #define TWLG_ENGLISH_SOUTHAFRICA  51
01226 #define TWLG_ENGLISH_UK           52
01227 #define TWLG_ENGLISH_USA          TWLG_USA
01228 #define TWLG_ESTONIAN             53
01229 #define TWLG_FAEROESE             54
01230 #define TWLG_FARSI                55
01231 #define TWLG_FINNISH              TWLG_FIN
01232 #define TWLG_FRENCH               TWLG_FRN
01233 #define TWLG_FRENCH_BELGIAN       56
01234 #define TWLG_FRENCH_CANADIAN      TWLG_FCF
01235 #define TWLG_FRENCH_LUXEMBOURG    57
01236 #define TWLG_FRENCH_SWISS         58
01237 #define TWLG_GERMAN               TWLG_GER
01238 #define TWLG_GERMAN_AUSTRIAN      59
01239 #define TWLG_GERMAN_LUXEMBOURG    60
01240 #define TWLG_GERMAN_LIECHTENSTEIN 61
01241 #define TWLG_GERMAN_SWISS         62
01242 #define TWLG_GREEK                63
01243 #define TWLG_HEBREW               64
01244 #define TWLG_HUNGARIAN            65
01245 #define TWLG_ICELANDIC            TWLG_ICE
01246 #define TWLG_INDONESIAN           66
01247 #define TWLG_ITALIAN              TWLG_ITN
01248 #define TWLG_ITALIAN_SWISS        67
01249 #define TWLG_JAPANESE             68
01250 #define TWLG_KOREAN               69
01251 #define TWLG_KOREAN_JOHAB         70
01252 #define TWLG_LATVIAN              71
01253 #define TWLG_LITHUANIAN           72
01254 #define TWLG_NORWEGIAN            TWLG_NOR
01255 #define TWLG_NORWEGIAN_BOKMAL     73
01256 #define TWLG_NORWEGIAN_NYNORSK    74
01257 #define TWLG_POLISH               75
01258 #define TWLG_PORTUGUESE           TWLG_POR
01259 #define TWLG_PORTUGUESE_BRAZIL    76
01260 #define TWLG_ROMANIAN             77
01261 #define TWLG_RUSSIAN              78
01262 #define TWLG_SERBIAN_LATIN        79
01263 #define TWLG_SLOVAK               80
01264 #define TWLG_SLOVENIAN            81
01265 #define TWLG_SPANISH              TWLG_SPA
01266 #define TWLG_SPANISH_MEXICAN      82
01267 #define TWLG_SPANISH_MODERN       83
01268 #define TWLG_SWEDISH              TWLG_SWE
01269 #define TWLG_THAI                 84
01270 #define TWLG_TURKISH              85
01271 #define TWLG_UKRANIAN             86
01272 /* More stuff added for 1.8 */
01273 #define TWLG_ASSAMESE             87
01274 #define TWLG_BENGALI              88
01275 #define TWLG_BIHARI               89
01276 #define TWLG_BODO                 90
01277 #define TWLG_DOGRI                91
01278 #define TWLG_GUJARATI             92
01279 #define TWLG_HARYANVI             93
01280 #define TWLG_HINDI                94
01281 #define TWLG_KANNADA              95
01282 #define TWLG_KASHMIRI             96
01283 #define TWLG_MALAYALAM            97
01284 #define TWLG_MARATHI              98
01285 #define TWLG_MARWARI              99
01286 #define TWLG_MEGHALAYAN          100
01287 #define TWLG_MIZO                101
01288 #define TWLG_NAGA                102
01289 #define TWLG_ORISSI              103
01290 #define TWLG_PUNJABI             104
01291 #define TWLG_PUSHTU              105
01292 #define TWLG_SERBIAN_CYRILLIC    106
01293 #define TWLG_SIKKIMI             107
01294 #define TWLG_SWEDISH_FINLAND     108
01295 #define TWLG_TAMIL               109
01296 #define TWLG_TELUGU              110
01297 #define TWLG_TRIPURI             111
01298 #define TWLG_URDU                112
01299 #define TWLG_VIETNAMESE          113
01300 
01301 /****************************************************************************
01302  * Data Groups                                                              *
01303  ****************************************************************************/
01304 
01305 /* More Data Groups may be added in the future.
01306  * Possible candidates include text, vector graphics, sound, etc.
01307  * NOTE: Data Group constants must be powers of 2 as they are used
01308  *       as bitflags when Application asks DSM to present a list of DSs.
01309  */
01310 
01311 #define DG_CONTROL          0x0001L /* data pertaining to control       */
01312 #define DG_IMAGE            0x0002L /* data pertaining to raster images */
01313 /* Added 1.8 */
01314 #define DG_AUDIO            0x0004L /* data pertaining to audio */
01315 
01316 /****************************************************************************
01317  * Data Argument Types                                                      *
01318  ****************************************************************************/
01319 
01320 /*  SDH - 03/23/95 - WATCH                                                  */
01321 /*  The thunker requires knowledge about size of data being passed in the   */
01322 /*  lpData parameter to DS_Entry (which is not readily available due to     */
01323 /*  type LPVOID.  Thus, we key off the DAT_ argument to determine the size. */
01324 /*  This has a couple implications:                                         */
01325 /*  1) Any additional DAT_ features require modifications to the thunk code */
01326 /*     for thunker support.                                                 */
01327 /*  2) Any applications which use the custom capabilities are not supported */
01328 /*     under thunking since we have no way of knowing what size data (if    */
01329 /*     any) is being passed.                                                */
01330 
01331 #define DAT_NULL            0x0000 /* No data or structure. */
01332 #define DAT_CUSTOMBASE      0x8000 /* Base of custom DATs.  */
01333 
01334 /* Data Argument Types for the DG_CONTROL Data Group. */
01335 #define DAT_CAPABILITY      0x0001 /* TW_CAPABILITY                        */
01336 #define DAT_EVENT           0x0002 /* TW_EVENT                             */
01337 #define DAT_IDENTITY        0x0003 /* TW_IDENTITY                          */
01338 #define DAT_PARENT          0x0004 /* TW_HANDLE, application win handle in Windows */
01339 #define DAT_PENDINGXFERS    0x0005 /* TW_PENDINGXFERS                      */
01340 #define DAT_SETUPMEMXFER    0x0006 /* TW_SETUPMEMXFER                      */
01341 #define DAT_SETUPFILEXFER   0x0007 /* TW_SETUPFILEXFER                     */
01342 #define DAT_STATUS          0x0008 /* TW_STATUS                            */
01343 #define DAT_USERINTERFACE   0x0009 /* TW_USERINTERFACE                     */
01344 #define DAT_XFERGROUP       0x000a /* TW_UINT32                            */
01345 /*  SDH - 03/21/95 - TWUNK                                         */
01346 /*  Additional message required for thunker to request the special */
01347 /*  identity information.                                          */
01348 #define DAT_TWUNKIDENTITY   0x000b /* TW_TWUNKIDENTITY                     */
01349 #define DAT_CUSTOMDSDATA    0x000c /* TW_CUSTOMDSDATA.                     */
01350 /* Added 1.8 */
01351 #define DAT_DEVICEEVENT     0x000d /* TW_DEVICEEVENT                       */
01352 #define DAT_FILESYSTEM      0x000e /* TW_FILESYSTEM                        */
01353 #define DAT_PASSTHRU        0x000f /* TW_PASSTHRU                          */
01354 
01355 /* Data Argument Types for the DG_IMAGE Data Group. */
01356 #define DAT_IMAGEINFO       0x0101 /* TW_IMAGEINFO                         */
01357 #define DAT_IMAGELAYOUT     0x0102 /* TW_IMAGELAYOUT                       */
01358 #define DAT_IMAGEMEMXFER    0x0103 /* TW_IMAGEMEMXFER                      */
01359 #define DAT_IMAGENATIVEXFER 0x0104 /* TW_UINT32 loword is hDIB, PICHandle  */
01360 #define DAT_IMAGEFILEXFER   0x0105 /* Null data                            */
01361 #define DAT_CIECOLOR        0x0106 /* TW_CIECOLOR                          */
01362 #define DAT_GRAYRESPONSE    0x0107 /* TW_GRAYRESPONSE                      */
01363 #define DAT_RGBRESPONSE     0x0108 /* TW_RGBRESPONSE                       */
01364 #define DAT_JPEGCOMPRESSION 0x0109 /* TW_JPEGCOMPRESSION                   */
01365 #define DAT_PALETTE8        0x010a /* TW_PALETTE8                          */
01366 #define DAT_EXTIMAGEINFO    0x010b /* TW_EXTIMAGEINFO -- for 1.7 Spec.     */
01367 
01368 /* Added 1.8 */
01369 /* Data Argument Types for the DG_AUDIO Data Group. */
01370 #define DAT_AUDIOFILEXFER   0x0201 /* Null data                            */
01371 #define DAT_AUDIOINFO       0x0202 /* TW_AUDIOINFO                         */
01372 #define DAT_AUDIONATIVEXFER 0x0203 /* TW_UINT32 handle to WAV, (AIFF Mac)  */
01373 
01374 /****************************************************************************
01375  * Messages                                                                 *
01376  ****************************************************************************/
01377 
01378 /* All message constants are unique.
01379  * Messages are grouped according to which DATs they are used with.*/
01380 
01381 #define MSG_NULL         0x0000 /* Used in TW_EVENT structure               */
01382 #define MSG_CUSTOMBASE   0x8000 /* Base of custom messages                  */
01383 
01384 /* Generic messages may be used with any of several DATs.                   */
01385 #define MSG_GET          0x0001 /* Get one or more values                   */
01386 #define MSG_GETCURRENT   0x0002 /* Get current value                        */
01387 #define MSG_GETDEFAULT   0x0003 /* Get default (e.g. power up) value        */
01388 #define MSG_GETFIRST     0x0004 /* Get first of a series of items, e.g. DSs */
01389 #define MSG_GETNEXT      0x0005 /* Iterate through a series of items.       */
01390 #define MSG_SET          0x0006 /* Set one or more values                   */
01391 #define MSG_RESET        0x0007 /* Set current value to default value       */
01392 #define MSG_QUERYSUPPORT 0x0008 /* Get supported operations on the cap.     */
01393 
01394 /* Messages used with DAT_NULL                                              */
01395 #define MSG_XFERREADY    0x0101 /* The data source has data ready           */
01396 #define MSG_CLOSEDSREQ   0x0102 /* Request for Application. to close DS             */
01397 #define MSG_CLOSEDSOK    0x0103 /* Tell the Application. to save the state.         */
01398 /* Added 1.8 */
01399 #define MSG_DEVICEEVENT  0X0104 /* Some event has taken place               */
01400 
01401 /* Messages used with a pointer to a DAT_STATUS structure                   */
01402 #define MSG_CHECKSTATUS  0x0201 /* Get status information                   */
01403 
01404 /* Messages used with a pointer to DAT_PARENT data                          */
01405 #define MSG_OPENDSM      0x0301 /* Open the DSM                             */
01406 #define MSG_CLOSEDSM     0x0302 /* Close the DSM                            */
01407 
01408 /* Messages used with a pointer to a DAT_IDENTITY structure                 */
01409 #define MSG_OPENDS       0x0401 /* Open a data source                       */
01410 #define MSG_CLOSEDS      0x0402 /* Close a data source                      */
01411 #define MSG_USERSELECT   0x0403 /* Put up a dialog of all DS                */
01412 
01413 /* Messages used with a pointer to a DAT_USERINTERFACE structure            */
01414 #define MSG_DISABLEDS    0x0501 /* Disable data transfer in the DS          */
01415 #define MSG_ENABLEDS     0x0502 /* Enable data transfer in the DS           */
01416 #define MSG_ENABLEDSUIONLY  0x0503  /* Enable for saving DS state only.     */
01417 
01418 /* Messages used with a pointer to a DAT_EVENT structure                    */
01419 #define MSG_PROCESSEVENT 0x0601
01420 
01421 /* Messages used with a pointer to a DAT_PENDINGXFERS structure             */
01422 #define MSG_ENDXFER      0x0701
01423 
01424 /* Added 1.8 */
01425 /* Messages used with a pointer to a DAT_FILESYSTEM structure               */
01426 #define MSG_CHANGEDIRECTORY   0x0801
01427 #define MSG_CREATEDIRECTORY   0x0802
01428 #define MSG_DELETE            0x0803
01429 #define MSG_FORMATMEDIA       0x0804
01430 #define MSG_GETCLOSE          0x0805
01431 #define MSG_GETFIRSTFILE      0x0806
01432 #define MSG_GETINFO           0x0807
01433 #define MSG_GETNEXTFILE       0x0808
01434 #define MSG_RENAME            0x0809
01435 
01436 /* Messages used with a pointer to a DAT_PASSTHRU structure                 */
01437 #define MSG_PASSTHRU          0x0901
01438 
01439 /****************************************************************************
01440  * Capabilities                                                             *
01441  ****************************************************************************/
01442 
01443 #define CAP_CUSTOMBASE          0x8000 /* Base of custom capabilities */
01444 
01445 /* all data sources are REQUIRED to support these caps */
01446 #define CAP_XFERCOUNT           0x0001
01447 
01448 /* image data sources are REQUIRED to support these caps */
01449 #define ICAP_COMPRESSION        0x0100
01450 #define ICAP_PIXELTYPE          0x0101
01451 #define ICAP_UNITS              0x0102 /* default is TWUN_INCHES */
01452 #define ICAP_XFERMECH           0x0103
01453 
01454 /* all data sources MAY support these caps */
01455 #define CAP_AUTHOR                  0x1000
01456 #define CAP_CAPTION                 0x1001
01457 #define CAP_FEEDERENABLED           0x1002
01458 #define CAP_FEEDERLOADED            0x1003
01459 #define CAP_TIMEDATE                0x1004
01460 #define CAP_SUPPORTEDCAPS           0x1005
01461 #define CAP_EXTENDEDCAPS            0x1006
01462 #define CAP_AUTOFEED                0x1007
01463 #define CAP_CLEARPAGE               0x1008
01464 #define CAP_FEEDPAGE                0x1009
01465 #define CAP_REWINDPAGE              0x100a
01466 #define CAP_INDICATORS              0x100b   /* Added 1.1 */
01467 #define CAP_SUPPORTEDCAPSEXT        0x100c   /* Added 1.6 */
01468 #define CAP_PAPERDETECTABLE         0x100d   /* Added 1.6 */
01469 #define CAP_UICONTROLLABLE          0x100e   /* Added 1.6 */
01470 #define CAP_DEVICEONLINE            0x100f   /* Added 1.6 */
01471 #define CAP_AUTOSCAN                0x1010   /* Added 1.6 */
01472 #define CAP_THUMBNAILSENABLED       0x1011   /* Added 1.7 */
01473 #define CAP_DUPLEX                  0x1012   /* Added 1.7 */
01474 #define CAP_DUPLEXENABLED           0x1013   /* Added 1.7 */
01475 #define CAP_ENABLEDSUIONLY          0x1014   /* Added 1.7 */
01476 #define CAP_CUSTOMDSDATA            0x1015   /* Added 1.7 */
01477 #define CAP_ENDORSER                0x1016   /* Added 1.7 */
01478 #define CAP_JOBCONTROL              0x1017   /* Added 1.7 */
01479 #define CAP_ALARMS                  0x1018   /* Added 1.8 */
01480 #define CAP_ALARMVOLUME             0x1019   /* Added 1.8 */
01481 #define CAP_AUTOMATICCAPTURE        0x101a   /* Added 1.8 */
01482 #define CAP_TIMEBEFOREFIRSTCAPTURE  0x101b   /* Added 1.8 */
01483 #define CAP_TIMEBETWEENCAPTURES     0x101c   /* Added 1.8 */
01484 #define CAP_CLEARBUFFERS            0x101d   /* Added 1.8 */
01485 #define CAP_MAXBATCHBUFFERS         0x101e   /* Added 1.8 */
01486 #define CAP_DEVICETIMEDATE          0x101f   /* Added 1.8 */
01487 #define CAP_POWERSUPPLY             0x1020   /* Added 1.8 */
01488 #define CAP_CAMERAPREVIEWUI         0x1021   /* Added 1.8 */
01489 #define CAP_DEVICEEVENT             0x1022   /* Added 1.8 */
01490 #define CAP_PAGEMULTIPLEACQUIRE     0x1023   /* Added 1.8 */
01491 #define CAP_SERIALNUMBER            0x1024   /* Added 1.8 */
01492 #define CAP_FILESYSTEM              0x1025   /* Added 1.8 */
01493 #define CAP_PRINTER                 0x1026   /* Added 1.8 */
01494 #define CAP_PRINTERENABLED          0x1027   /* Added 1.8 */
01495 #define CAP_PRINTERINDEX            0x1028   /* Added 1.8 */
01496 #define CAP_PRINTERMODE             0x1029   /* Added 1.8 */
01497 #define CAP_PRINTERSTRING           0x102a   /* Added 1.8 */
01498 #define CAP_PRINTERSUFFIX           0x102b   /* Added 1.8 */
01499 #define CAP_LANGUAGE                0x102c   /* Added 1.8 */
01500 #define CAP_FEEDERALIGNMENT         0x102d   /* Added 1.8 */
01501 #define CAP_FEEDERORDER             0x102e   /* Added 1.8 */
01502 #define CAP_PAPERBINDING            0x102f   /* Added 1.8 */
01503 #define CAP_REACQUIREALLOWED        0x1030   /* Added 1.8 */
01504 #define CAP_PASSTHRU                0x1031   /* Added 1.8 */
01505 #define CAP_BATTERYMINUTES          0x1032   /* Added 1.8 */
01506 #define CAP_BATTERYPERCENTAGE       0x1033   /* Added 1.8 */
01507 #define CAP_POWERDOWNTIME           0x1034   /* Added 1.8 */
01508 
01509 /* image data sources MAY support these caps */
01510 #define ICAP_AUTOBRIGHT                   0x1100
01511 #define ICAP_BRIGHTNESS                   0x1101
01512 #define ICAP_CONTRAST                     0x1103
01513 #define ICAP_CUSTHALFTONE                 0x1104
01514 #define ICAP_EXPOSURETIME                 0x1105
01515 #define ICAP_FILTER                       0x1106
01516 #define ICAP_FLASHUSED                    0x1107
01517 #define ICAP_GAMMA                        0x1108
01518 #define ICAP_HALFTONES                    0x1109
01519 #define ICAP_HIGHLIGHT                    0x110a
01520 #define ICAP_IMAGEFILEFORMAT              0x110c
01521 #define ICAP_LAMPSTATE                    0x110d
01522 #define ICAP_LIGHTSOURCE                  0x110e
01523 #define ICAP_ORIENTATION                  0x1110
01524 #define ICAP_PHYSICALWIDTH                0x1111
01525 #define ICAP_PHYSICALHEIGHT               0x1112
01526 #define ICAP_SHADOW                       0x1113
01527 #define ICAP_FRAMES                       0x1114
01528 #define ICAP_XNATIVERESOLUTION            0x1116
01529 #define ICAP_YNATIVERESOLUTION            0x1117
01530 #define ICAP_XRESOLUTION                  0x1118
01531 #define ICAP_YRESOLUTION                  0x1119
01532 #define ICAP_MAXFRAMES                    0x111a
01533 #define ICAP_TILES                        0x111b
01534 #define ICAP_BITORDER                     0x111c
01535 #define ICAP_CCITTKFACTOR                 0x111d
01536 #define ICAP_LIGHTPATH                    0x111e
01537 #define ICAP_PIXELFLAVOR                  0x111f
01538 #define ICAP_PLANARCHUNKY                 0x1120
01539 #define ICAP_ROTATION                     0x1121
01540 #define ICAP_SUPPORTEDSIZES               0x1122
01541 #define ICAP_THRESHOLD                    0x1123
01542 #define ICAP_XSCALING                     0x1124
01543 #define ICAP_YSCALING                     0x1125
01544 #define ICAP_BITORDERCODES                0x1126
01545 #define ICAP_PIXELFLAVORCODES             0x1127
01546 #define ICAP_JPEGPIXELTYPE                0x1128
01547 #define ICAP_TIMEFILL                     0x112a
01548 #define ICAP_BITDEPTH                     0x112b
01549 #define ICAP_BITDEPTHREDUCTION            0x112c  /* Added 1.5 */
01550 #define ICAP_UNDEFINEDIMAGESIZE           0x112d  /* Added 1.6 */
01551 #define ICAP_IMAGEDATASET                 0x112e  /* Added 1.7 */
01552 #define ICAP_EXTIMAGEINFO                 0x112f  /* Added 1.7 */
01553 #define ICAP_MINIMUMHEIGHT                0x1130  /* Added 1.7 */
01554 #define ICAP_MINIMUMWIDTH                 0x1131  /* Added 1.7 */
01555 #define ICAP_AUTODISCARDBLANKPAGES        0x1134  /* Added 1.8 */
01556 #define ICAP_FLIPROTATION                 0x1136  /* Added 1.8 */
01557 #define ICAP_BARCODEDETECTIONENABLED      0x1137  /* Added 1.8 */
01558 #define ICAP_SUPPORTEDBARCODETYPES        0x1138  /* Added 1.8 */
01559 #define ICAP_BARCODEMAXSEARCHPRIORITIES   0x1139  /* Added 1.8 */
01560 #define ICAP_BARCODESEARCHPRIORITIES      0x113a  /* Added 1.8 */
01561 #define ICAP_BARCODESEARCHMODE            0x113b  /* Added 1.8 */
01562 #define ICAP_BARCODEMAXRETRIES            0x113c  /* Added 1.8 */
01563 #define ICAP_BARCODETIMEOUT               0x113d  /* Added 1.8 */
01564 #define ICAP_ZOOMFACTOR                   0x113e  /* Added 1.8 */
01565 #define ICAP_PATCHCODEDETECTIONENABLED    0x113f  /* Added 1.8 */
01566 #define ICAP_SUPPORTEDPATCHCODETYPES      0x1140  /* Added 1.8 */
01567 #define ICAP_PATCHCODEMAXSEARCHPRIORITIES 0x1141  /* Added 1.8 */
01568 #define ICAP_PATCHCODESEARCHPRIORITIES    0x1142  /* Added 1.8 */
01569 #define ICAP_PATCHCODESEARCHMODE          0x1143  /* Added 1.8 */
01570 #define ICAP_PATCHCODEMAXRETRIES          0x1144  /* Added 1.8 */
01571 #define ICAP_PATCHCODETIMEOUT             0x1145  /* Added 1.8 */
01572 #define ICAP_FLASHUSED2                   0x1146  /* Added 1.8 */
01573 #define ICAP_IMAGEFILTER                  0x1147  /* Added 1.8 */
01574 #define ICAP_NOISEFILTER                  0x1148  /* Added 1.8 */
01575 #define ICAP_OVERSCAN                     0x1149  /* Added 1.8 */
01576 #define ICAP_AUTOMATICBORDERDETECTION     0x1150  /* Added 1.8 */
01577 #define ICAP_AUTOMATICDESKEW              0x1151  /* Added 1.8 */
01578 #define ICAP_AUTOMATICROTATE              0x1152  /* Added 1.8 */
01579 
01580 /* image data sources MAY support these audio caps */
01581 #define ACAP_AUDIOFILEFORMAT    0x1201  /* Added 1.8 */
01582 #define ACAP_XFERMECH           0x1202  /* Added 1.8 */
01583 
01584 /* ----------------------------------------------------------------------- *\
01585 
01586   Version 1.7:      Following is Extended Image Info Attributes.
01587   July 1997
01588   KHL
01589 
01590 \* ----------------------------------------------------------------------- */
01591 
01592 #define TWEI_BARCODEX               0x1200
01593 #define TWEI_BARCODEY               0x1201
01594 #define TWEI_BARCODETEXT            0x1202
01595 #define TWEI_BARCODETYPE            0x1203
01596 #define TWEI_DESHADETOP             0x1204
01597 #define TWEI_DESHADELEFT            0x1205
01598 #define TWEI_DESHADEHEIGHT          0x1206
01599 #define TWEI_DESHADEWIDTH           0x1207
01600 #define TWEI_DESHADESIZE            0x1208
01601 #define TWEI_SPECKLESREMOVED        0x1209
01602 #define TWEI_HORZLINEXCOORD         0x120A
01603 #define TWEI_HORZLINEYCOORD         0x120B
01604 #define TWEI_HORZLINELENGTH         0x120C
01605 #define TWEI_HORZLINETHICKNESS      0x120D
01606 #define TWEI_VERTLINEXCOORD         0x120E
01607 #define TWEI_VERTLINEYCOORD         0x120F
01608 #define TWEI_VERTLINELENGTH         0x1210
01609 #define TWEI_VERTLINETHICKNESS      0x1211
01610 #define TWEI_PATCHCODE              0x1212
01611 #define TWEI_ENDORSEDTEXT           0x1213
01612 #define TWEI_FORMCONFIDENCE         0x1214
01613 #define TWEI_FORMTEMPLATEMATCH      0x1215
01614 #define TWEI_FORMTEMPLATEPAGEMATCH  0x1216
01615 #define TWEI_FORMHORZDOCOFFSET      0x1217
01616 #define TWEI_FORMVERTDOCOFFSET      0x1218
01617 #define TWEI_BARCODECOUNT           0x1219
01618 #define TWEI_BARCODECONFIDENCE      0x121A
01619 #define TWEI_BARCODEROTATION        0x121B
01620 #define TWEI_BARCODETEXTLENGTH      0x121C
01621 #define TWEI_DESHADECOUNT           0x121D
01622 #define TWEI_DESHADEBLACKCOUNTOLD   0x121E
01623 #define TWEI_DESHADEBLACKCOUNTNEW   0x121F
01624 #define TWEI_DESHADEBLACKRLMIN      0x1220
01625 #define TWEI_DESHADEBLACKRLMAX      0x1221
01626 #define TWEI_DESHADEWHITECOUNTOLD   0x1222
01627 #define TWEI_DESHADEWHITECOUNTNEW   0x1223
01628 #define TWEI_DESHADEWHITERLMIN      0x1224
01629 #define TWEI_DESHADEWHITERLAVE      0x1225
01630 #define TWEI_DESHADEWHITERLMAX      0x1226
01631 #define TWEI_BLACKSPECKLESREMOVED   0x1227
01632 #define TWEI_WHITESPECKLESREMOVED   0x1228
01633 #define TWEI_HORZLINECOUNT          0x1229
01634 #define TWEI_VERTLINECOUNT          0x122A
01635 #define TWEI_DESKEWSTATUS           0x122B
01636 #define TWEI_SKEWORIGINALANGLE      0x122C
01637 #define TWEI_SKEWFINALANGLE         0x122D
01638 #define TWEI_SKEWCONFIDENCE         0x122E
01639 #define TWEI_SKEWWINDOWX1           0x122F
01640 #define TWEI_SKEWWINDOWY1           0x1230
01641 #define TWEI_SKEWWINDOWX2           0x1231
01642 #define TWEI_SKEWWINDOWY2           0x1232
01643 #define TWEI_SKEWWINDOWX3           0x1233
01644 #define TWEI_SKEWWINDOWY3           0x1234
01645 #define TWEI_SKEWWINDOWX4           0x1235
01646 #define TWEI_SKEWWINDOWY4           0x1236
01647 
01648 #define TWEJ_NONE                   0x0000
01649 #define TWEJ_MIDSEPARATOR           0x0001
01650 #define TWEJ_PATCH1                 0x0002
01651 #define TWEJ_PATCH2                 0x0003
01652 #define TWEJ_PATCH3                 0x0004
01653 #define TWEJ_PATCH4                 0x0005
01654 #define TWEJ_PATCH6                 0x0006
01655 #define TWEJ_PATCHT                 0x0007
01656 
01657 /***************************************************************************
01658  *            Return Codes and Condition Codes section                     *
01659  ***************************************************************************/
01660 
01661 /* Return Codes: DSM_Entry and DS_Entry may return any one of these values. */
01662 #define TWRC_CUSTOMBASE     0x8000
01663 
01664 #define TWRC_SUCCESS          0
01665 #define TWRC_FAILURE          1 /* Application may get TW_STATUS for info on failure */
01666 #define TWRC_CHECKSTATUS      2 /* "tried hard"; get status                  */
01667 #define TWRC_CANCEL           3
01668 #define TWRC_DSEVENT          4
01669 #define TWRC_NOTDSEVENT       5
01670 #define TWRC_XFERDONE         6
01671 #define TWRC_ENDOFLIST        7 /* After MSG_GETNEXT if nothing left         */
01672 #define TWRC_INFONOTSUPPORTED 8
01673 #define TWRC_DATANOTAVAILABLE 9
01674 
01675 /* Condition Codes: Application gets these by doing DG_CONTROL DAT_STATUS MSG_GET.  */
01676 #define TWCC_CUSTOMBASE         0x8000
01677 
01678 #define TWCC_SUCCESS            0 /* It worked!                                */
01679 #define TWCC_BUMMER             1 /* Failure due to unknown causes             */
01680 #define TWCC_LOWMEMORY          2 /* Not enough memory to perform operation    */
01681 #define TWCC_NODS               3 /* No Data Source                            */
01682 #define TWCC_MAXCONNECTIONS     4 /* DS is connected to max possible applications */
01683 #define TWCC_OPERATIONERROR     5 /* DS or DSM reported error, application shouldn't */
01684 #define TWCC_BADCAP             6 /* Unknown capability                        */
01685 #define TWCC_BADPROTOCOL        9 /* Unrecognized MSG DG DAT combination       */
01686 #define TWCC_BADVALUE           10 /* Data parameter out of range              */
01687 #define TWCC_SEQERROR           11 /* DG DAT MSG out of expected sequence      */
01688 #define TWCC_BADDEST            12 /* Unknown destination Application/Source in DSM_Entry */
01689 #define TWCC_CAPUNSUPPORTED     13 /* Capability not supported by source            */
01690 #define TWCC_CAPBADOPERATION    14 /* Operation not supported by capability         */
01691 #define TWCC_CAPSEQERROR        15 /* Capability has dependency on other capability */
01692 /* Added 1.8 */
01693 #define TWCC_DENIED             16 /* File System operation is denied (file is protected) */
01694 #define TWCC_FILEEXISTS         17 /* Operation failed because file already exists. */
01695 #define TWCC_FILENOTFOUND       18 /* File not found */
01696 #define TWCC_NOTEMPTY           19 /* Operation failed because directory is not empty */
01697 #define TWCC_PAPERJAM           20  /* The feeder is jammed */
01698 #define TWCC_PAPERDOUBLEFEED    21  /* The feeder detected multiple pages */
01699 #define TWCC_FILEWRITEERROR     22  /* Error writing the file (meant for things like disk full conditions) */
01700 #define TWCC_CHECKDEVICEONLINE  23  /* The device went offline prior to or during this operation */
01701 
01702 
01703 /* bit patterns: for query the operation that are supported by the data source on a capability */
01704 /* Application gets these through DG_CONTROL/DAT_CAPABILITY/MSG_QUERYSUPPORT */
01705 /* Added 1.6 */
01706 #define TWQC_GET           0x0001
01707 #define TWQC_SET           0x0002
01708 #define TWQC_GETDEFAULT    0x0004
01709 #define TWQC_GETCURRENT    0x0008
01710 #define TWQC_RESET         0x0010
01711 
01712 
01713 /****************************************************************************
01714  * Entry Points                                                             *
01715  ****************************************************************************/
01716 
01717 /**********************************************************************
01718  * Function: DSM_Entry, the only entry point into the Data Source Manager.
01719  *
01720  * Parameters:
01721  *  pOrigin Identifies the source module of the message. This could
01722  *          identify an Application, a Source, or the Source Manager.
01723  *
01724  *  pDest   Identifies the destination module for the message.
01725  *          This could identify an application or a data source.
01726  *          If this is NULL, the message goes to the Source Manager.
01727  *
01728  *  DG      The Data Group.
01729  *          Example: DG_IMAGE.
01730  *
01731  *  DAT     The Data Attribute Type.
01732  *          Example: DAT_IMAGEMEMXFER.
01733  *
01734  *  MSG     The message.  Messages are interpreted by the destination module
01735  *          with respect to the Data Group and the Data Attribute Type.
01736  *          Example: MSG_GET.
01737  *
01738  *  pData   A pointer to the data structure or variable identified
01739  *          by the Data Attribute Type.
01740  *          Example: (TW_MEMREF)&ImageMemXfer
01741  *                   where ImageMemXfer is a TW_IMAGEMEMXFER structure.
01742  *
01743  * Returns:
01744  *  ReturnCode
01745  *         Example: TWRC_SUCCESS.
01746  *
01747  ********************************************************************/
01748 
01749 /* Don't mangle the name "DSM_Entry" if we're compiling in C++! */
01750 #ifdef  __cplusplus
01751 extern "C" {
01752 #endif  /* __cplusplus */
01753 
01754 #ifdef  _MSWIN_
01755 TW_UINT16 FAR PASCAL DSM_Entry( pTW_IDENTITY pOrigin,
01756                                 pTW_IDENTITY pDest,
01757                                 TW_UINT32    DG,
01758                                 TW_UINT16    DAT,
01759                                 TW_UINT16    MSG,
01760                                 TW_MEMREF    pData);
01761 
01762 typedef TW_UINT16 (FAR PASCAL *DSMENTRYPROC)(pTW_IDENTITY, pTW_IDENTITY,
01763                                              TW_UINT32,    TW_UINT16,
01764                                              TW_UINT16,    TW_MEMREF);
01765 #else   /* _MSWIN_ */
01766 
01767 /*FAR PASCAL TW_UINT16 DSM_Entry( pTW_IDENTITY pOrigin,
01768                                 pTW_IDENTITY pDest,
01769                                 TW_UINT32    DG,
01770                                 TW_UINT16    DAT,
01771                                 TW_UINT16    MSG,
01772                                 TW_MEMREF    pData);*/
01773 
01774 typedef TW_UINT16 (*DSMENTRYPROC)(pTW_IDENTITY, pTW_IDENTITY,
01775                                   TW_UINT32,    TW_UINT16,
01776                                   TW_UINT16,    TW_MEMREF);
01777 #endif  /* _MSWIN_ */
01778 
01779 #ifdef  __cplusplus
01780 }
01781 #endif  /* cplusplus */
01782 
01783 
01784 /**********************************************************************
01785  * Function: DS_Entry, the entry point provided by a Data Source.
01786  *
01787  * Parameters:
01788  *  pOrigin Identifies the source module of the message. This could
01789  *          identify an application or the Data Source Manager.
01790  *
01791  *  DG      The Data Group.
01792  *          Example: DG_IMAGE.
01793  *
01794  *  DAT     The Data Attribute Type.
01795  *          Example: DAT_IMAGEMEMXFER.
01796  *
01797  *  MSG     The message.  Messages are interpreted by the data source
01798  *          with respect to the Data Group and the Data Attribute Type.
01799  *          Example: MSG_GET.
01800  *
01801  *  pData   A pointer to the data structure or variable identified
01802  *          by the Data Attribute Type.
01803  *          Example: (TW_MEMREF)&ImageMemXfer
01804  *                   where ImageMemXfer is a TW_IMAGEMEMXFER structure.
01805  *
01806  * Returns:
01807  *  ReturnCode
01808  *          Example: TWRC_SUCCESS.
01809  *
01810  * Note:
01811  *  The DSPROC type is only used by an application when it calls
01812  *  a Data Source directly, bypassing the Data Source Manager.
01813  *
01814  ********************************************************************/
01815 /* Don't mangle the name "DS_Entry" if we're compiling in C++! */
01816 #ifdef  __cplusplus
01817 extern "C" {
01818 #endif  /* __cplusplus */
01819 #ifdef  _MSWIN_
01820   TW_UINT16 DECLSPEC_EXPORT PASCAL DS_Entry (pTW_IDENTITY pOrigin,
01821                                              TW_UINT32    DG,
01822                                              TW_UINT16    DAT,
01823                                              TW_UINT16    MSG,
01824                                              TW_MEMREF    pData);
01825 
01826   typedef TW_UINT16 (FAR PASCAL *DSENTRYPROC) (pTW_IDENTITY pOrigin,
01827                                                TW_UINT32    DG,
01828                                                TW_UINT16    DAT,
01829                                                TW_UINT16    MSG,
01830                                                TW_MEMREF    pData);
01831 #else   /* _MSWIN_ */
01832 /*FAR PASCAL TW_UINT16 DS_Entry( pTW_IDENTITY pOrigin,
01833                                TW_UINT32    DG,
01834                                TW_UINT16    DAT,
01835                                TW_UINT16    MSG,
01836                                TW_MEMREF    pData);*/
01837 
01838 typedef TW_UINT16 (*DSENTRYPROC)(pTW_IDENTITY,
01839                                   TW_UINT32,    TW_UINT16,
01840                                   TW_UINT16,    TW_MEMREF);
01841 #endif  /* _MSWIN_ */
01842 #ifdef  __cplusplus
01843 }
01844 #endif  /* cplusplus */
01845 
01846 /* The Twain structures must be packed on 2 byte alignment */
01847 #include "poppack.h"
01848 
01849 #endif  /* TWAIN */

Generated on Sat May 26 2012 04:25:10 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.