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

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

#ifndef ietwainHPP
#define ietwainHPP
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

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

typedef void *TW_MEMREF;

typedef Word HFILE;

typedef Byte TVectorB[1];

typedef TVectorB *PVectorB;

typedef char TW_STR32[34];

typedef TW_STR32 *pTW_STR32;

typedef char TW_STR64[66];

typedef TW_STR64 *pTW_STR64;

typedef char TW_STR128[130];

typedef TW_STR128 *pTW_STR128;

typedef char TW_STR255[256];

typedef TW_STR255 *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;
			
		};
		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 TW_AINT8 *pTW_AINT8;

typedef TW_AINT16 *pTW_AINT16;

typedef TW_AINT32 *pTW_AINT32;

typedef TW_AUINT8 *pTW_AUINT8;

typedef TW_AUINT16 *pTW_AUINT16;

typedef TW_AUINT32 *pTW_AUINT32;

typedef TW_ABOOL *pTW_ABOOL;

typedef TW_AFIX32 *pTW_AFIX32;

typedef TW_ASTR32 *pTW_ASTR32;

typedef TW_ASTR64 *pTW_ASTR64;

typedef TW_ASTR128 *pTW_ASTR128;

typedef TW_ASTR255 *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_AFRAME *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;
	int 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;
	int 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 ---------------------------------------------------
