;**************************************************************************** ;* Generic Constants = * ;**************************************************************************** Global Const $TWON_ARRAY = 3 Global Const $TWON_ENUMERATION = 4 Global Const $TWON_ONEVALUE = 5 Global Const $TWON_RANGE = 6 Global Const $TWON_ICONID = 962 Global Const $TWON_DSMID = 461 Global Const $TWON_DSMCODEID = 63 Global Const $TWON_DONTCARE8 = 0xff Global Const $TWON_DONTCARE16 = 0xffff Global Const $TWON_DONTCARE32 = 0xffffffff ; Flags used in TW_MEMORY structure. * Global Const $TWMF_APPOWNS = 0x0001 Global Const $TWMF_DSMOWNS = 0x0002 Global Const $TWMF_DSOWNS = 0x0004 Global Const $TWMF_POINTER = 0x0008 Global Const $TWMF_HANDLE = 0x0010 Global Const $TWTY_INT8 = 0x0000 Global Const $TWTY_INT16 = 0x0001 Global Const $TWTY_INT32 = 0x0002 Global Const $TWTY_UINT8 = 0x0003 Global Const $TWTY_UINT16 = 0x0004 Global Const $TWTY_UINT32 = 0x0005 Global Const $TWTY_BOOL = 0x0006 Global Const $TWTY_FIX32 = 0x0007 Global Const $TWTY_FRAME = 0x0008 Global Const $TWTY_STR32 = 0x0009 Global Const $TWTY_STR64 = 0x000a Global Const $TWTY_STR128 = 0x000b Global Const $TWTY_STR255 = 0x000c Global Const $TWTY_HANDLE = 0x000f ;**************************************************************************** ;* Capability Constants = * ;**************************************************************************** ; CAP_ALARMS values * Global Const $TWAL_ALARM = 0 Global Const $TWAL_FEEDERERROR = 1 Global Const $TWAL_FEEDERWARNING = 2 Global Const $TWAL_BARCODE = 3 Global Const $TWAL_DOUBLEFEED = 4 Global Const $TWAL_JAM = 5 Global Const $TWAL_PATCHCODE = 6 Global Const $TWAL_POWER = 7 Global Const $TWAL_SKEW = 8 ; ICAP_AUTOSIZE values * Global Const $TWAS_NONE = 0 Global Const $TWAS_AUTO = 1 Global Const $TWAS_CURRENT = 2 ; TWEI_BARCODEROTATION values * Global Const $TWBCOR_ROT0 = 0 Global Const $TWBCOR_ROT90 = 1 Global Const $TWBCOR_ROT180 = 2 Global Const $TWBCOR_ROT270 = 3 Global Const $TWBCOR_ROTX = 4 ; ICAP_BARCODESEARCHMODE values * Global Const $TWBD_HORZ = 0 Global Const $TWBD_VERT = 1 Global Const $TWBD_HORZVERT = 2 Global Const $TWBD_VERTHORZ = 3 ; ICAP_BITORDER values * Global Const $TWBO_LSBFIRST = 0 Global Const $TWBO_MSBFIRST = 1 ; ICAP_AUTODISCARDBLANKPAGES values * Global Const $TWBP_DISABLE = -2 Global Const $TWBP_AUTO = -1 ; ICAP_BITDEPTHREDUCTION values * Global Const $TWBR_THRESHOLD = 0 Global Const $TWBR_HALFTONE = 1 Global Const $TWBR_CUSTHALFTONE = 2 Global Const $TWBR_DIFFUSION = 3 Global Const $TWBR_DYNAMICTHRESHOLD = 4 ; ICAP_SUPPORTEDBARCODETYPES and TWEI_BARCODETYPE values* Global Const $TWBT_3OF9 = 0 Global Const $TWBT_2OF5INTERLEAVED = 1 Global Const $TWBT_2OF5NONINTERLEAVED = 2 Global Const $TWBT_CODE93 = 3 Global Const $TWBT_CODE128 = 4 Global Const $TWBT_UCC128 = 5 Global Const $TWBT_CODABAR = 6 Global Const $TWBT_UPCA = 7 Global Const $TWBT_UPCE = 8 Global Const $TWBT_EAN8 = 9 Global Const $TWBT_EAN13 = 10 Global Const $TWBT_POSTNET = 11 Global Const $TWBT_PDF417 = 12 Global Const $TWBT_2OF5INDUSTRIAL = 13 Global Const $TWBT_2OF5MATRIX = 14 Global Const $TWBT_2OF5DATALOGIC = 15 Global Const $TWBT_2OF5IATA = 16 Global Const $TWBT_3OF9FULLASCII = 17 Global Const $TWBT_CODABARWITHSTARTSTOP = 18 Global Const $TWBT_MAXICODE = 19 Global Const $TWBT_QRCODE = 20 ; ICAP_COMPRESSION values* Global Const $TWCP_NONE = 0 Global Const $TWCP_PACKBITS = 1 Global Const $TWCP_GROUP31D = 2 Global Const $TWCP_GROUP31DEOL = 3 Global Const $TWCP_GROUP32D = 4 Global Const $TWCP_GROUP4 = 5 Global Const $TWCP_JPEG = 6 Global Const $TWCP_LZW = 7 Global Const $TWCP_JBIG = 8 Global Const $TWCP_PNG = 9 Global Const $TWCP_RLE4 = 10 Global Const $TWCP_RLE8 = 11 Global Const $TWCP_BITFIELDS = 12 Global Const $TWCP_ZIP = 13 Global Const $TWCP_JPEG2000 = 14 ; CAP_CAMERASIDE and TWEI_PAGESIDE values * Global Const $TWCS_BOTH = 0 Global Const $TWCS_TOP = 1 Global Const $TWCS_BOTTOM = 2 ; CAP_DEVICEEVENT values * Global Const $TWDE_CUSTOMEVENTS = 0x8000 Global Const $TWDE_CHECKAUTOMATICCAPTURE = 0 Global Const $TWDE_CHECKBATTERY = 1 Global Const $TWDE_CHECKDEVICEONLINE = 2 Global Const $TWDE_CHECKFLASH = 3 Global Const $TWDE_CHECKPOWERSUPPLY = 4 Global Const $TWDE_CHECKRESOLUTION = 5 Global Const $TWDE_DEVICEADDED = 6 Global Const $TWDE_DEVICEOFFLINE = 7 Global Const $TWDE_DEVICEREADY = 8 Global Const $TWDE_DEVICEREMOVED = 9 Global Const $TWDE_IMAGECAPTURED = 10 Global Const $TWDE_IMAGEDELETED = 11 Global Const $TWDE_PAPERDOUBLEFEED = 12 Global Const $TWDE_PAPERJAM = 13 Global Const $TWDE_LAMPFAILURE = 14 Global Const $TWDE_POWERSAVE = 15 Global Const $TWDE_POWERSAVENOTIFY = 16 ; TW_PASSTHRU.Direction values. * Global Const $TWDR_GET = 1 Global Const $TWDR_SET = 2 ; TWEI_DESKEWSTATUS values. * Global Const $TWDSK_SUCCESS = 0 Global Const $TWDSK_REPORTONLY = 1 Global Const $TWDSK_FAIL = 2 Global Const $TWDSK_DISABLED = 3 ; CAP_DUPLEX values * Global Const $TWDX_NONE = 0 Global Const $TWDX_1PASSDUPLEX = 1 Global Const $TWDX_2PASSDUPLEX = 2 ; CAP_FEEDERALIGNMENT values * Global Const $TWFA_NONE = 0 Global Const $TWFA_LEFT = 1 Global Const $TWFA_CENTER = 2 Global Const $TWFA_RIGHT = 3 ; ICAP_FEEDERTYPE values* Global Const $TWFE_GENERAL = 0 Global Const $TWFE_PHOTO = 1 ; ICAP_IMAGEFILEFORMAT values * Global Const $TWFF_TIFF = 0 Global Const $TWFF_PICT = 1 Global Const $TWFF_BMP = 2 Global Const $TWFF_XBM = 3 Global Const $TWFF_JFIF = 4 Global Const $TWFF_FPX = 5 Global Const $TWFF_TIFFMULTI = 6 Global Const $TWFF_PNG = 7 Global Const $TWFF_SPIFF = 8 Global Const $TWFF_EXIF = 9 Global Const $TWFF_PDF = 10 Global Const $TWFF_JP2 = 11 Global Const $TWFF_JPX = 13 Global Const $TWFF_DEJAVU = 14 Global Const $TWFF_PDFA = 15 Global Const $TWFF_PDFA2 = 16 Global Const $TWFF_PDFRASTER = 17 ; ICAP_FLASHUSED2 values * Global Const $TWFL_NONE = 0 Global Const $TWFL_OFF = 1 Global Const $TWFL_ON = 2 Global Const $TWFL_AUTO = 3 Global Const $TWFL_REDEYE = 4 ; CAP_FEEDERORDER values * Global Const $TWFO_FIRSTPAGEFIRST = 0 Global Const $TWFO_LASTPAGEFIRST = 1 ; CAP_FEEDERPOCKET values* Global Const $TWFP_POCKETERROR = 0 Global Const $TWFP_POCKET1 = 1 Global Const $TWFP_POCKET2 = 2 Global Const $TWFP_POCKET3 = 3 Global Const $TWFP_POCKET4 = 4 Global Const $TWFP_POCKET5 = 5 Global Const $TWFP_POCKET6 = 6 Global Const $TWFP_POCKET7 = 7 Global Const $TWFP_POCKET8 = 8 Global Const $TWFP_POCKET9 = 9 Global Const $TWFP_POCKET10 = 10 Global Const $TWFP_POCKET11 = 11 Global Const $TWFP_POCKET12 = 12 Global Const $TWFP_POCKET13 = 13 Global Const $TWFP_POCKET14 = 14 Global Const $TWFP_POCKET15 = 15 Global Const $TWFP_POCKET16 = 16 ; ICAP_FLIPROTATION values * Global Const $TWFR_BOOK = 0 Global Const $TWFR_FANFOLD = 1 ; ICAP_FILTER values * Global Const $TWFT_RED = 0 Global Const $TWFT_GREEN = 1 Global Const $TWFT_BLUE = 2 Global Const $TWFT_NONE = 3 Global Const $TWFT_WHITE = 4 Global Const $TWFT_CYAN = 5 Global Const $TWFT_MAGENTA = 6 Global Const $TWFT_YELLOW = 7 Global Const $TWFT_BLACK = 8 ; TW_FILESYSTEM.FileType values * Global Const $TWFY_CAMERA = 0 Global Const $TWFY_CAMERATOP = 1 Global Const $TWFY_CAMERABOTTOM = 2 Global Const $TWFY_CAMERAPREVIEW = 3 Global Const $TWFY_DOMAIN = 4 Global Const $TWFY_HOST = 5 Global Const $TWFY_DIRECTORY = 6 Global Const $TWFY_IMAGE = 7 Global Const $TWFY_UNKNOWN = 8 ; ICAP_ICCPROFILE values * Global Const $TWIC_NONE = 0 Global Const $TWIC_LINK = 1 Global Const $TWIC_EMBED = 2 ; ICAP_IMAGEFILTER values * Global Const $TWIF_NONE = 0 Global Const $TWIF_AUTO = 1 Global Const $TWIF_LOWPASS = 2 Global Const $TWIF_BANDPASS = 3 Global Const $TWIF_HIGHPASS = 4 Global Const $TWIF_TEXT = $TWIF_BANDPASS Global Const $TWIF_FINELINE = $TWIF_HIGHPASS ; ICAP_IMAGEMERGE values * Global Const $TWIM_NONE = 0 Global Const $TWIM_FRONTONTOP = 1 Global Const $TWIM_FRONTONBOTTOM = 2 Global Const $TWIM_FRONTONLEFT = 3 Global Const $TWIM_FRONTONRIGHT = 4 ; CAP_JOBCONTROL values = * Global Const $TWJC_NONE = 0 Global Const $TWJC_JSIC = 1 Global Const $TWJC_JSIS = 2 Global Const $TWJC_JSXC = 3 Global Const $TWJC_JSXS = 4 ; ICAP_JPEGQUALITY values * Global Const $TWJQ_UNKNOWN = -4 Global Const $TWJQ_LOW = -3 Global Const $TWJQ_MEDIUM = -2 Global Const $TWJQ_HIGH = -1 ; ICAP_LIGHTPATH values * Global Const $TWLP_REFLECTIVE = 0 Global Const $TWLP_TRANSMISSIVE = 1 ; ICAP_LIGHTSOURCE values * Global Const $TWLS_RED = 0 Global Const $TWLS_GREEN = 1 Global Const $TWLS_BLUE = 2 Global Const $TWLS_NONE = 3 Global Const $TWLS_WHITE = 4 Global Const $TWLS_UV = 5 Global Const $TWLS_IR = 6 ; TWEI_MAGTYPE values * Global Const $TWMD_MICR = 0 Global Const $TWMD_RAW = 1 Global Const $TWMD_INVALID = 2 ; ICAP_NOISEFILTER values * Global Const $TWNF_NONE = 0 Global Const $TWNF_AUTO = 1 Global Const $TWNF_LONEPIXEL = 2 Global Const $TWNF_MAJORITYRULE = 3 ; ICAP_ORIENTATION values * Global Const $TWOR_ROT0 = 0 Global Const $TWOR_ROT90 = 1 Global Const $TWOR_ROT180 = 2 Global Const $TWOR_ROT270 = 3 Global Const $TWOR_PORTRAIT = $TWOR_ROT0 Global Const $TWOR_LANDSCAPE = $TWOR_ROT270 Global Const $TWOR_AUTO = 4 Global Const $TWOR_AUTOTEXT = 5 Global Const $TWOR_AUTOPICTURE = 6 ; ICAP_OVERSCAN values * Global Const $TWOV_NONE = 0 Global Const $TWOV_AUTO = 1 Global Const $TWOV_TOPBOTTOM = 2 Global Const $TWOV_LEFTRIGHT = 3 Global Const $TWOV_ALL = 4 ; Palette types for TW_PALETTE8 * Global Const $TWPA_RGB = 0 Global Const $TWPA_GRAY = 1 Global Const $TWPA_CMY = 2 ; ICAP_PLANARCHUNKY values * Global Const $TWPC_CHUNKY = 0 Global Const $TWPC_PLANAR = 1 ; TWEI_PATCHCODE values* Global Const $TWPCH_PATCH1 = 0 Global Const $TWPCH_PATCH2 = 1 Global Const $TWPCH_PATCH3 = 2 Global Const $TWPCH_PATCH4 = 3 Global Const $TWPCH_PATCH6 = 4 Global Const $TWPCH_PATCHT = 5 ; ICAP_PIXELFLAVOR values * Global Const $TWPF_CHOCOLATE = 0 Global Const $TWPF_VANILLA = 1 ; CAP_PRINTERMODE values * Global Const $TWPM_SINGLESTRING = 0 Global Const $TWPM_MULTISTRING = 1 Global Const $TWPM_COMPOUNDSTRING = 2 ; CAP_PRINTER values * Global Const $TWPR_IMPRINTERTOPBEFORE = 0 Global Const $TWPR_IMPRINTERTOPAFTER = 1 Global Const $TWPR_IMPRINTERBOTTOMBEFORE = 2 Global Const $TWPR_IMPRINTERBOTTOMAFTER = 3 Global Const $TWPR_ENDORSERTOPBEFORE = 4 Global Const $TWPR_ENDORSERTOPAFTER = 5 Global Const $TWPR_ENDORSERBOTTOMBEFORE = 6 Global Const $TWPR_ENDORSERBOTTOMAFTER = 7 ; CAP_PRINTERFONTSTYLE Added 2.3 * Global Const $TWPF_NORMAL = 0 Global Const $TWPF_BOLD = 1 Global Const $TWPF_ITALIC = 2 Global Const $TWPF_LARGESIZE = 3 Global Const $TWPF_SMALLSIZE = 4 ; CAP_PRINTERINDEXTRIGGER Added 2.3 * Global Const $TWCT_PAGE = 0 Global Const $TWCT_PATCH1 = 1 Global Const $TWCT_PATCH2 = 2 Global Const $TWCT_PATCH3 = 3 Global Const $TWCT_PATCH4 = 4 Global Const $TWCT_PATCHT = 5 Global Const $TWCT_PATCH6 = 6 ; CAP_POWERSUPPLY values * Global Const $TWPS_EXTERNAL = 0 Global Const $TWPS_BATTERY = 1 ; ICAP_PIXELTYPE values (PT_ means Pixel Type) * Global Const $TWPT_BW = 0 Global Const $TWPT_GRAY = 1 Global Const $TWPT_RGB = 2 Global Const $TWPT_PALETTE = 3 Global Const $TWPT_CMY = 4 Global Const $TWPT_CMYK = 5 Global Const $TWPT_YUV = 6 Global Const $TWPT_YUVK = 7 Global Const $TWPT_CIEXYZ = 8 Global Const $TWPT_LAB = 9 Global Const $TWPT_SRGB = 10 Global Const $TWPT_SCRGB = 11 Global Const $TWPT_INFRARED = 16 ; CAP_SEGMENTED values * Global Const $TWSG_NONE = 0 Global Const $TWSG_AUTO = 1 Global Const $TWSG_MANUAL = 2 ; ICAP_FILMTYPE values * Global Const $TWFM_POSITIVE = 0 Global Const $TWFM_NEGATIVE = 1 ; CAP_DOUBLEFEEDDETECTION * Global Const $TWDF_ULTRASONIC = 0 Global Const $TWDF_BYLENGTH = 1 Global Const $TWDF_INFRARED = 2 ; CAP_DOUBLEFEEDDETECTIONSENSITIVITY * Global Const $TWUS_LOW = 0 Global Const $TWUS_MEDIUM = 1 Global Const $TWUS_HIGH = 2 ; CAP_DOUBLEFEEDDETECTIONRESPONSE * Global Const $TWDP_STOP = 0 Global Const $TWDP_STOPANDWAIT = 1 Global Const $TWDP_SOUND = 2 Global Const $TWDP_DONOTIMPRINT = 3 ; ICAP_MIRROR values * Global Const $TWMR_NONE = 0 Global Const $TWMR_VERTICAL = 1 Global Const $TWMR_HORIZONTAL = 2 ; ICAP_JPEGSUBSAMPLING values * Global Const $TWJS_444YCBCR = 0 Global Const $TWJS_444RGB = 1 Global Const $TWJS_422 = 2 Global Const $TWJS_421 = 3 Global Const $TWJS_411 = 4 Global Const $TWJS_420 = 5 Global Const $TWJS_410 = 6 Global Const $TWJS_311 = 7 ; CAP_PAPERHANDLING values * Global Const $TWPH_NORMAL = 0 Global Const $TWPH_FRAGILE = 1 Global Const $TWPH_THICK = 2 Global Const $TWPH_TRIFOLD = 3 Global Const $TWPH_PHOTOGRAPH = 4 ; CAP_INDICATORSMODE values * Global Const $TWCI_INFO = 0 Global Const $TWCI_WARNING = 1 Global Const $TWCI_ERROR = 2 Global Const $TWCI_WARMUP = 3 ; ICAP_SUPPORTEDSIZES values (SS_ means Supported Sizes) * Global Const $TWSS_NONE = 0 Global Const $TWSS_A4 = 1 Global Const $TWSS_JISB5 = 2 Global Const $TWSS_USLETTER = 3 Global Const $TWSS_USLEGAL = 4 Global Const $TWSS_A5 = 5 Global Const $TWSS_ISOB4 = 6 Global Const $TWSS_ISOB6 = 7 Global Const $TWSS_USLEDGER = 9 Global Const $TWSS_USEXECUTIVE = 10 Global Const $TWSS_A3 = 11 Global Const $TWSS_ISOB3 = 12 Global Const $TWSS_A6 = 13 Global Const $TWSS_C4 = 14 Global Const $TWSS_C5 = 15 Global Const $TWSS_C6 = 16 Global Const $TWSS_4A0 = 17 Global Const $TWSS_2A0 = 18 Global Const $TWSS_A0 = 19 Global Const $TWSS_A1 = 20 Global Const $TWSS_A2 = 21 Global Const $TWSS_A7 = 22 Global Const $TWSS_A8 = 23 Global Const $TWSS_A9 = 24 Global Const $TWSS_A10 = 25 Global Const $TWSS_ISOB0 = 26 Global Const $TWSS_ISOB1 = 27 Global Const $TWSS_ISOB2 = 28 Global Const $TWSS_ISOB5 = 29 Global Const $TWSS_ISOB7 = 30 Global Const $TWSS_ISOB8 = 31 Global Const $TWSS_ISOB9 = 32 Global Const $TWSS_ISOB10 = 33 Global Const $TWSS_JISB0 = 34 Global Const $TWSS_JISB1 = 35 Global Const $TWSS_JISB2 = 36 Global Const $TWSS_JISB3 = 37 Global Const $TWSS_JISB4 = 38 Global Const $TWSS_JISB6 = 39 Global Const $TWSS_JISB7 = 40 Global Const $TWSS_JISB8 = 41 Global Const $TWSS_JISB9 = 42 Global Const $TWSS_JISB10 = 43 Global Const $TWSS_C0 = 44 Global Const $TWSS_C1 = 45 Global Const $TWSS_C2 = 46 Global Const $TWSS_C3 = 47 Global Const $TWSS_C7 = 48 Global Const $TWSS_C8 = 49 Global Const $TWSS_C9 = 50 Global Const $TWSS_C10 = 51 Global Const $TWSS_USSTATEMENT = 52 Global Const $TWSS_BUSINESSCARD = 53 Global Const $TWSS_MAXSIZE = 54 ; ICAP_XFERMECH values (SX_ means Setup XFer) * Global Const $TWSX_NATIVE = 0 Global Const $TWSX_FILE = 1 Global Const $TWSX_MEMORY = 2 Global Const $TWSX_MEMFILE = 4 ; ICAP_UNITS values (UN_ means UNits) * Global Const $TWUN_INCHES = 0 Global Const $TWUN_CENTIMETERS = 1 Global Const $TWUN_PICAS = 2 Global Const $TWUN_POINTS = 3 Global Const $TWUN_TWIPS = 4 Global Const $TWUN_PIXELS = 5 Global Const $TWUN_MILLIMETERS = 6 ;*************************************************************************** ;* Country Constants = * ;**************************************************************************** Global Const $TWCY_AFGHANISTAN = 1001 Global Const $TWCY_ALGERIA = 213 Global Const $TWCY_AMERICANSAMOA = 684 Global Const $TWCY_ANDORRA = 33 Global Const $TWCY_ANGOLA = 1002 Global Const $TWCY_ANGUILLA = 8090 Global Const $TWCY_ANTIGUA = 8091 Global Const $TWCY_ARGENTINA = 54 Global Const $TWCY_ARUBA = 297 Global Const $TWCY_ASCENSIONI = 247 Global Const $TWCY_AUSTRALIA = 61 Global Const $TWCY_AUSTRIA = 43 Global Const $TWCY_BAHAMAS = 8092 Global Const $TWCY_BAHRAIN = 973 Global Const $TWCY_BANGLADESH = 880 Global Const $TWCY_BARBADOS = 8093 Global Const $TWCY_BELGIUM = 32 Global Const $TWCY_BELIZE = 501 Global Const $TWCY_BENIN = 229 Global Const $TWCY_BERMUDA = 8094 Global Const $TWCY_BHUTAN = 1003 Global Const $TWCY_BOLIVIA = 591 Global Const $TWCY_BOTSWANA = 267 Global Const $TWCY_BRITAIN = 6 Global Const $TWCY_BRITVIRGINIS = 8095 Global Const $TWCY_BRAZIL = 55 Global Const $TWCY_BRUNEI = 673 Global Const $TWCY_BULGARIA = 359 Global Const $TWCY_BURKINAFASO = 1004 Global Const $TWCY_BURMA = 1005 Global Const $TWCY_BURUNDI = 1006 Global Const $TWCY_CAMAROON = 237 Global Const $TWCY_CANADA = 2 Global Const $TWCY_CAPEVERDEIS = 238 Global Const $TWCY_CAYMANIS = 8096 Global Const $TWCY_CENTRALAFREP = 1007 Global Const $TWCY_CHAD = 1008 Global Const $TWCY_CHILE = 56 Global Const $TWCY_CHINA = 86 Global Const $TWCY_CHRISTMASIS = 1009 Global Const $TWCY_COCOSIS = 1009 Global Const $TWCY_COLOMBIA = 57 Global Const $TWCY_COMOROS = 1010 Global Const $TWCY_CONGO = 1011 Global Const $TWCY_COOKIS = 1012 Global Const $TWCY_COSTARICA = 506 Global Const $TWCY_CUBA = 5 Global Const $TWCY_CYPRUS = 357 Global Const $TWCY_CZECHOSLOVAKIA = 42 Global Const $TWCY_DENMARK = 45 Global Const $TWCY_DJIBOUTI = 1013 Global Const $TWCY_DOMINICA = 8097 Global Const $TWCY_DOMINCANREP = 8098 Global Const $TWCY_EASTERIS = 1014 Global Const $TWCY_ECUADOR = 593 Global Const $TWCY_EGYPT = 20 Global Const $TWCY_ELSALVADOR = 503 Global Const $TWCY_EQGUINEA = 1015 Global Const $TWCY_ETHIOPIA = 251 Global Const $TWCY_FALKLANDIS = 1016 Global Const $TWCY_FAEROEIS = 298 Global Const $TWCY_FIJIISLANDS = 679 Global Const $TWCY_FINLAND = 358 Global Const $TWCY_FRANCE = 33 Global Const $TWCY_FRANTILLES = 596 Global Const $TWCY_FRGUIANA = 594 Global Const $TWCY_FRPOLYNEISA = 689 Global Const $TWCY_FUTANAIS = 1043 Global Const $TWCY_GABON = 241 Global Const $TWCY_GAMBIA = 220 Global Const $TWCY_GERMANY = 49 Global Const $TWCY_GHANA = 233 Global Const $TWCY_GIBRALTER = 350 Global Const $TWCY_GREECE = 30 Global Const $TWCY_GREENLAND = 299 Global Const $TWCY_GRENADA = 8099 Global Const $TWCY_GRENEDINES = 8015 Global Const $TWCY_GUADELOUPE = 590 Global Const $TWCY_GUAM = 671 Global Const $TWCY_GUANTANAMOBAY = 5399 Global Const $TWCY_GUATEMALA = 502 Global Const $TWCY_GUINEA = 224 Global Const $TWCY_GUINEABISSAU = 1017 Global Const $TWCY_GUYANA = 592 Global Const $TWCY_HAITI = 509 Global Const $TWCY_HONDURAS = 504 Global Const $TWCY_HONGKONG = 852 Global Const $TWCY_HUNGARY = 36 Global Const $TWCY_ICELAND = 354 Global Const $TWCY_INDIA = 91 Global Const $TWCY_INDONESIA = 62 Global Const $TWCY_IRAN = 98 Global Const $TWCY_IRAQ = 964 Global Const $TWCY_IRELAND = 353 Global Const $TWCY_ISRAEL = 972 Global Const $TWCY_ITALY = 39 Global Const $TWCY_IVORYCOAST = 225 Global Const $TWCY_JAMAICA = 8010 Global Const $TWCY_JAPAN = 81 Global Const $TWCY_JORDAN = 962 Global Const $TWCY_KENYA = 254 Global Const $TWCY_KIRIBATI = 1018 Global Const $TWCY_KOREA = 82 Global Const $TWCY_KUWAIT = 965 Global Const $TWCY_LAOS = 1019 Global Const $TWCY_LEBANON = 1020 Global Const $TWCY_LIBERIA = 231 Global Const $TWCY_LIBYA = 218 Global Const $TWCY_LIECHTENSTEIN = 41 Global Const $TWCY_LUXENBOURG = 352 Global Const $TWCY_MACAO = 853 Global Const $TWCY_MADAGASCAR = 1021 Global Const $TWCY_MALAWI = 265 Global Const $TWCY_MALAYSIA = 60 Global Const $TWCY_MALDIVES = 960 Global Const $TWCY_MALI = 1022 Global Const $TWCY_MALTA = 356 Global Const $TWCY_MARSHALLIS = 692 Global Const $TWCY_MAURITANIA = 1023 Global Const $TWCY_MAURITIUS = 230 Global Const $TWCY_MEXICO = 3 Global Const $TWCY_MICRONESIA = 691 Global Const $TWCY_MIQUELON = 508 Global Const $TWCY_MONACO = 33 Global Const $TWCY_MONGOLIA = 1024 Global Const $TWCY_MONTSERRAT = 8011 Global Const $TWCY_MOROCCO = 212 Global Const $TWCY_MOZAMBIQUE = 1025 Global Const $TWCY_NAMIBIA = 264 Global Const $TWCY_NAURU = 1026 Global Const $TWCY_NEPAL = 977 Global Const $TWCY_NETHERLANDS = 31 Global Const $TWCY_NETHANTILLES = 599 Global Const $TWCY_NEVIS = 8012 Global Const $TWCY_NEWCALEDONIA = 687 Global Const $TWCY_NEWZEALAND = 64 Global Const $TWCY_NICARAGUA = 505 Global Const $TWCY_NIGER = 227 Global Const $TWCY_NIGERIA = 234 Global Const $TWCY_NIUE = 1027 Global Const $TWCY_NORFOLKI = 1028 Global Const $TWCY_NORWAY = 47 Global Const $TWCY_OMAN = 968 Global Const $TWCY_PAKISTAN = 92 Global Const $TWCY_PALAU = 1029 Global Const $TWCY_PANAMA = 507 Global Const $TWCY_PARAGUAY = 595 Global Const $TWCY_PERU = 51 Global Const $TWCY_PHILLIPPINES = 63 Global Const $TWCY_PITCAIRNIS = 1030 Global Const $TWCY_PNEWGUINEA = 675 Global Const $TWCY_POLAND = 48 Global Const $TWCY_PORTUGAL = 351 Global Const $TWCY_QATAR = 974 Global Const $TWCY_REUNIONI = 1031 Global Const $TWCY_ROMANIA = 40 Global Const $TWCY_RWANDA = 250 Global Const $TWCY_SAIPAN = 670 Global Const $TWCY_SANMARINO = 39 Global Const $TWCY_SAOTOME = 1033 Global Const $TWCY_SAUDIARABIA = 966 Global Const $TWCY_SENEGAL = 221 Global Const $TWCY_SEYCHELLESIS = 1034 Global Const $TWCY_SIERRALEONE = 1035 Global Const $TWCY_SINGAPORE = 65 Global Const $TWCY_SOLOMONIS = 1036 Global Const $TWCY_SOMALI = 1037 Global Const $TWCY_SOUTHAFRICA = 27 Global Const $TWCY_SPAIN = 34 Global Const $TWCY_SRILANKA = 94 Global Const $TWCY_STHELENA = 1032 Global Const $TWCY_STKITTS = 8013 Global Const $TWCY_STLUCIA = 8014 Global Const $TWCY_STPIERRE = 508 Global Const $TWCY_STVINCENT = 8015 Global Const $TWCY_SUDAN = 1038 Global Const $TWCY_SURINAME = 597 Global Const $TWCY_SWAZILAND = 268 Global Const $TWCY_SWEDEN = 46 Global Const $TWCY_SWITZERLAND = 41 Global Const $TWCY_SYRIA = 1039 Global Const $TWCY_TAIWAN = 886 Global Const $TWCY_TANZANIA = 255 Global Const $TWCY_THAILAND = 66 Global Const $TWCY_TOBAGO = 8016 Global Const $TWCY_TOGO = 228 Global Const $TWCY_TONGAIS = 676 Global Const $TWCY_TRINIDAD = 8016 Global Const $TWCY_TUNISIA = 216 Global Const $TWCY_TURKEY = 90 Global Const $TWCY_TURKSCAICOS = 8017 Global Const $TWCY_TUVALU = 1040 Global Const $TWCY_UGANDA = 256 Global Const $TWCY_USSR = 7 Global Const $TWCY_UAEMIRATES = 971 Global Const $TWCY_UNITEDKINGDOM = 44 Global Const $TWCY_USA = 1 Global Const $TWCY_URUGUAY = 598 Global Const $TWCY_VANUATU = 1041 Global Const $TWCY_VATICANCITY = 39 Global Const $TWCY_VENEZUELA = 58 Global Const $TWCY_WAKE = 1042 Global Const $TWCY_WALLISIS = 1043 Global Const $TWCY_WESTERNSAHARA = 1044 Global Const $TWCY_WESTERNSAMOA = 1045 Global Const $TWCY_YEMEN = 1046 Global Const $TWCY_YUGOSLAVIA = 38 Global Const $TWCY_ZAIRE = 243 Global Const $TWCY_ZAMBIA = 260 Global Const $TWCY_ZIMBABWE = 263 Global Const $TWCY_ALBANIA = 355 Global Const $TWCY_ARMENIA = 374 Global Const $TWCY_AZERBAIJAN = 994 Global Const $TWCY_BELARUS = 375 Global Const $TWCY_BOSNIAHERZGO = 387 Global Const $TWCY_CAMBODIA = 855 Global Const $TWCY_CROATIA = 385 Global Const $TWCY_CZECHREPUBLIC = 420 Global Const $TWCY_DIEGOGARCIA = 246 Global Const $TWCY_ERITREA = 291 Global Const $TWCY_ESTONIA = 372 Global Const $TWCY_GEORGIA = 995 Global Const $TWCY_LATVIA = 371 Global Const $TWCY_LESOTHO = 266 Global Const $TWCY_LITHUANIA = 370 Global Const $TWCY_MACEDONIA = 389 Global Const $TWCY_MAYOTTEIS = 269 Global Const $TWCY_MOLDOVA = 373 Global Const $TWCY_MYANMAR = 95 Global Const $TWCY_NORTHKOREA = 850 Global Const $TWCY_PUERTORICO = 787 Global Const $TWCY_RUSSIA = 7 Global Const $TWCY_SERBIA = 381 Global Const $TWCY_SLOVAKIA = 421 Global Const $TWCY_SLOVENIA = 386 Global Const $TWCY_SOUTHKOREA = 82 Global Const $TWCY_UKRAINE = 380 Global Const $TWCY_USVIRGINIS = 340 Global Const $TWCY_VIETNAM = 84 ;*************************************************************************** ;* Language Constants = * ;**************************************************************************** Global Const $TWLG_USERLOCALE = -1 Global Const $TWLG_DAN = 0 Global Const $TWLG_DUT = 1 Global Const $TWLG_ENG = 2 Global Const $TWLG_FCF = 3 Global Const $TWLG_FIN = 4 Global Const $TWLG_FRN = 5 Global Const $TWLG_GER = 6 Global Const $TWLG_ICE = 7 Global Const $TWLG_ITN = 8 Global Const $TWLG_NOR = 9 Global Const $TWLG_POR = 10 Global Const $TWLG_SPA = 11 Global Const $TWLG_SWE = 12 Global Const $TWLG_USA = 13 Global Const $TWLG_AFRIKAANS = 14 Global Const $TWLG_ALBANIA = 15 Global Const $TWLG_ARABIC = 16 Global Const $TWLG_ARABIC_ALGERIA = 17 Global Const $TWLG_ARABIC_BAHRAIN = 18 Global Const $TWLG_ARABIC_EGYPT = 19 Global Const $TWLG_ARABIC_IRAQ = 20 Global Const $TWLG_ARABIC_JORDAN = 21 Global Const $TWLG_ARABIC_KUWAIT = 22 Global Const $TWLG_ARABIC_LEBANON = 23 Global Const $TWLG_ARABIC_LIBYA = 24 Global Const $TWLG_ARABIC_MOROCCO = 25 Global Const $TWLG_ARABIC_OMAN = 26 Global Const $TWLG_ARABIC_QATAR = 27 Global Const $TWLG_ARABIC_SAUDIARABIA = 28 Global Const $TWLG_ARABIC_SYRIA = 29 Global Const $TWLG_ARABIC_TUNISIA = 30 Global Const $TWLG_ARABIC_UAE = 31 Global Const $TWLG_ARABIC_YEMEN = 32 Global Const $TWLG_BASQUE = 33 Global Const $TWLG_BYELORUSSIAN = 34 Global Const $TWLG_BULGARIAN = 35 Global Const $TWLG_CATALAN = 36 Global Const $TWLG_CHINESE = 37 Global Const $TWLG_CHINESE_HONGKONG = 38 Global Const $TWLG_CHINESE_PRC = 39 Global Const $TWLG_CHINESE_SINGAPORE = 40 Global Const $TWLG_CHINESE_SIMPLIFIED = 41 Global Const $TWLG_CHINESE_TAIWAN = 42 Global Const $TWLG_CHINESE_TRADITIONAL = 43 Global Const $TWLG_CROATIA = 44 Global Const $TWLG_CZECH = 45 Global Const $TWLG_DANISH = $TWLG_DAN Global Const $TWLG_DUTCH = $TWLG_DUT Global Const $TWLG_DUTCH_BELGIAN = 46 Global Const $TWLG_ENGLISH = $TWLG_ENG Global Const $TWLG_ENGLISH_AUSTRALIAN = 47 Global Const $TWLG_ENGLISH_CANADIAN = 48 Global Const $TWLG_ENGLISH_IRELAND = 49 Global Const $TWLG_ENGLISH_NEWZEALAND = 50 Global Const $TWLG_ENGLISH_SOUTHAFRICA = 51 Global Const $TWLG_ENGLISH_UK = 52 Global Const $TWLG_ENGLISH_USA = $TWLG_USA Global Const $TWLG_ESTONIAN = 53 Global Const $TWLG_FAEROESE = 54 Global Const $TWLG_FARSI = 55 Global Const $TWLG_FINNISH = $TWLG_FIN Global Const $TWLG_FRENCH = $TWLG_FRN Global Const $TWLG_FRENCH_BELGIAN = 56 Global Const $TWLG_FRENCH_CANADIAN = $TWLG_FCF Global Const $TWLG_FRENCH_LUXEMBOURG = 57 Global Const $TWLG_FRENCH_SWISS = 58 Global Const $TWLG_GERMAN = $TWLG_GER Global Const $TWLG_GERMAN_AUSTRIAN = 59 Global Const $TWLG_GERMAN_LUXEMBOURG = 60 Global Const $TWLG_GERMAN_LIECHTENSTEIN = 61 Global Const $TWLG_GERMAN_SWISS = 62 Global Const $TWLG_GREEK = 63 Global Const $TWLG_HEBREW = 64 Global Const $TWLG_HUNGARIAN = 65 Global Const $TWLG_ICELANDIC = $TWLG_ICE Global Const $TWLG_INDONESIAN = 66 Global Const $TWLG_ITALIAN = $TWLG_ITN Global Const $TWLG_ITALIAN_SWISS = 67 Global Const $TWLG_JAPANESE = 68 Global Const $TWLG_KOREAN = 69 Global Const $TWLG_KOREAN_JOHAB = 70 Global Const $TWLG_LATVIAN = 71 Global Const $TWLG_LITHUANIAN = 72 Global Const $TWLG_NORWEGIAN = $TWLG_NOR Global Const $TWLG_NORWEGIAN_BOKMAL = 73 Global Const $TWLG_NORWEGIAN_NYNORSK = 74 Global Const $TWLG_POLISH = 75 Global Const $TWLG_PORTUGUESE = $TWLG_POR Global Const $TWLG_PORTUGUESE_BRAZIL = 76 Global Const $TWLG_ROMANIAN = 77 Global Const $TWLG_RUSSIAN = 78 Global Const $TWLG_SERBIAN_LATIN = 79 Global Const $TWLG_SLOVAK = 80 Global Const $TWLG_SLOVENIAN = 81 Global Const $TWLG_SPANISH = $TWLG_SPA Global Const $TWLG_SPANISH_MEXICAN = 82 Global Const $TWLG_SPANISH_MODERN = 83 Global Const $TWLG_SWEDISH = $TWLG_SWE Global Const $TWLG_THAI = 84 Global Const $TWLG_TURKISH = 85 Global Const $TWLG_UKRANIAN = 86 Global Const $TWLG_ASSAMESE = 87 Global Const $TWLG_BENGALI = 88 Global Const $TWLG_BIHARI = 89 Global Const $TWLG_BODO = 90 Global Const $TWLG_DOGRI = 91 Global Const $TWLG_GUJARATI = 92 Global Const $TWLG_HARYANVI = 93 Global Const $TWLG_HINDI = 94 Global Const $TWLG_KANNADA = 95 Global Const $TWLG_KASHMIRI = 96 Global Const $TWLG_MALAYALAM = 97 Global Const $TWLG_MARATHI = 98 Global Const $TWLG_MARWARI = 99 Global Const $TWLG_MEGHALAYAN = 100 Global Const $TWLG_MIZO = 101 Global Const $TWLG_NAGA = 102 Global Const $TWLG_ORISSI = 103 Global Const $TWLG_PUNJABI = 104 Global Const $TWLG_PUSHTU = 105 Global Const $TWLG_SERBIAN_CYRILLIC = 106 Global Const $TWLG_SIKKIMI = 107 Global Const $TWLG_SWEDISH_FINLAND = 108 Global Const $TWLG_TAMIL = 109 Global Const $TWLG_TELUGU = 110 Global Const $TWLG_TRIPURI = 111 Global Const $TWLG_URDU = 112 Global Const $TWLG_VIETNAMESE = 113 ;*************************************************************************** ;* Data Groups = * ;**************************************************************************** Global Const $DG_CONTROL = 0x0001 Global Const $DG_IMAGE = 0x0002 Global Const $DG_AUDIO = 0x0004 ; More Data Functionality may be added in the future. ;* These are for items that need to be determined before DS is opened. ;* NOTE: Supported Functionality constants must be powers of 2 as they are ;* = used as bitflags when Application asks DSM to present a list of DSs. ;* = to support backward capability the App and DS will not use the fields ;* Global Const $DF_DSM2 = 0x10000000 Global Const $DF_APP2 = 0x20000000 Global Const $DF_DS2 = 0x40000000 Global Const $DG_MASK = 0xFFFF ;*************************************************************************** ;* = * ;**************************************************************************** Global Const $DAT_NULL = 0x0000 Global Const $DAT_CUSTOMBASE = 0x8000 ; Data Argument Types for the DG_CONTROL Data Group. * Global Const $DAT_CAPABILITY = 0x0001 Global Const $DAT_EVENT = 0x0002 Global Const $DAT_IDENTITY = 0x0003 Global Const $DAT_PARENT = 0x0004 Global Const $DAT_PENDINGXFERS = 0x0005 Global Const $DAT_SETUPMEMXFER = 0x0006 Global Const $DAT_SETUPFILEXFER = 0x0007 Global Const $DAT_STATUS = 0x0008 Global Const $DAT_USERINTERFACE = 0x0009 Global Const $DAT_XFERGROUP = 0x000a Global Const $DAT_CUSTOMDSDATA = 0x000c Global Const $DAT_DEVICEEVENT = 0x000d Global Const $DAT_FILESYSTEM = 0x000e Global Const $DAT_PASSTHRU = 0x000f Global Const $DAT_CALLBACK = 0x0010 Global Const $DAT_STATUSUTF8 = 0x0011 Global Const $DAT_CALLBACK2 = 0x0012 Global Const $DAT_METRICS = 0x0013 Global Const $DAT_TWAINDIRECT = 0x0014 ; Data Argument Types for the DG_IMAGE Data Group. * Global Const $DAT_IMAGEINFO = 0x0101 Global Const $DAT_IMAGELAYOUT = 0x0102 Global Const $DAT_IMAGEMEMXFER = 0x0103 Global Const $DAT_IMAGENATIVEXFER = 0x0104 Global Const $DAT_IMAGEFILEXFER = 0x0105 Global Const $DAT_CIECOLOR = 0x0106 Global Const $DAT_GRAYRESPONSE = 0x0107 Global Const $DAT_RGBRESPONSE = 0x0108 Global Const $DAT_JPEGCOMPRESSION = 0x0109 Global Const $DAT_PALETTE8 = 0x010a Global Const $DAT_EXTIMAGEINFO = 0x010b Global Const $DAT_FILTER = 0x010c ; Data Argument Types for the DG_AUDIO Data Group. * Global Const $DAT_AUDIOFILEXFER = 0x0201 Global Const $DAT_AUDIOINFO = 0x0202 Global Const $DAT_AUDIONATIVEXFER = 0x0203 ; misplaced * Global Const $DAT_ICCPROFILE = 0x0401 Global Const $DAT_IMAGEMEMFILEXFER = 0x0402 Global Const $DAT_ENTRYPOINT = 0x0403 ;*************************************************************************** ;* Messages = * ;**************************************************************************** ; All message constants are unique. ;* Messages are grouped according to which DATs they are used with.* Global Const $MSG_NULL = 0x0000 Global Const $MSG_CUSTOMBASE = 0x8000 ; Generic messages may be used with any of several DATs. = * Global Const $MSG_GET = 0x0001 Global Const $MSG_GETCURRENT = 0x0002 Global Const $MSG_GETDEFAULT = 0x0003 Global Const $MSG_GETFIRST = 0x0004 Global Const $MSG_GETNEXT = 0x0005 Global Const $MSG_SET = 0x0006 Global Const $MSG_RESET = 0x0007 Global Const $MSG_QUERYSUPPORT = 0x0008 Global Const $MSG_GETHELP = 0x0009 Global Const $MSG_GETLABEL = 0x000a Global Const $MSG_GETLABELENUM = 0x000b Global Const $MSG_SETCONSTRAINT = 0x000c ; Messages used with DAT_NULL = * Global Const $MSG_XFERREADY = 0x0101 Global Const $MSG_CLOSEDSREQ = 0x0102 Global Const $MSG_CLOSEDSOK = 0x0103 Global Const $MSG_DEVICEEVENT = 0X0104 ; Messages used with a pointer to DAT_PARENT data = * Global Const $MSG_OPENDSM = 0x0301 Global Const $MSG_CLOSEDSM = 0x0302 ; Messages used with a pointer to a DAT_IDENTITY structure = * Global Const $MSG_OPENDS = 0x0401 Global Const $MSG_CLOSEDS = 0x0402 Global Const $MSG_USERSELECT = 0x0403 ; Messages used with a pointer to a DAT_USERINTERFACE structure = * Global Const $MSG_DISABLEDS = 0x0501 Global Const $MSG_ENABLEDS = 0x0502 Global Const $MSG_ENABLEDSUIONLY = 0x0503 ; Messages used with a pointer to a DAT_EVENT structure = * Global Const $MSG_PROCESSEVENT = 0x0601 ; Messages used with a pointer to a DAT_PENDINGXFERS structure = * Global Const $MSG_ENDXFER = 0x0701 Global Const $MSG_STOPFEEDER = 0x0702 ; Messages used with a pointer to a DAT_FILESYSTEM structure = * Global Const $MSG_CHANGEDIRECTORY = 0x0801 Global Const $MSG_CREATEDIRECTORY = 0x0802 Global Const $MSG_DELETE = 0x0803 Global Const $MSG_FORMATMEDIA = 0x0804 Global Const $MSG_GETCLOSE = 0x0805 Global Const $MSG_GETFIRSTFILE = 0x0806 Global Const $MSG_GETINFO = 0x0807 Global Const $MSG_GETNEXTFILE = 0x0808 Global Const $MSG_RENAME = 0x0809 Global Const $MSG_COPY = 0x080A Global Const $MSG_AUTOMATICCAPTUREDIRECTORY = 0x080B ; Messages used with a pointer to a DAT_PASSTHRU structure = * Global Const $MSG_PASSTHRU = 0x0901 ; used with DAT_CALLBACK * Global Const $MSG_REGISTER_CALLBACK = 0x0902 ; used with DAT_CAPABILITY * Global Const $MSG_RESETALL = 0x0A01 ; used with DAT_TWAINDIRECT * Global Const $MSG_SETTASK = 0x0B01 ;*************************************************************************** ;* Capabilities = * ;**************************************************************************** Global Const $CAP_CUSTOMBASE = 0x8000 ; Base of custom capabilities * ; all data sources are REQUIRED to support these caps * Global Const $CAP_XFERCOUNT = 0x0001 ; image data sources are REQUIRED to support these caps * Global Const $ICAP_COMPRESSION = 0x0100 Global Const $ICAP_PIXELTYPE = 0x0101 Global Const $ICAP_UNITS = 0x0102 Global Const $ICAP_XFERMECH = 0x0103 ; all data sources MAY support these caps * Global Const $CAP_AUTHOR = 0x1000 Global Const $CAP_CAPTION = 0x1001 Global Const $CAP_FEEDERENABLED = 0x1002 Global Const $CAP_FEEDERLOADED = 0x1003 Global Const $CAP_TIMEDATE = 0x1004 Global Const $CAP_SUPPORTEDCAPS = 0x1005 Global Const $CAP_EXTENDEDCAPS = 0x1006 Global Const $CAP_AUTOFEED = 0x1007 Global Const $CAP_CLEARPAGE = 0x1008 Global Const $CAP_FEEDPAGE = 0x1009 Global Const $CAP_REWINDPAGE = 0x100a Global Const $CAP_INDICATORS = 0x100b Global Const $CAP_PAPERDETECTABLE = 0x100d Global Const $CAP_UICONTROLLABLE = 0x100e Global Const $CAP_DEVICEONLINE = 0x100f Global Const $CAP_AUTOSCAN = 0x1010 Global Const $CAP_THUMBNAILSENABLED = 0x1011 Global Const $CAP_DUPLEX = 0x1012 Global Const $CAP_DUPLEXENABLED = 0x1013 Global Const $CAP_ENABLEDSUIONLY = 0x1014 Global Const $CAP_CUSTOMDSDATA = 0x1015 Global Const $CAP_ENDORSER = 0x1016 Global Const $CAP_JOBCONTROL = 0x1017 Global Const $CAP_ALARMS = 0x1018 Global Const $CAP_ALARMVOLUME = 0x1019 Global Const $CAP_AUTOMATICCAPTURE = 0x101a Global Const $CAP_TIMEBEFOREFIRSTCAPTURE = 0x101b Global Const $CAP_TIMEBETWEENCAPTURES = 0x101c Global Const $CAP_MAXBATCHBUFFERS = 0x101e Global Const $CAP_DEVICETIMEDATE = 0x101f Global Const $CAP_POWERSUPPLY = 0x1020 Global Const $CAP_CAMERAPREVIEWUI = 0x1021 Global Const $CAP_DEVICEEVENT = 0x1022 Global Const $CAP_SERIALNUMBER = 0x1024 Global Const $CAP_PRINTER = 0x1026 Global Const $CAP_PRINTERENABLED = 0x1027 Global Const $CAP_PRINTERINDEX = 0x1028 Global Const $CAP_PRINTERMODE = 0x1029 Global Const $CAP_PRINTERSTRING = 0x102a Global Const $CAP_PRINTERSUFFIX = 0x102b Global Const $CAP_LANGUAGE = 0x102c Global Const $CAP_FEEDERALIGNMENT = 0x102d Global Const $CAP_FEEDERORDER = 0x102e Global Const $CAP_REACQUIREALLOWED = 0x1030 Global Const $CAP_BATTERYMINUTES = 0x1032 Global Const $CAP_BATTERYPERCENTAGE = 0x1033 Global Const $CAP_CAMERASIDE = 0x1034 Global Const $CAP_SEGMENTED = 0x1035 Global Const $CAP_CAMERAENABLED = 0x1036 Global Const $CAP_CAMERAORDER = 0x1037 Global Const $CAP_MICRENABLED = 0x1038 Global Const $CAP_FEEDERPREP = 0x1039 Global Const $CAP_FEEDERPOCKET = 0x103a Global Const $CAP_AUTOMATICSENSEMEDIUM = 0x103b Global Const $CAP_CUSTOMINTERFACEGUID = 0x103c Global Const $CAP_SUPPORTEDCAPSSEGMENTUNIQUE = 0x103d Global Const $CAP_SUPPORTEDDATS = 0x103e Global Const $CAP_DOUBLEFEEDDETECTION = 0x103f Global Const $CAP_DOUBLEFEEDDETECTIONLENGTH = 0x1040 Global Const $CAP_DOUBLEFEEDDETECTIONSENSITIVITY = 0x1041 Global Const $CAP_DOUBLEFEEDDETECTIONRESPONSE = 0x1042 Global Const $CAP_PAPERHANDLING = 0x1043 Global Const $CAP_INDICATORSMODE = 0x1044 Global Const $CAP_PRINTERVERTICALOFFSET = 0x1045 Global Const $CAP_POWERSAVETIME = 0x1046 Global Const $CAP_PRINTERCHARROTATION = 0x1047 Global Const $CAP_PRINTERFONTSTYLE = 0x1048 Global Const $CAP_PRINTERINDEXLEADCHAR = 0x1049 Global Const $CAP_PRINTERINDEXMAXVALUE = 0x104A Global Const $CAP_PRINTERINDEXNUMDIGITS = 0x104B Global Const $CAP_PRINTERINDEXSTEP = 0x104C Global Const $CAP_PRINTERINDEXTRIGGER = 0x104D Global Const $CAP_PRINTERSTRINGPREVIEW = 0x104E Global Const $CAP_SHEETCOUNT = 0x104F ; image data sources MAY support these caps * Global Const $ICAP_AUTOBRIGHT = 0x1100 Global Const $ICAP_BRIGHTNESS = 0x1101 Global Const $ICAP_CONTRAST = 0x1103 Global Const $ICAP_CUSTHALFTONE = 0x1104 Global Const $ICAP_EXPOSURETIME = 0x1105 Global Const $ICAP_FILTER = 0x1106 Global Const $ICAP_FLASHUSED = 0x1107 Global Const $ICAP_GAMMA = 0x1108 Global Const $ICAP_HALFTONES = 0x1109 Global Const $ICAP_HIGHLIGHT = 0x110a Global Const $ICAP_IMAGEFILEFORMAT = 0x110c Global Const $ICAP_LAMPSTATE = 0x110d Global Const $ICAP_LIGHTSOURCE = 0x110e Global Const $ICAP_ORIENTATION = 0x1110 Global Const $ICAP_PHYSICALWIDTH = 0x1111 Global Const $ICAP_PHYSICALHEIGHT = 0x1112 Global Const $ICAP_SHADOW = 0x1113 Global Const $ICAP_FRAMES = 0x1114 Global Const $ICAP_XNATIVERESOLUTION = 0x1116 Global Const $ICAP_YNATIVERESOLUTION = 0x1117 Global Const $ICAP_XRESOLUTION = 0x1118 Global Const $ICAP_YRESOLUTION = 0x1119 Global Const $ICAP_MAXFRAMES = 0x111a Global Const $ICAP_TILES = 0x111b Global Const $ICAP_BITORDER = 0x111c Global Const $ICAP_CCITTKFACTOR = 0x111d Global Const $ICAP_LIGHTPATH = 0x111e Global Const $ICAP_PIXELFLAVOR = 0x111f Global Const $ICAP_PLANARCHUNKY = 0x1120 Global Const $ICAP_ROTATION = 0x1121 Global Const $ICAP_SUPPORTEDSIZES = 0x1122 Global Const $ICAP_THRESHOLD = 0x1123 Global Const $ICAP_XSCALING = 0x1124 Global Const $ICAP_YSCALING = 0x1125 Global Const $ICAP_BITORDERCODES = 0x1126 Global Const $ICAP_PIXELFLAVORCODES = 0x1127 Global Const $ICAP_JPEGPIXELTYPE = 0x1128 Global Const $ICAP_TIMEFILL = 0x112a Global Const $ICAP_BITDEPTH = 0x112b Global Const $ICAP_BITDEPTHREDUCTION = 0x112c Global Const $ICAP_UNDEFINEDIMAGESIZE = 0x112d Global Const $ICAP_IMAGEDATASET = 0x112e Global Const $ICAP_EXTIMAGEINFO = 0x112f Global Const $ICAP_MINIMUMHEIGHT = 0x1130 Global Const $ICAP_MINIMUMWIDTH = 0x1131 Global Const $ICAP_AUTODISCARDBLANKPAGES = 0x1134 Global Const $ICAP_FLIPROTATION = 0x1136 Global Const $ICAP_BARCODEDETECTIONENABLED = 0x1137 Global Const $ICAP_SUPPORTEDBARCODETYPES = 0x1138 Global Const $ICAP_BARCODEMAXSEARCHPRIORITIES = 0x1139 Global Const $ICAP_BARCODESEARCHPRIORITIES = 0x113a Global Const $ICAP_BARCODESEARCHMODE = 0x113b Global Const $ICAP_BARCODEMAXRETRIES = 0x113c Global Const $ICAP_BARCODETIMEOUT = 0x113d Global Const $ICAP_ZOOMFACTOR = 0x113e Global Const $ICAP_PATCHCODEDETECTIONENABLED = 0x113f Global Const $ICAP_SUPPORTEDPATCHCODETYPES = 0x1140 Global Const $ICAP_PATCHCODEMAXSEARCHPRIORITIES = 0x1141 Global Const $ICAP_PATCHCODESEARCHPRIORITIES = 0x1142 Global Const $ICAP_PATCHCODESEARCHMODE = 0x1143 Global Const $ICAP_PATCHCODEMAXRETRIES = 0x1144 Global Const $ICAP_PATCHCODETIMEOUT = 0x1145 Global Const $ICAP_FLASHUSED2 = 0x1146 Global Const $ICAP_IMAGEFILTER = 0x1147 Global Const $ICAP_NOISEFILTER = 0x1148 Global Const $ICAP_OVERSCAN = 0x1149 Global Const $ICAP_AUTOMATICBORDERDETECTION = 0x1150 Global Const $ICAP_AUTOMATICDESKEW = 0x1151 Global Const $ICAP_AUTOMATICROTATE = 0x1152 Global Const $ICAP_JPEGQUALITY = 0x1153 Global Const $ICAP_FEEDERTYPE = 0x1154 Global Const $ICAP_ICCPROFILE = 0x1155 Global Const $ICAP_AUTOSIZE = 0x1156 Global Const $ICAP_AUTOMATICCROPUSESFRAME = 0x1157 Global Const $ICAP_AUTOMATICLENGTHDETECTION = 0x1158 Global Const $ICAP_AUTOMATICCOLORENABLED = 0x1159 Global Const $ICAP_AUTOMATICCOLORNONCOLORPIXELTYPE = 0x115a Global Const $ICAP_COLORMANAGEMENTENABLED = 0x115b Global Const $ICAP_IMAGEMERGE = 0x115c Global Const $ICAP_IMAGEMERGEHEIGHTTHRESHOLD = 0x115d Global Const $ICAP_SUPPORTEDEXTIMAGEINFO = 0x115e Global Const $ICAP_FILMTYPE = 0x115f Global Const $ICAP_MIRROR = 0x1160 Global Const $ICAP_JPEGSUBSAMPLING = 0x1161 ; image data sources MAY support these audio caps * Global Const $ACAP_XFERMECH = 0x1202 ;************************************************************************** ;* = Extended Image Info Attributes section = Added 1.7 = * ;*************************************************************************** Global Const $TWEI_BARCODEX = 0x1200 Global Const $TWEI_BARCODEY = 0x1201 Global Const $TWEI_BARCODETEXT = 0x1202 Global Const $TWEI_BARCODETYPE = 0x1203 Global Const $TWEI_DESHADETOP = 0x1204 Global Const $TWEI_DESHADELEFT = 0x1205 Global Const $TWEI_DESHADEHEIGHT = 0x1206 Global Const $TWEI_DESHADEWIDTH = 0x1207 Global Const $TWEI_DESHADESIZE = 0x1208 Global Const $TWEI_SPECKLESREMOVED = 0x1209 Global Const $TWEI_HORZLINEXCOORD = 0x120A Global Const $TWEI_HORZLINEYCOORD = 0x120B Global Const $TWEI_HORZLINELENGTH = 0x120C Global Const $TWEI_HORZLINETHICKNESS = 0x120D Global Const $TWEI_VERTLINEXCOORD = 0x120E Global Const $TWEI_VERTLINEYCOORD = 0x120F Global Const $TWEI_VERTLINELENGTH = 0x1210 Global Const $TWEI_VERTLINETHICKNESS = 0x1211 Global Const $TWEI_PATCHCODE = 0x1212 Global Const $TWEI_ENDORSEDTEXT = 0x1213 Global Const $TWEI_FORMCONFIDENCE = 0x1214 Global Const $TWEI_FORMTEMPLATEMATCH = 0x1215 Global Const $TWEI_FORMTEMPLATEPAGEMATCH = 0x1216 Global Const $TWEI_FORMHORZDOCOFFSET = 0x1217 Global Const $TWEI_FORMVERTDOCOFFSET = 0x1218 Global Const $TWEI_BARCODECOUNT = 0x1219 Global Const $TWEI_BARCODECONFIDENCE = 0x121A Global Const $TWEI_BARCODEROTATION = 0x121B Global Const $TWEI_BARCODETEXTLENGTH = 0x121C Global Const $TWEI_DESHADECOUNT = 0x121D Global Const $TWEI_DESHADEBLACKCOUNTOLD = 0x121E Global Const $TWEI_DESHADEBLACKCOUNTNEW = 0x121F Global Const $TWEI_DESHADEBLACKRLMIN = 0x1220 Global Const $TWEI_DESHADEBLACKRLMAX = 0x1221 Global Const $TWEI_DESHADEWHITECOUNTOLD = 0x1222 Global Const $TWEI_DESHADEWHITECOUNTNEW = 0x1223 Global Const $TWEI_DESHADEWHITERLMIN = 0x1224 Global Const $TWEI_DESHADEWHITERLAVE = 0x1225 Global Const $TWEI_DESHADEWHITERLMAX = 0x1226 Global Const $TWEI_BLACKSPECKLESREMOVED = 0x1227 Global Const $TWEI_WHITESPECKLESREMOVED = 0x1228 Global Const $TWEI_HORZLINECOUNT = 0x1229 Global Const $TWEI_VERTLINECOUNT = 0x122A Global Const $TWEI_DESKEWSTATUS = 0x122B Global Const $TWEI_SKEWORIGINALANGLE = 0x122C Global Const $TWEI_SKEWFINALANGLE = 0x122D Global Const $TWEI_SKEWCONFIDENCE = 0x122E Global Const $TWEI_SKEWWINDOWX1 = 0x122F Global Const $TWEI_SKEWWINDOWY1 = 0x1230 Global Const $TWEI_SKEWWINDOWX2 = 0x1231 Global Const $TWEI_SKEWWINDOWY2 = 0x1232 Global Const $TWEI_SKEWWINDOWX3 = 0x1233 Global Const $TWEI_SKEWWINDOWY3 = 0x1234 Global Const $TWEI_SKEWWINDOWX4 = 0x1235 Global Const $TWEI_SKEWWINDOWY4 = 0x1236 Global Const $TWEI_BOOKNAME = 0x1238 Global Const $TWEI_CHAPTERNUMBER = 0x1239 Global Const $TWEI_DOCUMENTNUMBER = 0x123A Global Const $TWEI_PAGENUMBER = 0x123B Global Const $TWEI_CAMERA = 0x123C Global Const $TWEI_FRAMENUMBER = 0x123D Global Const $TWEI_FRAME = 0x123E Global Const $TWEI_PIXELFLAVOR = 0x123F Global Const $TWEI_ICCPROFILE = 0x1240 Global Const $TWEI_LASTSEGMENT = 0x1241 Global Const $TWEI_SEGMENTNUMBER = 0x1242 Global Const $TWEI_MAGDATA = 0x1243 Global Const $TWEI_MAGTYPE = 0x1244 Global Const $TWEI_PAGESIDE = 0x1245 Global Const $TWEI_FILESYSTEMSOURCE = 0x1246 Global Const $TWEI_IMAGEMERGED = 0x1247 Global Const $TWEI_MAGDATALENGTH = 0x1248 Global Const $TWEI_PAPERCOUNT = 0x1249 Global Const $TWEI_PRINTERTEXT = 0x124A Global Const $TWEI_TWAINDIRECTMETADATA = 0x124B Global Const $TWEJ_NONE = 0x0000 Global Const $TWEJ_MIDSEPARATOR = 0x0001 Global Const $TWEJ_PATCH1 = 0x0002 Global Const $TWEJ_PATCH2 = 0x0003 Global Const $TWEJ_PATCH3 = 0x0004 Global Const $TWEJ_PATCH4 = 0x0005 Global Const $TWEJ_PATCH6 = 0x0006 Global Const $TWEJ_PATCHT = 0x0007 ;************************************************************************** ;* = Return Codes and Condition Codes section = * ;*************************************************************************** Global Const $TWRC_CUSTOMBASE = 0x8000 Global Const $TWRC_SUCCESS = 0 Global Const $TWRC_FAILURE = 1 Global Const $TWRC_CHECKSTATUS = 2 Global Const $TWRC_CANCEL = 3 Global Const $TWRC_DSEVENT = 4 Global Const $TWRC_NOTDSEVENT = 5 Global Const $TWRC_XFERDONE = 6 Global Const $TWRC_ENDOFLIST = 7 Global Const $TWRC_INFONOTSUPPORTED = 8 Global Const $TWRC_DATANOTAVAILABLE = 9 Global Const $TWRC_BUSY = 10 Global Const $TWRC_SCANNERLOCKED = 11 ; Condition Codes: Application gets these by doing DG_CONTROL DAT_STATUS MSG_GET. = * Global Const $TWCC_CUSTOMBASE = 0x8000 Global Const $TWCC_SUCCESS = 0 Global Const $TWCC_BUMMER = 1 Global Const $TWCC_LOWMEMORY = 2 Global Const $TWCC_NODS = 3 Global Const $TWCC_MAXCONNECTIONS = 4 Global Const $TWCC_OPERATIONERROR = 5 Global Const $TWCC_BADCAP = 6 Global Const $TWCC_BADPROTOCOL = 9 Global Const $TWCC_BADVALUE = 10 Global Const $TWCC_SEQERROR = 11 Global Const $TWCC_BADDEST = 12 Global Const $TWCC_CAPUNSUPPORTED = 13 Global Const $TWCC_CAPBADOPERATION = 14 Global Const $TWCC_CAPSEQERROR = 15 Global Const $TWCC_DENIED = 16 Global Const $TWCC_FILEEXISTS = 17 Global Const $TWCC_FILENOTFOUND = 18 Global Const $TWCC_NOTEMPTY = 19 Global Const $TWCC_PAPERJAM = 20 Global Const $TWCC_PAPERDOUBLEFEED = 21 Global Const $TWCC_FILEWRITEERROR = 22 Global Const $TWCC_CHECKDEVICEONLINE = 23 Global Const $TWCC_INTERLOCK = 24 Global Const $TWCC_DAMAGEDCORNER = 25 Global Const $TWCC_FOCUSERROR = 26 Global Const $TWCC_DOCTOOLIGHT = 27 Global Const $TWCC_DOCTOODARK = 28 Global Const $TWCC_NOMEDIA = 29 ; 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 * Global Const $TWQC_GET = 0x0001 Global Const $TWQC_SET = 0x0002 Global Const $TWQC_GETDEFAULT = 0x0004 Global Const $TWQC_GETCURRENT = 0x0008 Global Const $TWQC_RESET = 0x0010 Global Const $TWQC_SETCONSTRAINT = 0x0020 Global Const $TWQC_GETHELP = 0x0100 Global Const $TWQC_GETLABEL = 0x0200 Global Const $TWQC_GETLABELENUM = 0x0400 ;*************************************************************************** ;* Depreciated Items = * ;**************************************************************************** Global Const $TWTY_STR1024 = 0x000d Global Const $TWTY_UNI512 = 0x000e Global Const $TWFF_JPN = 12 Global Const $DAT_TWUNKIDENTITY = 0x000b Global Const $DAT_SETUPFILEXFER2 = 0x0301 Global Const $CAP_CLEARBUFFERS = 0x101d Global Const $CAP_SUPPORTEDCAPSEXT = 0x100c ;Global Const $CAP_FILESYSTEM = //0x???? Global Const $CAP_PAGEMULTIPLEACQUIRE = 0x1023 Global Const $CAP_PAPERBINDING = 0x102f Global Const $CAP_PASSTHRU = 0x1031 Global Const $CAP_POWERDOWNTIME = 0x1034 Global Const $ACAP_AUDIOFILEFORMAT = 0x1201 Global Const $MSG_CHECKSTATUS = 0x0201 Global Const $MSG_INVOKE_CALLBACK = 0x0903 ; Mac Only, deprecated - use DAT_NULL and MSG_xxx instead * Global Const $TWQC_CONSTRAINABLE = 0x0040 Global Const $TWSX_FILE2 = 3 ; CAP_FILESYSTEM values (FS_ means file system) * Global Const $TWFS_FILESYSTEM = 0 Global Const $TWFS_RECURSIVEDELETE = 1 ; ICAP_PIXELTYPE values (PT_ means Pixel Type) * Global Const $TWPT_SRGB64 = 11 Global Const $TWPT_BGR = 12 Global Const $TWPT_CIELAB = 13 Global Const $TWPT_CIELUV = 14 Global Const $TWPT_YCBCR = 15 ; ICAP_SUPPORTEDSIZES values (SS_ means Supported Sizes) * Global Const $TWSS_B = 8 Global Const $TWSS_A4LETTER = $TWSS_A4 Global Const $TWSS_B3 = $TWSS_ISOB3 Global Const $TWSS_B4 = $TWSS_ISOB4 Global Const $TWSS_B6 = $TWSS_ISOB6 Global Const $TWSS_B5LETTER = $TWSS_JISB5 ; ACAP_AUDIOFILEFORMAT values (AF_ means audio format). = Added 1.8 * Global Const $TWAF_WAV = 0 Global Const $TWAF_AIFF = 1 Global Const $TWAF_AU = 3 Global Const $TWAF_SND = 4 ; CAP_CLEARBUFFERS values * Global Const $TWCB_AUTO = 0 Global Const $TWCB_CLEAR = 1 Global Const $TWCB_NOCLEAR = 2