// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ietwain.pas' rev: 4.00

#ifndef ietwainHPP
#define ietwainHPP

#pragma delphiheader begin
#pragma option push -w-
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Ietwain
{
//-- type declarations -------------------------------------------------------
typedef unsigned TW_HANDLE;

typedef void *TW_MEMREF;

typedef Word HFILE;

typedef Byte TVectorB[1];

typedef Byte *PVectorB;

typedef char TW_STR32[34];

typedef char *pTW_STR32;

typedef char TW_STR64[66];

typedef char *pTW_STR64;

typedef char TW_STR128[130];

typedef char *pTW_STR128;

typedef char TW_STR255[256];

typedef char *pTW_STR255;

typedef Shortint TW_INT8;

typedef short TW_INT16;

typedef int TW_INT32;

typedef Byte TW_UINT8;

typedef Word TW_UINT16;

typedef int TW_UINT32;

typedef Word TW_BOOL;

typedef Shortint *pTW_INT8;

typedef short *pTW_INT16;

typedef int *pTW_INT32;

typedef Byte *pTW_UINT8;

typedef Word *pTW_UINT16;

typedef int *pTW_UINT32;

typedef Word *pTW_BOOL;

#pragma pack(push, 1)
struct TW_FIX32
{
	
	union
	{
		struct 
		{
			Word Whole;
			Word Frac;
			
		};
		struct 
		{
			int Long;
			
		};
		
	};
} ;
#pragma pack(pop)

typedef TW_FIX32 *pTW_FIX32;

typedef Shortint TW_AINT8[1];

typedef short TW_AINT16[1];

typedef int TW_AINT32[1];

typedef Byte TW_AUINT8[1];

typedef Word TW_AUINT16[1];

typedef int TW_AUINT32[1];

typedef Word TW_ABOOL[1];

typedef TW_FIX32 TW_AFIX32[1];

typedef char TW_ASTR32[1][34];

typedef char TW_ASTR64[1][66];

typedef char TW_ASTR128[1][130];

typedef char TW_ASTR255[1][256];

typedef Shortint *pTW_AINT8;

typedef short *pTW_AINT16;

typedef int *pTW_AINT32;

typedef Byte *pTW_AUINT8;

typedef Word *pTW_AUINT16;

typedef int *pTW_AUINT32;

typedef Word *pTW_ABOOL;

typedef TW_FIX32 *pTW_AFIX32;

typedef char *pTW_ASTR32;

typedef char *pTW_ASTR64;

typedef char *pTW_ASTR128;

typedef char *pTW_ASTR255;

#pragma pack(push, 1)
struct TW_CIEPOINT
{
	TW_FIX32 X;
	TW_FIX32 Y;
	TW_FIX32 Z;
} ;
#pragma pack(pop)

typedef TW_CIEPOINT *pTW_CIEPOINT;

#pragma pack(push, 1)
struct TW_DECODEFUNCTION
{
	TW_FIX32 StartIn;
	TW_FIX32 BreakIn;
	TW_FIX32 EndIn;
	TW_FIX32 StartOut;
	TW_FIX32 BreakOut;
	TW_FIX32 EndOut;
	TW_FIX32 Gamma;
	TW_FIX32 SampleCount;
} ;
#pragma pack(pop)

typedef TW_DECODEFUNCTION *pTW_DECODEFUNCTION;

#pragma pack(push, 1)
struct TW_ELEMENT8
{
	Byte Index;
	Byte Channel1;
	Byte Channel2;
	Byte Channel3;
} ;
#pragma pack(pop)

typedef TW_ELEMENT8 *pTW_ELEMENT8;

#pragma pack(push, 1)
struct TW_FRAME
{
	TW_FIX32 Left;
	TW_FIX32 Top;
	TW_FIX32 Right;
	TW_FIX32 Bottom;
} ;
#pragma pack(pop)

typedef TW_FRAME *pTW_FRAME;

typedef TW_FRAME TW_AFRAME[1];

typedef TW_FRAME *pTW_AFRAME;

#pragma pack(push, 1)
struct TW_MEMORY
{
	int Flags;
	int Length;
	void *TheMem;
} ;
#pragma pack(pop)

typedef TW_MEMORY *pTW_MEMORY;

#pragma pack(push, 1)
struct TW_TRANSFORMSTAGE
{
	TW_DECODEFUNCTION Decode[3];
	TW_FIX32 Mix[3][3];
} ;
#pragma pack(pop)

typedef TW_TRANSFORMSTAGE *pTW_TRANSFORMSTAGE;

#pragma pack(push, 1)
struct TW_VERSION
{
	Word MajorNum;
	Word MinorNum;
	Word Language;
	Word Country;
	char Info[34];
} ;
#pragma pack(pop)

typedef TW_VERSION *pTW_VERSION;

#pragma pack(push, 1)
struct TW_ARRAY
{
	Word ItemType;
	int NumItems;
	int ItemList[1];
} ;
#pragma pack(pop)

typedef TW_ARRAY *pTW_ARRAY;

#pragma pack(push, 1)
struct TW_ENUMERATION
{
	Word ItemType;
	int NumItems;
	int CurrentIndex;
	int DefaultIndex;
	int ItemList[1];
} ;
#pragma pack(pop)

typedef TW_ENUMERATION *pTW_ENUMERATION;

#pragma pack(push, 1)
struct TW_ONEVALUE
{
	Word ItemType;
	int Item;
} ;
#pragma pack(pop)

typedef TW_ONEVALUE *pTW_ONEVALUE;

#pragma pack(push, 1)
struct TW_RANGE
{
	Word ItemType;
	int MinValue;
	int MaxValue;
	int StepSize;
	int DefaultValue;
	int CurrentValue;
} ;
#pragma pack(pop)

typedef TW_RANGE *pTW_RANGE;

#pragma pack(push, 1)
struct TW_CAPABILITY
{
	Word Cap;
	Word ConType;
	unsigned hContainer;
} ;
#pragma pack(pop)

typedef TW_CAPABILITY *pTW_CAPABILITY;

#pragma pack(push, 1)
struct TW_CIECOLOR
{
	Word ColorSpace;
	short LowEndian;
	short DeviceDependent;
	int VersionNumber;
	TW_TRANSFORMSTAGE StageABC;
	TW_TRANSFORMSTAGE StageLMN;
	TW_CIEPOINT WhitePoint;
	TW_CIEPOINT BlackPoint;
	TW_CIEPOINT WhitePaper;
	TW_CIEPOINT BlackInk;
	TW_FIX32 Samples[1];
} ;
#pragma pack(pop)

typedef TW_CIECOLOR *pTW_CIECOLOR;

#pragma pack(push, 1)
struct TW_EVENT
{
	void *pEvent;
	Word TWMessage;
} ;
#pragma pack(pop)

typedef TW_EVENT *pTW_EVENT;

#pragma pack(push, 1)
struct TW_GRAYRESPONSE
{
	TW_ELEMENT8 Response[1];
} ;
#pragma pack(pop)

typedef TW_GRAYRESPONSE *pTW_GRAYRESPONSE;

#pragma pack(push, 1)
struct TW_IDENTITY
{
	int Id;
	TW_VERSION Version;
	Word ProtocolMajor;
	Word ProtocolMinor;
	int SupportedGroups;
	char Manufacturer[34];
	char ProductFamily[34];
	char ProductName[34];
} ;
#pragma pack(pop)

typedef TW_IDENTITY *pTW_IDENTITY;

#pragma pack(push, 1)
struct TW_IMAGEINFO
{
	TW_FIX32 XResolution;
	TW_FIX32 YResolution;
	int ImageWidth;
	int ImageLength;
	short SamplesPerPixel;
	short BitsPerSample[8];
	short BitsPerPixel;
	Word Planar;
	short PixelType;
	Word Compression;
} ;
#pragma pack(pop)

typedef TW_IMAGEINFO *pTW_IMAGEINFO;

#pragma pack(push, 1)
struct TW_IMAGELAYOUT
{
	TW_FRAME Frame;
	int DocumentNumber;
	int PageNumber;
	int FrameNumber;
} ;
#pragma pack(pop)

typedef TW_IMAGELAYOUT *pTW_IMAGELAYOUT;

#pragma pack(push, 1)
struct TW_IMAGEMEMXFER
{
	Word Compression;
	int BytesPerRow;
	int Columns;
	int Rows;
	int XOffset;
	int YOffset;
	int BytesWritten;
	TW_MEMORY Memory;
} ;
#pragma pack(pop)

typedef TW_IMAGEMEMXFER *pTW_IMAGEMEMXFER;

#pragma pack(push, 1)
struct TW_JPEGCOMPRESSION
{
	Word ColorSpace;
	int SubSampling;
	Word NumComponents;
	Word RestartFrequency;
	Word QuantMap[4];
	TW_MEMORY QuantTable[4];
	Word HuffmanMap[4];
	TW_MEMORY HuffmanDC[2];
	TW_MEMORY HuffmanAC[2];
} ;
#pragma pack(pop)

typedef TW_JPEGCOMPRESSION *pTW_JPEGCOMPRESSION;

#pragma pack(push, 1)
struct TW_PALETTE8
{
	Word NumColors;
	Word PaletteType;
	TW_ELEMENT8 Colors[256];
} ;
#pragma pack(pop)

typedef TW_PALETTE8 *pTW_PALETTE8;

#pragma pack(push, 1)
struct TW_PENDINGXFERS
{
	Word Count;
	int Reserved;
} ;
#pragma pack(pop)

typedef TW_PENDINGXFERS *pTW_PENDINGXFERS;

#pragma pack(push, 1)
struct TW_RGBRESPONSE
{
	TW_ELEMENT8 Response[1];
} ;
#pragma pack(pop)

typedef TW_RGBRESPONSE *pRGBRESPONSE;

#pragma pack(push, 1)
struct TW_SETUPFILEXFER
{
	char FileName[256];
	Word Format;
	short VRefNum;
} ;
#pragma pack(pop)

typedef TW_SETUPFILEXFER *pTW_SETUPFILEXFER;

#pragma pack(push, 1)
struct TW_SETUPMEMXFER
{
	int MinBufSize;
	int MaxBufSize;
	int Preferred;
} ;
#pragma pack(pop)

typedef TW_SETUPMEMXFER *pTW_SETUPMEMXFER;

#pragma pack(push, 1)
struct TW_STATUS
{
	Word ConditionCode;
	Word Reserved;
} ;
#pragma pack(pop)

typedef TW_STATUS *pTW_STATUS;

#pragma pack(push, 1)
struct TW_USERINTERFACE
{
	Word ShowUI;
	Word ModalUI;
	unsigned hParent;
} ;
#pragma pack(pop)

typedef TW_USERINTERFACE *pTW_USERINTERFACE;

#pragma pack(push, 1)
struct TW_TWUNKIDENTITY
{
	TW_IDENTITY identity;
	char dsPcath[256];
} ;
#pragma pack(pop)

typedef TW_TWUNKIDENTITY *pTW_TWUNKIDENTITY;

#pragma pack(push, 1)
struct TW_TWUNKDSENTRYPARAMS
{
	Shortint destFlag;
	TW_IDENTITY dest;
	int dataGroup;
	short dataArgType;
	short message;
	int pDataSize;
} ;
#pragma pack(pop)

typedef TW_TWUNKDSENTRYPARAMS *pTW_TWUNKDSENTRYPARAMS;

#pragma pack(push, 1)
struct TW_TWUNKDSENTRYRETURN
{
	Word returnCode;
	Word conditionCode;
	int pDataSize;
} ;
#pragma pack(pop)

typedef TW_TWUNKDSENTRYRETURN *pTW_TWUNKDSENTRYRETURN;

#pragma pack(push, 1)
struct TW_CAPEXT
{
	Word Cap;
	Word Properties;
} ;
#pragma pack(pop)

typedef TW_CAPEXT *pTW_CAPEXT;

typedef Word __stdcall (*TDSM_Entry_Proc)(pTW_IDENTITY pOrigin, pTW_IDENTITY pDest, int DG, Word DAT
	, Word MSG, void * pData);

typedef TDSM_Entry_Proc *pDSM_Entry_Proc;

typedef Word __stdcall (*TDS_Entry_Proc)(pTW_IDENTITY pOrigin, int DG, Word DAT, Word MSG, void * pData
	);

typedef TDS_Entry_Proc *pDS_Entry_Proc;

//-- var, const, procedure ---------------------------------------------------
static const Shortint HFILE_ERROR = 0xffffffff;
static const Shortint FILE_END = 0x2;
extern PACKAGE char CR_LF[3];
static const Shortint TWON_PROTOCOLMINOR = 0x6;
static const Shortint TWON_PROTOCOLMAJOR = 0x1;
static const Shortint TWON_ARRAY = 0x3;
static const Shortint TWON_ENUMERATION = 0x4;
static const Shortint TWON_ONEVALUE = 0x5;
static const Shortint TWON_RANGE = 0x6;
static const Word TWON_ICONID = 0x3c2;
static const Word TWON_DSMID = 0x1cd;
static const Shortint TWON_DSMCODEID = 0x3f;
static const Byte TWON_DONTCARE8 = 0xff;
static const Word TWON_DONTCARE16 = 0xffff;
static const unsigned TWON_DONTCARE32 = 0xffffffff;
static const Shortint TWMF_APPOWNS = 0x1;
static const Shortint TWMF_DSMOWNS = 0x2;
static const Shortint TWMF_DSOWNS = 0x4;
static const Shortint TWMF_POINTER = 0x8;
static const Shortint TWMF_HANDLE = 0x10;
static const Shortint TWPA_RGB = 0x0;
static const Shortint TWPA_GRAY = 0x1;
static const Shortint TWPA_CMY = 0x2;
static const Shortint TWTY_INT8 = 0x0;
static const Shortint TWTY_INT16 = 0x1;
static const Shortint TWTY_INT32 = 0x2;
static const Shortint TWTY_UINT8 = 0x3;
static const Shortint TWTY_UINT16 = 0x4;
static const Shortint TWTY_UINT32 = 0x5;
static const Shortint TWTY_BOOL = 0x6;
static const Shortint TWTY_FIX32 = 0x7;
static const Shortint TWTY_FRAME = 0x8;
static const Shortint TWTY_STR32 = 0x9;
static const Shortint TWTY_STR64 = 0xa;
static const Shortint TWTY_STR128 = 0xb;
static const Shortint TWTY_STR255 = 0xc;
static const Shortint TWBO_LSBFIRST = 0x0;
static const Shortint TWBO_MSBFIRST = 0x1;
static const Shortint TWCP_NONE = 0x0;
static const Shortint TWCP_PACKBITS = 0x1;
static const Shortint TWCP_GROUP31D = 0x2;
static const Shortint TWCP_GROUP31DEOL = 0x3;
static const Shortint TWCP_GROUP32D = 0x4;
static const Shortint TWCP_GROUP4 = 0x5;
static const Shortint TWCP_JPEG = 0x6;
static const Shortint TWCP_LZW = 0x7;
static const Shortint TWFF_TIFF = 0x0;
static const Shortint TWFF_PICT = 0x1;
static const Shortint TWFF_BMP = 0x2;
static const Shortint TWFF_XBM = 0x3;
static const Shortint TWFF_JFIF = 0x4;
static const Shortint TWFT_RED = 0x0;
static const Shortint TWFT_GREEN = 0x1;
static const Shortint TWFT_BLUE = 0x2;
static const Shortint TWFT_NONE = 0x3;
static const Shortint TWFT_WHITE = 0x4;
static const Shortint TWFT_CYAN = 0x5;
static const Shortint TWFT_MAGENTA = 0x6;
static const Shortint TWFT_YELLOW = 0x7;
static const Shortint TWFT_BLACK = 0x8;
static const Shortint TWLP_REFLECTIVE = 0x0;
static const Shortint TWLP_TRANSMISSIVE = 0x1;
static const Shortint TWLS_RED = 0x0;
static const Shortint TWLS_GREEN = 0x1;
static const Shortint TWLS_BLUE = 0x2;
static const Shortint TWLS_NONE = 0x3;
static const Shortint TWLS_WHITE = 0x4;
static const Shortint TWLS_UV = 0x5;
static const Shortint TWLS_IR = 0x6;
static const Shortint TWOR_ROT0 = 0x0;
static const Shortint TWOR_ROT90 = 0x1;
static const Shortint TWOR_ROT180 = 0x2;
static const Shortint TWOR_ROT270 = 0x3;
static const Shortint TWOR_PORTRAIT = 0x0;
static const Shortint TWOR_LANDSCAPE = 0x3;
static const Shortint TWPC_CHUNKY = 0x0;
static const Shortint TWPC_PLANAR = 0x1;
static const Shortint TWPF_CHOCOLATE = 0x0;
static const Shortint TWPF_VANILLA = 0x1;
static const Shortint TWPT_BW = 0x0;
static const Shortint TWPT_GRAY = 0x1;
static const Shortint TWPT_RGB = 0x2;
static const Shortint TWPT_PALETTE = 0x3;
static const Shortint TWPT_CMY = 0x4;
static const Shortint TWPT_CMYK = 0x5;
static const Shortint TWPT_YUV = 0x6;
static const Shortint TWPT_YUVK = 0x7;
static const Shortint TWPT_CIEXYZ = 0x8;
static const Shortint TWSS_NONE = 0x0;
static const Shortint TWSS_A4LETTER = 0x1;
static const Shortint TWSS_B5LETTER = 0x2;
static const Shortint TWSS_USLETTER = 0x3;
static const Shortint TWSS_USLEGAL = 0x4;
static const Shortint TWSS_A5 = 0x5;
static const Shortint TWSS_B4 = 0x6;
static const Shortint TWSS_B6 = 0x7;
static const Shortint TWSS_B = 0x8;
static const Shortint TWSX_NATIVE = 0x0;
static const Shortint TWSX_FILE = 0x1;
static const Shortint TWSX_MEMORY = 0x2;
static const Shortint TWUN_INCHES = 0x0;
static const Shortint TWUN_CENTIMETERS = 0x1;
static const Shortint TWUN_PICAS = 0x2;
static const Shortint TWUN_POINTS = 0x3;
static const Shortint TWUN_TWIPS = 0x4;
static const Shortint TWUN_PIXELS = 0x5;
static const Shortint TWBR_THRESHOLD = 0x0;
static const Shortint TWBR_HALFTONE = 0x1;
static const Shortint TWBR_CUSTHALFTONE = 0x2;
static const Shortint TWBR_DIFFUSION = 0x3;
static const Word TWCY_AFGHANISTAN = 0x3e9;
static const Byte TWCY_ALGERIA = 0xd5;
static const Word TWCY_AMERICANSAMOA = 0x2ac;
static const Shortint TWCY_ANDORRA = 0x21;
static const Word TWCY_ANGOLA = 0x3ea;
static const Word TWCY_ANGUILLA = 0x1f9a;
static const Word TWCY_ANTIGUA = 0x1f9b;
static const Shortint TWCY_ARGENTINA = 0x36;
static const Word TWCY_ARUBA = 0x129;
static const Byte TWCY_ASCENSIONI = 0xf7;
static const Shortint TWCY_AUSTRALIA = 0x3d;
static const Shortint TWCY_AUSTRIA = 0x2b;
static const Word TWCY_BAHAMAS = 0x1f9c;
static const Word TWCY_BAHRAIN = 0x3cd;
static const Word TWCY_BANGLADESH = 0x370;
static const Word TWCY_BARBADOS = 0x1f9d;
static const Shortint TWCY_BELGIUM = 0x20;
static const Word TWCY_BELIZE = 0x1f5;
static const Byte TWCY_BENIN = 0xe5;
static const Word TWCY_BERMUDA = 0x1f9e;
static const Word TWCY_BHUTAN = 0x3eb;
static const Word TWCY_BOLIVIA = 0x24f;
static const Word TWCY_BOTSWANA = 0x10b;
static const Shortint TWCY_BRITAIN = 0x6;
static const Word TWCY_BRITVIRGINIS = 0x1f9f;
static const Shortint TWCY_BRAZIL = 0x37;
static const Word TWCY_BRUNEI = 0x2a1;
static const Word TWCY_BULGARIA = 0x167;
static const Word TWCY_BURKINAFASO = 0x3ec;
static const Word TWCY_BURMA = 0x3ed;
static const Word TWCY_BURUNDI = 0x3ee;
static const Byte TWCY_CAMAROON = 0xed;
static const Shortint TWCY_CANADA = 0x2;
static const Byte TWCY_CAPEVERDEIS = 0xee;
static const Word TWCY_CAYMANIS = 0x1fa0;
static const Word TWCY_CENTRALAFREP = 0x3ef;
static const Word TWCY_CHAD = 0x3f0;
static const Shortint TWCY_CHILE = 0x38;
static const Shortint TWCY_CHINA = 0x56;
static const Word TWCY_CHRISTMASIS = 0x3f1;
static const Word TWCY_COCOSIS = 0x3f1;
static const Shortint TWCY_COLOMBIA = 0x39;
static const Word TWCY_COMOROS = 0x3f2;
static const Word TWCY_CONGO = 0x3f3;
static const Word TWCY_COOKIS = 0x3f4;
static const Word TWCY_COSTA_RICA = 0x1fa;
static const Shortint TWCY_CUBA = 0x5;
static const Word TWCY_CYPRUS = 0x165;
static const Shortint TWCY_CZECHOSLOVAKIA = 0x2a;
static const Shortint TWCY_DENMARK = 0x2d;
static const Word TWCY_DJIBOUTI = 0x3f5;
static const Word TWCY_DOMINICA = 0x1fa1;
static const Word TWCY_DOMINCANREP = 0x1fa2;
static const Word TWCY_EASTERIS = 0x3f6;
static const Word TWCY_ECUADOR = 0x251;
static const Shortint TWCY_EGYPT = 0x14;
static const Word TWCY_ELSALVADOR = 0x1f7;
static const Word TWCY_EQGUINEA = 0x3f7;
static const Byte TWCY_ETHIOPIA = 0xfb;
static const Word TWCY_FALKLANDIS = 0x3f8;
static const Word TWCY_FAEROEIS = 0x12a;
static const Word TWCY_FIJIISLANDS = 0x2a7;
static const Word TWCY_FINLAND = 0x166;
static const Shortint TWCY_FRANCE = 0x21;
static const Word TWCY_FRANTILLES = 0x254;
static const Word TWCY_FRGUIANA = 0x252;
static const Word TWCY_FRPOLYNEISA = 0x2b1;
static const Word TWCY_FUTANAIS = 0x413;
static const Byte TWCY_GABON = 0xf1;
static const Byte TWCY_GAMBIA = 0xdc;
static const Shortint TWCY_GERMANY = 0x31;
static const Byte TWCY_GHANA = 0xe9;
static const Word TWCY_GIBRALTER = 0x15e;
static const Shortint TWCY_GREECE = 0x1e;
static const Word TWCY_GREENLAND = 0x12b;
static const Word TWCY_GRENADA = 0x1fa3;
static const Word TWCY_GRENEDINES = 0x1f4f;
static const Word TWCY_GUADELOUPE = 0x24e;
static const Word TWCY_GUAM = 0x29f;
static const Word TWCY_GUANTANAMOBAY = 0x1517;
static const Word TWCY_GUATEMALA = 0x1f6;
static const Byte TWCY_GUINEA = 0xe0;
static const Word TWCY_GUINEABISSAU = 0x3f9;
static const Word TWCY_GUYANA = 0x250;
static const Word TWCY_HAITI = 0x1fd;
static const Word TWCY_HONDURAS = 0x1f8;
static const Word TWCY_HONG_KONG = 0x354;
static const Shortint TWCY_HUNGARY = 0x24;
static const Word TWCY_ICELAND = 0x162;
static const Shortint TWCY_INDIA = 0x5b;
static const Shortint TWCY_INDONESIA = 0x3e;
static const Shortint TWCY_IRAN = 0x62;
static const Word TWCY_IRAQ = 0x3c4;
static const Word TWCY_IRELAND = 0x161;
static const Word TWCY_ISRAEL = 0x3cc;
static const Shortint TWCY_ITALY = 0x27;
static const Byte TWCY_IVORY_COAST = 0xe1;
static const Word TWCY_JAMAICA = 0x1f4a;
static const Shortint TWCY_JAPAN = 0x51;
static const Word TWCY_JORDAN = 0x3c2;
static const Byte TWCY_KENYA = 0xfe;
static const Word TWCY_KIRIBATI = 0x3fa;
static const Shortint TWCY_KOREA = 0x52;
static const Word TWCY_KUWAIT = 0x3c5;
static const Word TWCY_LAOS = 0x3fb;
static const Word TWCY_LEBANON = 0x3fc;
static const Byte TWCY_LIBERIA = 0xe7;
static const Byte TWCY_LIBYA = 0xda;
static const Shortint TWCY_LIECHTENSTEIN = 0x29;
static const Word TWCY_LUXENBOURG = 0x160;
static const Word TWCY_MACAO = 0x355;
static const Word TWCY_MADAGASCAR = 0x3fd;
static const Word TWCY_MALAWI = 0x109;
static const Shortint TWCY_MALAYSIA = 0x3c;
static const Word TWCY_MALDIVES = 0x3c0;
static const Word TWCY_MALI = 0x3fe;
static const Word TWCY_MALTA = 0x164;
static const Word TWCY_MARSHALLIS = 0x2b4;
static const Word TWCY_MAURITANIA = 0x3ff;
static const Byte TWCY_MAURITIUS = 0xe6;
static const Shortint TWCY_MEXICO = 0x3;
static const Word TWCY_MICRONESIA = 0x2b3;
static const Word TWCY_MIQUELON = 0x1fc;
static const Shortint TWCY_MONACO = 0x21;
static const Word TWCY_MONGOLIA = 0x400;
static const Word TWCY_MONTSERRAT = 0x1f4b;
static const Byte TWCY_MOROCCO = 0xd4;
static const Word TWCY_MOZAMBIQUE = 0x401;
static const Word TWCY_NAMIBIA = 0x108;
static const Word TWCY_NAURU = 0x402;
static const Word TWCY_NEPAL = 0x3d1;
static const Shortint TWCY_NETHERLANDS = 0x1f;
static const Word TWCY_NETHANTILLES = 0x257;
static const Word TWCY_NEVIS = 0x1f4c;
static const Word TWCY_NEWCALEDONIA = 0x2af;
static const Shortint TWCY_NEWZEALAND = 0x40;
static const Word TWCY_NICARAGUA = 0x1f9;
static const Byte TWCY_NIGER = 0xe3;
static const Byte TWCY_NIGERIA = 0xea;
static const Word TWCY_NIUE = 0x403;
static const Word TWCY_NORFOLKI = 0x404;
static const Shortint TWCY_NORWAY = 0x2f;
static const Word TWCY_OMAN = 0x3c8;
static const Shortint TWCY_PAKISTAN = 0x5c;
static const Word TWCY_PALAU = 0x405;
static const Word TWCY_PANAMA = 0x1fb;
static const Word TWCY_PARAGUAY = 0x253;
static const Shortint TWCY_PERU = 0x33;
static const Shortint TWCY_PHILLIPPINES = 0x3f;
static const Word TWCY_PITCAIRNIS = 0x406;
static const Word TWCY_PNEWGUINEA = 0x2a3;
static const Shortint TWCY_POLAND = 0x30;
static const Word TWCY_PORTUGAL = 0x15f;
static const Word TWCY_QATAR = 0x3ce;
static const Word TWCY_REUNIONI = 0x407;
static const Shortint TWCY_ROMANIA = 0x28;
static const Byte TWCY_RWANDA = 0xfa;
static const Word TWCY_SAIPAN = 0x29e;
static const Shortint TWCY_SANMARINO = 0x27;
static const Word TWCY_SAOTOME = 0x409;
static const Word TWCY_SAUDIARABIA = 0x3c6;
static const Byte TWCY_SENEGAL = 0xdd;
static const Word TWCY_SEYCHELLESIS = 0x40a;
static const Word TWCY_SIERRALEONE = 0x40b;
static const Shortint TWCY_SINGAPORE = 0x41;
static const Word TWCY_SOLOMONIS = 0x40c;
static const Word TWCY_SOMALI = 0x40d;
static const Shortint TWCY_SOUTH_AFRICA = 0x1b;
static const Shortint TWCY_SPAIN = 0x22;
static const Shortint TWCY_SRILANKA = 0x5e;
static const Word TWCY_STHELENA = 0x408;
static const Word TWCY_STKITTS = 0x1f4d;
static const Word TWCY_STLUCIA = 0x1f4e;
static const Word TWCY_STPIERRE = 0x1fc;
static const Word TWCY_STVINCENT = 0x1f4f;
static const Word TWCY_SUDAN = 0x40e;
static const Word TWCY_SURINAME = 0x255;
static const Word TWCY_SWAZILAND = 0x10c;
static const Shortint TWCY_SWEDEN = 0x2e;
static const Shortint TWCY_SWITZERLAND = 0x29;
static const Word TWCY_SYRIA = 0x40f;
static const Word TWCY_TAIWAN = 0x376;
static const Byte TWCY_TANZANIA = 0xff;
static const Shortint TWCY_THAILAND = 0x42;
static const Word TWCY_TOBAGO = 0x1f50;
static const Byte TWCY_TOGO = 0xe4;
static const Word TWCY_TONGAIS = 0x2a4;
static const Word TWCY_TRINIDAD = 0x1f50;
static const Byte TWCY_TUNISIA = 0xd8;
static const Shortint TWCY_TURKEY = 0x5a;
static const Word TWCY_TURKSCAICOS = 0x1f51;
static const Word TWCY_TUVALU = 0x410;
static const Word TWCY_UGANDA = 0x100;
static const Shortint TWCY_USSR = 0x7;
static const Word TWCY_UAEMIRATES = 0x3cb;
static const Shortint TWCY_UNITEDKINGDOM = 0x2c;
static const Shortint TWCY_USA = 0x1;
static const Word TWCY_URUGUAY = 0x256;
static const Word TWCY_VANUATU = 0x411;
static const Shortint TWCY_VATICANCITY = 0x27;
static const Shortint TWCY_VENEZUELA = 0x3a;
static const Word TWCY_WAKE = 0x412;
static const Word TWCY_WALLISIS = 0x413;
static const Word TWCY_WESTERNSAHARA = 0x414;
static const Word TWCY_WESTERNSAMOA = 0x415;
static const Word TWCY_YEMEN = 0x416;
static const Shortint TWCY_YUGOSLAVIA = 0x26;
static const Byte TWCY_ZAIRE = 0xf3;
static const Word TWCY_ZAMBIA = 0x104;
static const Word TWCY_ZIMBABWE = 0x107;
static const Shortint TWLG_DAN = 0x0;
static const Shortint TWLG_DUT = 0x1;
static const Shortint TWLG_ENG = 0x2;
static const Shortint TWLG_FCF = 0x3;
static const Shortint TWLG_FIN = 0x4;
static const Shortint TWLG_FRN = 0x5;
static const Shortint TWLG_GER = 0x6;
static const Shortint TWLG_ICE = 0x7;
static const Shortint TWLG_ITN = 0x8;
static const Shortint TWLG_NOR = 0x9;
static const Shortint TWLG_POR = 0xa;
static const Shortint TWLG_SPA = 0xb;
static const Shortint TWLG_SWE = 0xc;
static const Shortint TWLG_USA = 0xd;
static const Shortint DG_CONTROL = 0x1;
static const Shortint DG_IMAGE = 0x2;
static const Shortint DAT_NULL = 0x0;
static const Word DAT_CUSTOMBASE = 0x8000;
static const Shortint DAT_CAPABILITY = 0x1;
static const Shortint DAT_EVENT = 0x2;
static const Shortint DAT_IDENTITY = 0x3;
static const Shortint DAT_PARENT = 0x4;
static const Shortint DAT_PENDINGXFERS = 0x5;
static const Shortint DAT_SETUPMEMXFER = 0x6;
static const Shortint DAT_SETUPFILEXFER = 0x7;
static const Shortint DAT_STATUS = 0x8;
static const Shortint DAT_USERINTERFACE = 0x9;
static const Shortint DAT_XFERGROUP = 0xa;
static const Shortint DAT_TWUNKIDENTITY = 0xb;
static const Word DAT_IMAGEINFO = 0x101;
static const Word DAT_IMAGELAYOUT = 0x102;
static const Word DAT_IMAGEMEMXFER = 0x103;
static const Word DAT_IMAGENATIVEXFER = 0x104;
static const Word DAT_IMAGEFILEXFER = 0x105;
static const Word DAT_CIECOLOR = 0x106;
static const Word DAT_GRAYRESPONSE = 0x107;
static const Word DAT_RGBRESPONSE = 0x108;
static const Word DAT_JPEGCOMPRESSION = 0x109;
static const Word DAT_PALETTE8 = 0x10a;
static const Shortint MSG_NULL = 0x0;
static const Word MSG_CUSTOMBASE = 0x8000;
static const Shortint MSG_GET = 0x1;
static const Shortint MSG_GETCURRENT = 0x2;
static const Shortint MSG_GETDEFAULT = 0x3;
static const Shortint MSG_GETFIRST = 0x4;
static const Shortint MSG_GETNEXT = 0x5;
static const Shortint MSG_SET = 0x6;
static const Shortint MSG_RESET = 0x7;
static const Word MSG_XFERREADY = 0x101;
static const Word MSG_CLOSEDSREQ = 0x102;
static const Word MSG_CHECKSTATUS = 0x201;
static const Word MSG_OPENDSM = 0x301;
static const Word MSG_CLOSEDSM = 0x302;
static const Word MSG_OPENDS = 0x401;
static const Word MSG_CLOSEDS = 0x402;
static const Word MSG_USERSELECT = 0x403;
static const Word MSG_DISABLEDS = 0x501;
static const Word MSG_ENABLEDS = 0x502;
static const Word MSG_PROCESSEVENT = 0x601;
static const Word MSG_ENDXFER = 0x701;
static const Word CAP_CUSTOMBASE = 0x8000;
static const Shortint CAP_XFERCOUNT = 0x1;
static const Word ICAP_COMPRESSION = 0x100;
static const Word ICAP_PIXELTYPE = 0x101;
static const Word ICAP_UNITS = 0x102;
static const Word ICAP_XFERMECH = 0x103;
static const Word CAP_AUTHOR = 0x1000;
static const Word CAP_CAPTION = 0x1001;
static const Word CAP_FEEDERENABLED = 0x1002;
static const Word CAP_FEEDERLOADED = 0x1003;
static const Word CAP_TIMEDATE = 0x1004;
static const Word CAP_SUPPORTEDCAPS = 0x1005;
static const Word CAP_EXTENDEDCAPS = 0x1006;
static const Word CAP_AUTOFEED = 0x1007;
static const Word CAP_CLEARPAGE = 0x1008;
static const Word CAP_FEEDPAGE = 0x1009;
static const Word CAP_REWINDPAGE = 0x100a;
static const Word CAP_INDICATORS = 0x100b;
static const Word CAP_SUPPORTEDCAPSEXT = 0x100c;
static const Word CAP_PAPERDETECTABLE = 0x100d;
static const Word CAP_UICONTROLLABLE = 0x100e;
static const Word CAP_DEVICEONLINE = 0x100d;
static const Word ICAP_AUTOBRIGHT = 0x1100;
static const Word ICAP_BRIGHTNESS = 0x1101;
static const Word ICAP_CONTRAST = 0x1103;
static const Word ICAP_CUSTHALFTONE = 0x1104;
static const Word ICAP_EXPOSURETIME = 0x1105;
static const Word ICAP_FILTER = 0x1106;
static const Word ICAP_FLASHUSED = 0x1107;
static const Word ICAP_GAMMA = 0x1108;
static const Word ICAP_HALFTONES = 0x1109;
static const Word ICAP_HIGHLIGHT = 0x110a;
static const Word ICAP_IMAGEFILEFORMAT = 0x110c;
static const Word ICAP_LAMPSTATE = 0x110d;
static const Word ICAP_LIGHTSOURCE = 0x110e;
static const Word ICAP_ORIENTATION = 0x1110;
static const Word ICAP_PHYSICALWIDTH = 0x1111;
static const Word ICAP_PHYSICALHEIGHT = 0x1112;
static const Word ICAP_SHADOW = 0x1113;
static const Word ICAP_FRAMES = 0x1114;
static const Word ICAP_XNATIVERESOLUTION = 0x1116;
static const Word ICAP_YNATIVERESOLUTION = 0x1117;
static const Word ICAP_XRESOLUTION = 0x1118;
static const Word ICAP_YRESOLUTION = 0x1119;
static const Word ICAP_MAXFRAMES = 0x111a;
static const Word ICAP_TILES = 0x111b;
static const Word ICAP_BITORDER = 0x111c;
static const Word ICAP_CCITTKFACTOR = 0x111d;
static const Word ICAP_LIGHTPATH = 0x111e;
static const Word ICAP_PIXELFLAVOR = 0x111f;
static const Word ICAP_PLANARCHUNKY = 0x1120;
static const Word ICAP_ROTATION = 0x1121;
static const Word ICAP_SUPPORTEDSIZES = 0x1122;
static const Word ICAP_THRESHOLD = 0x1123;
static const Word ICAP_XSCALING = 0x1124;
static const Word ICAP_YSCALING = 0x1125;
static const Word ICAP_BITORDERCODES = 0x1126;
static const Word ICAP_PIXELFLAVORCODES = 0x1127;
static const Word ICAP_JPEGPIXELTYPE = 0x1128;
static const Word ICAP_TIMEFILL = 0x112a;
static const Word ICAP_BITDEPTH = 0x112b;
static const Word ICAP_BITDEPTHREDUCTION = 0x112c;
static const Word ICAP_UNDEFINEDIMAGESIZE = 0x112d;
static const Word TCRC_CUSTOMBASE = 0x8000;
static const Shortint TWRC_SUCCESS = 0x0;
static const Shortint TWRC_FAILURE = 0x1;
static const Shortint TWRC_CHECKSTATUS = 0x2;
static const Shortint TWRC_CANCEL = 0x3;
static const Shortint TWRC_DSEVENT = 0x4;
static const Shortint TWRC_NOTDSEVENT = 0x5;
static const Shortint TWRC_XFERDONE = 0x6;
static const Shortint TWRC_ENDOFLIST = 0x7;
static const Word TWCC_CUSTOMBASE = 0x8000;
static const Shortint TWCC_SUCCESS = 0x0;
static const Shortint TWCC_BUMMER = 0x1;
static const Shortint TWCC_LOWMEMORY = 0x2;
static const Shortint TWCC_NODS = 0x3;
static const Shortint TWCC_MAXCONNECTIONS = 0x4;
static const Shortint TWCC_OPERATIONERROR = 0x5;
static const Shortint TWCC_BADCAP = 0x6;
static const Shortint TWCC_BADPROTOCOL = 0x9;
static const Shortint TWCC_BADVALUE = 0xa;
static const Shortint TWCC_SEQERROR = 0xb;
static const Shortint TWCC_BADDEST = 0xc;

}	/* namespace Ietwain */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ietwain;
#endif
#pragma option pop	// -w-

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// ietwain