#define HFILE_ERROR (Shortint)(-1)
#define FILE_END (Byte)(2)
extern PACKAGE char CR_LF[3];
#define TWON_PROTOCOLMINOR (Byte)(6)
#define TWON_PROTOCOLMAJOR (Byte)(1)
#define TWON_ARRAY (Byte)(3)
#define TWON_ENUMERATION (Byte)(4)
#define TWON_ONEVALUE (Byte)(5)
#define TWON_RANGE (Byte)(6)
#define TWON_ICONID (Word)(962)
#define TWON_DSMID (Word)(461)
#define TWON_DSMCODEID (Byte)(63)
#define TWON_DONTCARE8 (Byte)(255)
#define TWON_DONTCARE16 (int)(65535)
#define TWON_DONTCARE32 (Shortint)(-1)
#define TWMF_APPOWNS (Byte)(1)
#define TWMF_DSMOWNS (Byte)(2)
#define TWMF_DSOWNS (Byte)(4)
#define TWMF_POINTER (Byte)(8)
#define TWMF_HANDLE (Byte)(16)
#define TWPA_RGB (Byte)(0)
#define TWPA_GRAY (Byte)(1)
#define TWPA_CMY (Byte)(2)
#define TWTY_INT8 (Byte)(0)
#define TWTY_INT16 (Byte)(1)
#define TWTY_INT32 (Byte)(2)
#define TWTY_UINT8 (Byte)(3)
#define TWTY_UINT16 (Byte)(4)
#define TWTY_UINT32 (Byte)(5)
#define TWTY_BOOL (Byte)(6)
#define TWTY_FIX32 (Byte)(7)
#define TWTY_FRAME (Byte)(8)
#define TWTY_STR32 (Byte)(9)
#define TWTY_STR64 (Byte)(10)
#define TWTY_STR128 (Byte)(11)
#define TWTY_STR255 (Byte)(12)
#define TWBO_LSBFIRST (Byte)(0)
#define TWBO_MSBFIRST (Byte)(1)
#define TWCP_NONE (Byte)(0)
#define TWCP_PACKBITS (Byte)(1)
#define TWCP_GROUP31D (Byte)(2)
#define TWCP_GROUP31DEOL (Byte)(3)
#define TWCP_GROUP32D (Byte)(4)
#define TWCP_GROUP4 (Byte)(5)
#define TWCP_JPEG (Byte)(6)
#define TWCP_LZW (Byte)(7)
#define TWFF_TIFF (Byte)(0)
#define TWFF_PICT (Byte)(1)
#define TWFF_BMP (Byte)(2)
#define TWFF_XBM (Byte)(3)
#define TWFF_JFIF (Byte)(4)
#define TWFT_RED (Byte)(0)
#define TWFT_GREEN (Byte)(1)
#define TWFT_BLUE (Byte)(2)
#define TWFT_NONE (Byte)(3)
#define TWFT_WHITE (Byte)(4)
#define TWFT_CYAN (Byte)(5)
#define TWFT_MAGENTA (Byte)(6)
#define TWFT_YELLOW (Byte)(7)
#define TWFT_BLACK (Byte)(8)
#define TWLP_REFLECTIVE (Byte)(0)
#define TWLP_TRANSMISSIVE (Byte)(1)
#define TWLS_RED (Byte)(0)
#define TWLS_GREEN (Byte)(1)
#define TWLS_BLUE (Byte)(2)
#define TWLS_NONE (Byte)(3)
#define TWLS_WHITE (Byte)(4)
#define TWLS_UV (Byte)(5)
#define TWLS_IR (Byte)(6)
#define TWOR_ROT0 (Byte)(0)
#define TWOR_ROT90 (Byte)(1)
#define TWOR_ROT180 (Byte)(2)
#define TWOR_ROT270 (Byte)(3)
#define TWOR_PORTRAIT (Byte)(0)
#define TWOR_LANDSCAPE (Byte)(3)
#define TWPC_CHUNKY (Byte)(0)
#define TWPC_PLANAR (Byte)(1)
#define TWPF_CHOCOLATE (Byte)(0)
#define TWPF_VANILLA (Byte)(1)
#define TWPT_BW (Byte)(0)
#define TWPT_GRAY (Byte)(1)
#define TWPT_RGB (Byte)(2)
#define TWPT_PALETTE (Byte)(3)
#define TWPT_CMY (Byte)(4)
#define TWPT_CMYK (Byte)(5)
#define TWPT_YUV (Byte)(6)
#define TWPT_YUVK (Byte)(7)
#define TWPT_CIEXYZ (Byte)(8)
#define TWSS_NONE (Byte)(0)
#define TWSS_A4LETTER (Byte)(1)
#define TWSS_B5LETTER (Byte)(2)
#define TWSS_USLETTER (Byte)(3)
#define TWSS_USLEGAL (Byte)(4)
#define TWSS_A5 (Byte)(5)
#define TWSS_B4 (Byte)(6)
#define TWSS_B6 (Byte)(7)
#define TWSS_B (Byte)(8)
#define TWSX_NATIVE (Byte)(0)
#define TWSX_FILE (Byte)(1)
#define TWSX_MEMORY (Byte)(2)
#define TWUN_INCHES (Byte)(0)
#define TWUN_CENTIMETERS (Byte)(1)
#define TWUN_PICAS (Byte)(2)
#define TWUN_POINTS (Byte)(3)
#define TWUN_TWIPS (Byte)(4)
#define TWUN_PIXELS (Byte)(5)
#define TWBR_THRESHOLD (Byte)(0)
#define TWBR_HALFTONE (Byte)(1)
#define TWBR_CUSTHALFTONE (Byte)(2)
#define TWBR_DIFFUSION (Byte)(3)
#define TWCY_AFGHANISTAN (Word)(1001)
#define TWCY_ALGERIA (Byte)(213)
#define TWCY_AMERICANSAMOA (Word)(684)
#define TWCY_ANDORRA (Byte)(33)
#define TWCY_ANGOLA (Word)(1002)
#define TWCY_ANGUILLA (Word)(8090)
#define TWCY_ANTIGUA (Word)(8091)
#define TWCY_ARGENTINA (Byte)(54)
#define TWCY_ARUBA (Word)(297)
#define TWCY_ASCENSIONI (Byte)(247)
#define TWCY_AUSTRALIA (Byte)(61)
#define TWCY_AUSTRIA (Byte)(43)
#define TWCY_BAHAMAS (Word)(8092)
#define TWCY_BAHRAIN (Word)(973)
#define TWCY_BANGLADESH (Word)(880)
#define TWCY_BARBADOS (Word)(8093)
#define TWCY_BELGIUM (Byte)(32)
#define TWCY_BELIZE (Word)(501)
#define TWCY_BENIN (Byte)(229)
#define TWCY_BERMUDA (Word)(8094)
#define TWCY_BHUTAN (Word)(1003)
#define TWCY_BOLIVIA (Word)(591)
#define TWCY_BOTSWANA (Word)(267)
#define TWCY_BRITAIN (Byte)(6)
#define TWCY_BRITVIRGINIS (Word)(8095)
#define TWCY_BRAZIL (Byte)(55)
#define TWCY_BRUNEI (Word)(673)
#define TWCY_BULGARIA (Word)(359)
#define TWCY_BURKINAFASO (Word)(1004)
#define TWCY_BURMA (Word)(1005)
#define TWCY_BURUNDI (Word)(1006)
#define TWCY_CAMAROON (Byte)(237)
#define TWCY_CANADA (Byte)(2)
#define TWCY_CAPEVERDEIS (Byte)(238)
#define TWCY_CAYMANIS (Word)(8096)
#define TWCY_CENTRALAFREP (Word)(1007)
#define TWCY_CHAD (Word)(1008)
#define TWCY_CHILE (Byte)(56)
#define TWCY_CHINA (Byte)(86)
#define TWCY_CHRISTMASIS (Word)(1009)
#define TWCY_COCOSIS (Word)(1009)
#define TWCY_COLOMBIA (Byte)(57)
#define TWCY_COMOROS (Word)(1010)
#define TWCY_CONGO (Word)(1011)
#define TWCY_COOKIS (Word)(1012)
#define TWCY_COSTA_RICA (Word)(506)
#define TWCY_CUBA (Byte)(5)
#define TWCY_CYPRUS (Word)(357)
#define TWCY_CZECHOSLOVAKIA (Byte)(42)
#define TWCY_DENMARK (Byte)(45)
#define TWCY_DJIBOUTI (Word)(1013)
#define TWCY_DOMINICA (Word)(8097)
#define TWCY_DOMINCANREP (Word)(8098)
#define TWCY_EASTERIS (Word)(1014)
#define TWCY_ECUADOR (Word)(593)
#define TWCY_EGYPT (Byte)(20)
#define TWCY_ELSALVADOR (Word)(503)
#define TWCY_EQGUINEA (Word)(1015)
#define TWCY_ETHIOPIA (Byte)(251)
#define TWCY_FALKLANDIS (Word)(1016)
#define TWCY_FAEROEIS (Word)(298)
#define TWCY_FIJIISLANDS (Word)(679)
#define TWCY_FINLAND (Word)(358)
#define TWCY_FRANCE (Byte)(33)
#define TWCY_FRANTILLES (Word)(596)
#define TWCY_FRGUIANA (Word)(594)
#define TWCY_FRPOLYNEISA (Word)(689)
#define TWCY_FUTANAIS (Word)(1043)
#define TWCY_GABON (Byte)(241)
#define TWCY_GAMBIA (Byte)(220)
#define TWCY_GERMANY (Byte)(49)
#define TWCY_GHANA (Byte)(233)
#define TWCY_GIBRALTER (Word)(350)
#define TWCY_GREECE (Byte)(30)
#define TWCY_GREENLAND (Word)(299)
#define TWCY_GRENADA (Word)(8099)
#define TWCY_GRENEDINES (Word)(8015)
#define TWCY_GUADELOUPE (Word)(590)
#define TWCY_GUAM (Word)(671)
#define TWCY_GUANTANAMOBAY (Word)(5399)
#define TWCY_GUATEMALA (Word)(502)
#define TWCY_GUINEA (Byte)(224)
#define TWCY_GUINEABISSAU (Word)(1017)
#define TWCY_GUYANA (Word)(592)
#define TWCY_HAITI (Word)(509)
#define TWCY_HONDURAS (Word)(504)
#define TWCY_HONG_KONG (Word)(852)
#define TWCY_HUNGARY (Byte)(36)
#define TWCY_ICELAND (Word)(354)
#define TWCY_INDIA (Byte)(91)
#define TWCY_INDONESIA (Byte)(62)
#define TWCY_IRAN (Byte)(98)
#define TWCY_IRAQ (Word)(964)
#define TWCY_IRELAND (Word)(353)
#define TWCY_ISRAEL (Word)(972)
#define TWCY_ITALY (Byte)(39)
#define TWCY_IVORY_COAST (Byte)(225)
#define TWCY_JAMAICA (Word)(8010)
#define TWCY_JAPAN (Byte)(81)
#define TWCY_JORDAN (Word)(962)
#define TWCY_KENYA (Byte)(254)
#define TWCY_KIRIBATI (Word)(1018)
#define TWCY_KOREA (Byte)(82)
#define TWCY_KUWAIT (Word)(965)
#define TWCY_LAOS (Word)(1019)
#define TWCY_LEBANON (Word)(1020)
#define TWCY_LIBERIA (Byte)(231)
#define TWCY_LIBYA (Byte)(218)
#define TWCY_LIECHTENSTEIN (Byte)(41)
#define TWCY_LUXENBOURG (Word)(352)
#define TWCY_MACAO (Word)(853)
#define TWCY_MADAGASCAR (Word)(1021)
#define TWCY_MALAWI (Word)(265)
#define TWCY_MALAYSIA (Byte)(60)
#define TWCY_MALDIVES (Word)(960)
#define TWCY_MALI (Word)(1022)
#define TWCY_MALTA (Word)(356)
#define TWCY_MARSHALLIS (Word)(692)
#define TWCY_MAURITANIA (Word)(1023)
#define TWCY_MAURITIUS (Byte)(230)
#define TWCY_MEXICO (Byte)(3)
#define TWCY_MICRONESIA (Word)(691)
#define TWCY_MIQUELON (Word)(508)
#define TWCY_MONACO (Byte)(33)
#define TWCY_MONGOLIA (Word)(1024)
#define TWCY_MONTSERRAT (Word)(8011)
#define TWCY_MOROCCO (Byte)(212)
#define TWCY_MOZAMBIQUE (Word)(1025)
#define TWCY_NAMIBIA (Word)(264)
#define TWCY_NAURU (Word)(1026)
#define TWCY_NEPAL (Word)(977)
#define TWCY_NETHERLANDS (Byte)(31)
#define TWCY_NETHANTILLES (Word)(599)
#define TWCY_NEVIS (Word)(8012)
#define TWCY_NEWCALEDONIA (Word)(687)
#define TWCY_NEWZEALAND (Byte)(64)
#define TWCY_NICARAGUA (Word)(505)
#define TWCY_NIGER (Byte)(227)
#define TWCY_NIGERIA (Byte)(234)
#define TWCY_NIUE (Word)(1027)
#define TWCY_NORFOLKI (Word)(1028)
#define TWCY_NORWAY (Byte)(47)
#define TWCY_OMAN (Word)(968)
#define TWCY_PAKISTAN (Byte)(92)
#define TWCY_PALAU (Word)(1029)
#define TWCY_PANAMA (Word)(507)
#define TWCY_PARAGUAY (Word)(595)
#define TWCY_PERU (Byte)(51)
#define TWCY_PHILLIPPINES (Byte)(63)
#define TWCY_PITCAIRNIS (Word)(1030)
#define TWCY_PNEWGUINEA (Word)(675)
#define TWCY_POLAND (Byte)(48)
#define TWCY_PORTUGAL (Word)(351)
#define TWCY_QATAR (Word)(974)
#define TWCY_REUNIONI (Word)(1031)
#define TWCY_ROMANIA (Byte)(40)
#define TWCY_RWANDA (Byte)(250)
#define TWCY_SAIPAN (Word)(670)
#define TWCY_SANMARINO (Byte)(39)
#define TWCY_SAOTOME (Word)(1033)
#define TWCY_SAUDIARABIA (Word)(966)
#define TWCY_SENEGAL (Byte)(221)
#define TWCY_SEYCHELLESIS (Word)(1034)
#define TWCY_SIERRALEONE (Word)(1035)
#define TWCY_SINGAPORE (Byte)(65)
#define TWCY_SOLOMONIS (Word)(1036)
#define TWCY_SOMALI (Word)(1037)
#define TWCY_SOUTH_AFRICA (Byte)(27)
#define TWCY_SPAIN (Byte)(34)
#define TWCY_SRILANKA (Byte)(94)
#define TWCY_STHELENA (Word)(1032)
#define TWCY_STKITTS (Word)(8013)
#define TWCY_STLUCIA (Word)(8014)
#define TWCY_STPIERRE (Word)(508)
#define TWCY_STVINCENT (Word)(8015)
#define TWCY_SUDAN (Word)(1038)
#define TWCY_SURINAME (Word)(597)
#define TWCY_SWAZILAND (Word)(268)
#define TWCY_SWEDEN (Byte)(46)
#define TWCY_SWITZERLAND (Byte)(41)
#define TWCY_SYRIA (Word)(1039)
#define TWCY_TAIWAN (Word)(886)
#define TWCY_TANZANIA (Byte)(255)
#define TWCY_THAILAND (Byte)(66)
#define TWCY_TOBAGO (Word)(8016)
#define TWCY_TOGO (Byte)(228)
#define TWCY_TONGAIS (Word)(676)
#define TWCY_TRINIDAD (Word)(8016)
#define TWCY_TUNISIA (Byte)(216)
#define TWCY_TURKEY (Byte)(90)
#define TWCY_TURKSCAICOS (Word)(8017)
#define TWCY_TUVALU (Word)(1040)
#define TWCY_UGANDA (Word)(256)
#define TWCY_USSR (Byte)(7)
#define TWCY_UAEMIRATES (Word)(971)
#define TWCY_UNITEDKINGDOM (Byte)(44)
#define TWCY_USA (Byte)(1)
#define TWCY_URUGUAY (Word)(598)
#define TWCY_VANUATU (Word)(1041)
#define TWCY_VATICANCITY (Byte)(39)
#define TWCY_VENEZUELA (Byte)(58)
#define TWCY_WAKE (Word)(1042)
#define TWCY_WALLISIS (Word)(1043)
#define TWCY_WESTERNSAHARA (Word)(1044)
#define TWCY_WESTERNSAMOA (Word)(1045)
#define TWCY_YEMEN (Word)(1046)
#define TWCY_YUGOSLAVIA (Byte)(38)
#define TWCY_ZAIRE (Byte)(243)
#define TWCY_ZAMBIA (Word)(260)
#define TWCY_ZIMBABWE (Word)(263)
#define TWLG_DAN (Byte)(0)
#define TWLG_DUT (Byte)(1)
#define TWLG_ENG (Byte)(2)
#define TWLG_FCF (Byte)(3)
#define TWLG_FIN (Byte)(4)
#define TWLG_FRN (Byte)(5)
#define TWLG_GER (Byte)(6)
#define TWLG_ICE (Byte)(7)
#define TWLG_ITN (Byte)(8)
#define TWLG_NOR (Byte)(9)
#define TWLG_POR (Byte)(10)
#define TWLG_SPA (Byte)(11)
#define TWLG_SWE (Byte)(12)
#define TWLG_USA (Byte)(13)
#define DG_CONTROL (Byte)(1)
#define DG_IMAGE (Byte)(2)
#define DAT_NULL (Byte)(0)
#define DAT_CUSTOMBASE (int)(32768)
#define DAT_CAPABILITY (Byte)(1)
#define DAT_EVENT (Byte)(2)
#define DAT_IDENTITY (Byte)(3)
#define DAT_PARENT (Byte)(4)
#define DAT_PENDINGXFERS (Byte)(5)
#define DAT_SETUPMEMXFER (Byte)(6)
#define DAT_SETUPFILEXFER (Byte)(7)
#define DAT_STATUS (Byte)(8)
#define DAT_USERINTERFACE (Byte)(9)
#define DAT_XFERGROUP (Byte)(10)
#define DAT_TWUNKIDENTITY (Byte)(11)
#define DAT_IMAGEINFO (Word)(257)
#define DAT_IMAGELAYOUT (Word)(258)
#define DAT_IMAGEMEMXFER (Word)(259)
#define DAT_IMAGENATIVEXFER (Word)(260)
#define DAT_IMAGEFILEXFER (Word)(261)
#define DAT_CIECOLOR (Word)(262)
#define DAT_GRAYRESPONSE (Word)(263)
#define DAT_RGBRESPONSE (Word)(264)
#define DAT_JPEGCOMPRESSION (Word)(265)
#define DAT_PALETTE8 (Word)(266)
#define MSG_NULL (Byte)(0)
#define MSG_CUSTOMBASE (int)(32768)
#define MSG_GET (Byte)(1)
#define MSG_GETCURRENT (Byte)(2)
#define MSG_GETDEFAULT (Byte)(3)
#define MSG_GETFIRST (Byte)(4)
#define MSG_GETNEXT (Byte)(5)
#define MSG_SET (Byte)(6)
#define MSG_RESET (Byte)(7)
#define MSG_XFERREADY (Word)(257)
#define MSG_CLOSEDSREQ (Word)(258)
#define MSG_CHECKSTATUS (Word)(513)
#define MSG_OPENDSM (Word)(769)
#define MSG_CLOSEDSM (Word)(770)
#define MSG_OPENDS (Word)(1025)
#define MSG_CLOSEDS (Word)(1026)
#define MSG_USERSELECT (Word)(1027)
#define MSG_DISABLEDS (Word)(1281)
#define MSG_ENABLEDS (Word)(1282)
#define MSG_PROCESSEVENT (Word)(1537)
#define MSG_ENDXFER (Word)(1793)
#define CAP_CUSTOMBASE (int)(32768)
#define CAP_XFERCOUNT (Byte)(1)
#define ICAP_COMPRESSION (Word)(256)
#define ICAP_PIXELTYPE (Word)(257)
#define ICAP_UNITS (Word)(258)
#define ICAP_XFERMECH (Word)(259)
#define CAP_AUTHOR (Word)(4096)
#define CAP_CAPTION (Word)(4097)
#define CAP_FEEDERENABLED (Word)(4098)
#define CAP_FEEDERLOADED (Word)(4099)
#define CAP_TIMEDATE (Word)(4100)
#define CAP_SUPPORTEDCAPS (Word)(4101)
#define CAP_EXTENDEDCAPS (Word)(4102)
#define CAP_AUTOFEED (Word)(4103)
#define CAP_CLEARPAGE (Word)(4104)
#define CAP_FEEDPAGE (Word)(4105)
#define CAP_REWINDPAGE (Word)(4106)
#define CAP_INDICATORS (Word)(4107)
#define CAP_SUPPORTEDCAPSEXT (Word)(4108)
#define CAP_PAPERDETECTABLE (Word)(4109)
#define CAP_UICONTROLLABLE (Word)(4110)
#define CAP_DEVICEONLINE (Word)(4109)
#define ICAP_AUTOBRIGHT (Word)(4352)
#define ICAP_BRIGHTNESS (Word)(4353)
#define ICAP_CONTRAST (Word)(4355)
#define ICAP_CUSTHALFTONE (Word)(4356)
#define ICAP_EXPOSURETIME (Word)(4357)
#define ICAP_FILTER (Word)(4358)
#define ICAP_FLASHUSED (Word)(4359)
#define ICAP_GAMMA (Word)(4360)
#define ICAP_HALFTONES (Word)(4361)
#define ICAP_HIGHLIGHT (Word)(4362)
#define ICAP_IMAGEFILEFORMAT (Word)(4364)
#define ICAP_LAMPSTATE (Word)(4365)
#define ICAP_LIGHTSOURCE (Word)(4366)
#define ICAP_ORIENTATION (Word)(4368)
#define ICAP_PHYSICALWIDTH (Word)(4369)
#define ICAP_PHYSICALHEIGHT (Word)(4370)
#define ICAP_SHADOW (Word)(4371)
#define ICAP_FRAMES (Word)(4372)
#define ICAP_XNATIVERESOLUTION (Word)(4374)
#define ICAP_YNATIVERESOLUTION (Word)(4375)
#define ICAP_XRESOLUTION (Word)(4376)
#define ICAP_YRESOLUTION (Word)(4377)
#define ICAP_MAXFRAMES (Word)(4378)
#define ICAP_TILES (Word)(4379)
#define ICAP_BITORDER (Word)(4380)
#define ICAP_CCITTKFACTOR (Word)(4381)
#define ICAP_LIGHTPATH (Word)(4382)
#define ICAP_PIXELFLAVOR (Word)(4383)
#define ICAP_PLANARCHUNKY (Word)(4384)
#define ICAP_ROTATION (Word)(4385)
#define ICAP_SUPPORTEDSIZES (Word)(4386)
#define ICAP_THRESHOLD (Word)(4387)
#define ICAP_XSCALING (Word)(4388)
#define ICAP_YSCALING (Word)(4389)
#define ICAP_BITORDERCODES (Word)(4390)
#define ICAP_PIXELFLAVORCODES (Word)(4391)
#define ICAP_JPEGPIXELTYPE (Word)(4392)
#define ICAP_TIMEFILL (Word)(4394)
#define ICAP_BITDEPTH (Word)(4395)
#define ICAP_BITDEPTHREDUCTION (Word)(4396)
#define ICAP_UNDEFINEDIMAGESIZE (Word)(4397)
#define TCRC_CUSTOMBASE (int)(32768)
#define TWRC_SUCCESS (Byte)(0)
#define TWRC_FAILURE (Byte)(1)
#define TWRC_CHECKSTATUS (Byte)(2)
#define TWRC_CANCEL (Byte)(3)
#define TWRC_DSEVENT (Byte)(4)
#define TWRC_NOTDSEVENT (Byte)(5)
#define TWRC_XFERDONE (Byte)(6)
#define TWRC_ENDOFLIST (Byte)(7)
#define TWCC_CUSTOMBASE (int)(32768)
#define TWCC_SUCCESS (Byte)(0)
#define TWCC_BUMMER (Byte)(1)
#define TWCC_LOWMEMORY (Byte)(2)
#define TWCC_NODS (Byte)(3)
#define TWCC_MAXCONNECTIONS (Byte)(4)
#define TWCC_OPERATIONERROR (Byte)(5)
#define TWCC_BADCAP (Byte)(6)
#define TWCC_BADPROTOCOL (Byte)(9)
#define TWCC_BADVALUE (Byte)(10)
#define TWCC_SEQERROR (Byte)(11)
#define TWCC_BADDEST (Byte)(12)

}	/* namespace Ietwain */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ietwain;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// ietwain
