// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'EnTwain.pas' rev: 6.00

#ifndef EnTwainHPP
#define EnTwainHPP

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

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

namespace Entwain
{
//-- type declarations -------------------------------------------------------
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;

typedef char TW_STR32[34];

typedef char *pTW_STR32;

typedef void *TW_MEMREF;

typedef unsigned TW_HANDLE;

#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_FIX32
{
	
	union
	{
		struct 
		{
			short Whole;
			Word Frac;
			
		};
		struct 
		{
			int Long;
			
		};
		
	};
} ;
#pragma pack(pop)

typedef TW_FIX32 *pTW_FIX32;

#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_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_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_IMAGELAYOUT
{
	TW_FRAME Frame;
	int DocumentNumber;
	int PageNumber;
	int FrameNumber;
} ;
#pragma pack(pop)

typedef TW_IMAGELAYOUT *pTW_IMAGELAYOUT;

#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_ONEVALUE
{
	Word ItemType;
	int Item;
} ;
#pragma pack(pop)

typedef TW_ONEVALUE *pTW_ONEVALUE;

#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_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_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_STATUS
{
	Word ConditionCode;
	Word Reserved;
} ;
#pragma pack(pop)

typedef TW_STATUS *pTW_STATUS;

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

#pragma pack(push, 4)
struct TTwainData
{
	unsigned DllHandle;
	TDSM_Entry DSMEntry;
	unsigned ParentHandle;
	TW_IDENTITY AppId;
	TW_IDENTITY SourceId;
	bool ShowUI;
	Word XDpi;
	Word YDpi;
	Enmisc::TImageFormat ImageFormat;
} ;
#pragma pack(pop)

class DELPHICLASS ETwainError;
class PASCALIMPLEMENTATION ETwainError : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall ETwainError(const AnsiString Msg) : Sysutils::Exception(Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall ETwainError(const AnsiString Msg, const System::TVarRec * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall ETwainError(int Ident)/* overload */ : Sysutils::Exception(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall ETwainError(int Ident, const System::TVarRec * Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall ETwainError(const AnsiString Msg, int AHelpContext) : Sysutils::Exception(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall ETwainError(const AnsiString Msg, const System::TVarRec * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall ETwainError(int Ident, int AHelpContext)/* overload */ : Sysutils::Exception(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall ETwainError(System::PResStringRec ResStringRec, const System::TVarRec * Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~ETwainError(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint TWRC_SUCCESS = 0x0;
static const Shortint TWRC_FAILURE = 0x1;
static const Shortint TWRC_CANCEL = 0x3;
static const Shortint TWRC_CHECKSTATUS = 0x2;
static const Shortint TWRC_DSEVENT = 0x4;
static const Shortint TWRC_NOTDSEVENT = 0x5;
static const Shortint TWRC_XFERDONE = 0x6;
static const Shortint TWCC_SUCCESS = 0x0;
static const Shortint DG_CONTROL = 0x1;
static const Shortint DG_IMAGE = 0x2;
static const Shortint DAT_CAPABILITY = 0x1;
static const Shortint DAT_EVENT = 0x2;
static const Shortint DAT_PENDINGXFERS = 0x5;
static const Shortint DAT_USERINTERFACE = 0x9;
static const Word DAT_IMAGEINFO = 0x101;
static const Word DAT_IMAGELAYOUT = 0x102;
static const Word DAT_IMAGENATIVEXFER = 0x104;
static const Shortint TWON_PROTOCOLMINOR = 0x5;
static const Shortint TWON_PROTOCOLMAJOR = 0x1;
static const Shortint TWON_ONEVALUE = 0x5;
static const Word TWON_DONTCARE16 = 0xffff;
static const Shortint TWTY_INT16 = 0x1;
static const Shortint TWTY_UINT16 = 0x4;
static const Shortint TWTY_BOOL = 0x6;
static const Shortint TWTY_FIX32 = 0x7;
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 TWSX_NATIVE = 0x0;
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 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 DAT_IDENTITY = 0x3;
static const Shortint DAT_PARENT = 0x4;
static const Shortint DAT_STATUS = 0x8;
static const Shortint MSG_NULL = 0x0;
static const Shortint MSG_GET = 0x1;
static const Shortint MSG_SET = 0x6;
static const Shortint MSG_RESET = 0x7;
static const Word MSG_ENDXFER = 0x701;
static const Word MSG_PROCESSEVENT = 0x601;
static const Word MSG_XFERREADY = 0x101;
static const Word MSG_CLOSEDSREQ = 0x102;
static const Word MSG_CLOSEDSOK = 0x103;
static const Word MSG_DEVICEEVENT = 0x104;
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 Shortint MSG_GETDEFAULT = 0x3;
static const Shortint MSG_GETFIRST = 0x4;
static const Shortint MSG_GETNEXT = 0x5;
static const Word ICAP_PIXELTYPE = 0x101;
static const Word ICAP_UNITS = 0x102;
static const Word ICAP_XFERMECH = 0x103;
static const Word ICAP_BITDEPTH = 0x112b;
static const Word ICAP_XRESOLUTION = 0x1118;
static const Word ICAP_YRESOLUTION = 0x1119;
static const Word ICAP_AUTOBRIGHT = 0x1100;
static const Word ICAP_PHYSICALWIDTH = 0x1111;
static const Word ICAP_PHYSICALHEIGHT = 0x1112;
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 CAP_XFERCOUNT = 0x1;
static const Word CAP_FEEDERENABLED = 0x1002;
static const Word CAP_FEEDERLOADED = 0x1003;
static const Word CAP_INDICATORS = 0x100b;
#define CTwainDLLFileName "TWAIN_32.DLL"
extern PACKAGE bool __fastcall CallTriplet(const pTW_IDENTITY pSourceId, const pTW_IDENTITY pAppId, const int DataGroup, const Word DataType, const Word Msg, const void * pData, const pTW_UINT16 pTwainResult, const TDSM_Entry DsmEntry);
extern PACKAGE void __fastcall SetSingleValueCap(const Word CapId, const Word ItemType, const int Value, const pTW_IDENTITY pSourceId, const pTW_IDENTITY pAppId, const TDSM_Entry DsmEntry);
extern PACKAGE void __fastcall AbortTransfer(const pTW_IDENTITY pSourceId, const pTW_IDENTITY pAppId, const TDSM_Entry DsmEntry);
extern PACKAGE void __fastcall ConcludeTransfer(Word &PendingTransfers, const pTW_IDENTITY pSourceId, const pTW_IDENTITY pAppId, const TDSM_Entry DsmEntry);
extern PACKAGE void __fastcall GetAllImages(tagMSG &Msg, bool &TwainQuit, const Enmisc::TAcquireEvent AcquireEvent, const pTW_IDENTITY pSourceId, const pTW_IDENTITY pAppId, const TDSM_Entry DsmEntry, const int CallBackData);
extern PACKAGE void __fastcall ProcessImages(const Enmisc::TAcquireEvent AcquireEvent, const pTW_IDENTITY pSourceId, const pTW_IDENTITY pAppId, const TDSM_Entry DsmEntry, const int CallBackData);

}	/* namespace Entwain */
using namespace Entwain;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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