/* This file is part of the Dynarithmic TWAIN Library (DTWAIN).
Copyright (c) 2002-2026 Dynarithmic Software.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
DYNARITHMIC SOFTWARE. DYNARITHMIC SOFTWARE DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
OF THIRD PARTY RIGHTS.
*/
module dtwainapi;

import core.sys.windows.windows;
import core.stdc.stdint : intptr_t;
import std.exception;
import std.string : toStringz;
import std.utf : toUTF16z;

/*************************************************
* Fundamental ABI types
*************************************************/
alias ptrint = intptr_t;   // LRESULT / WPARAM / LPARAM

alias LONG   = int;
alias LONG64 = long;
alias DTWAIN_LONG64 = long;
alias DTWAIN_LONG = LONG;
alias DTWAIN_FLOAT = double;
alias LPDTWAIN_FLOAT = DTWAIN_FLOAT*;
alias HANDLE = void*;
alias TWAIN_IDENTITY = void*;
alias DTWAIN_OCRHANDLE = void*;
alias DTWAIN_OCRENGINE = void*;
alias DTWAIN_MEMORY_PTR = void*;
alias DTWAIN_HANDLE = void*;
alias DTWAIN_BOOL   = int;
alias DTWAIN_SOURCE = void*;
alias DTWAIN_ARRAY = void*;
alias DTWAIN_FRAME = void*;
alias DTWAIN_RANGE = void*;
alias DTWAIN_PDFTEXTELEMENT = void*;
alias LPDTWAIN_ARRAY = DTWAIN_ARRAY*;
alias LPLONG64 = DTWAIN_LONG64*;
alias DTWAIN_IDENTITY = void*;
alias DTWAIN_OCRTEXTINFOHANDLE = void*;
alias LPCBYTE = const LPBYTE;
/*************************************************
* String pointer aliases (Unicode build)
*************************************************/
alias LPCTSTR = const(wchar)*;
alias LPCWSTR = const(wchar)*;
alias LPCSTR  = const(char)*;
alias DTWAIN_CCHARPTRTYPE = LPCTSTR;
alias DTWAIN_CHARPTRTYPE = LPTSTR;

/*************************************************
* Callback type aliases (NO extern here)
*************************************************/

// Existing callbacks
alias DTWAIN_CALLBACK_PROC =
extern(Windows) ptrint function(ptrint wParam, ptrint lParam, LONG userData);

alias DTWAIN_CALLBACK_PROC64 =
extern(Windows) ptrint function(ptrint wParam, ptrint lParam, LONG64 userData);

// DIB update
alias DTWAIN_DIBUPDATE_PROC =
extern(Windows) HANDLE function(DTWAIN_SOURCE src, LONG msg, HANDLE hDib);

// Logger callbacks
alias DTWAIN_LOGGER_PROC =
extern(Windows) ptrint function(LPCTSTR text, LONG64 userData);

alias DTWAIN_LOGGER_PROCA =
extern(Windows) ptrint function(LPCSTR text, LONG64 userData);

alias DTWAIN_LOGGER_PROCW =
extern(Windows) ptrint function(LPCWSTR text, LONG64 userData);

// Error callbacks
alias DTWAIN_ERROR_PROC =
extern(Windows) ptrint function(LONG errorCode, LONG userData);

alias DTWAIN_ERROR_PROC64 =
extern(Windows) ptrint function(LONG errorCode, LONG64 userData);

/*************************************************
* DTWAIN Dynamic DLL Loader
*************************************************/
class DTWAIN_DynamicDLL
{

   /*************************************************
    * TWAIN Identity structure
    *************************************************/
    public struct TW_IDENTITY
    {
        alias TW_UINT16 = ushort;
        alias TW_UINT32 = uint;
        alias TW_STR32  = char[34]; // 32 chars + NULL + padding

        TW_UINT32 Id;

        TW_UINT16 VersionMajor;
        TW_UINT16 VersionMinor;
        TW_UINT16 Language;
        TW_UINT16 Country;

        TW_STR32  Info;
        TW_STR32  ProductName;

        TW_UINT32 ProtocolMajor;
        TW_UINT32 ProtocolMinor;
        TW_UINT32 SupportedGroups;
        TW_UINT32 Manufacturer;
        TW_UINT32 ProductFamily;
    }

    private HMODULE hModule;

    /************ Primary callbacks ************/
    extern(Windows)
        ptrint function(DTWAIN_CALLBACK_PROC, int)
			DTWAIN_SetCallback;

    extern(Windows)
        ptrint function(DTWAIN_CALLBACK_PROC64, LONG64)
			DTWAIN_SetCallback64;

    extern(Windows)
        DTWAIN_CALLBACK_PROC function()
			DTWAIN_GetCallback;

    extern(Windows)
        DTWAIN_CALLBACK_PROC64 function()
			DTWAIN_GetCallback64;

    /************ DIB update ************/
    extern(Windows)
        DTWAIN_DIBUPDATE_PROC function(DTWAIN_DIBUPDATE_PROC)
			DTWAIN_SetUpdateDibProc;

    /************ Logger ************/
    extern(Windows)
        DTWAIN_LOGGER_PROC function()
			DTWAIN_GetLoggerCallback;

    extern(Windows)
        DTWAIN_LOGGER_PROCA function()
			DTWAIN_GetLoggerCallbackA;

    extern(Windows)
        DTWAIN_LOGGER_PROCW function()
			DTWAIN_GetLoggerCallbackW;

    extern(Windows)
        DTWAIN_BOOL function(DTWAIN_LOGGER_PROC, LONG64)
			DTWAIN_SetLoggerCallback;

    extern(Windows)
        DTWAIN_BOOL function(DTWAIN_LOGGER_PROCA, LONG64)
			DTWAIN_SetLoggerCallbackA;

    extern(Windows)
        DTWAIN_BOOL function(DTWAIN_LOGGER_PROCW, LONG64)
			DTWAIN_SetLoggerCallbackW;

    /************ Error ************/
    extern(Windows)
        DTWAIN_BOOL function(DTWAIN_ERROR_PROC, LONG)
			DTWAIN_SetErrorCallback;

    extern(Windows)
        DTWAIN_ERROR_PROC function()
			DTWAIN_GetErrorCallback;

    extern(Windows)
        DTWAIN_BOOL function(DTWAIN_ERROR_PROC64, LONG64)
			DTWAIN_SetErrorCallback64;

    extern(Windows)
        DTWAIN_ERROR_PROC64 function()
			DTWAIN_GetErrorCallback64;

    /************ GC-safe callback storage ************/
    private DTWAIN_CALLBACK_PROC    _cb32;
    private DTWAIN_CALLBACK_PROC64  _cb64;
    private DTWAIN_DIBUPDATE_PROC   _dibProc;
    private DTWAIN_LOGGER_PROC      _logger;
    private DTWAIN_LOGGER_PROCA     _loggerA;
    private DTWAIN_LOGGER_PROCW     _loggerW;
    private DTWAIN_ERROR_PROC       _errProc;
    private DTWAIN_ERROR_PROC64     _errProc64;

    private void bindFunction(void** slot, string name)
    {
        auto p = GetProcAddress(hModule, toStringz(name));
        enforce(p !is null, "Missing symbol: " ~ name);
        *slot = cast(void*) p;
    }

    /************ Generic binder ************/
    private void bind(T)(ref T fn, string name)
    {
        fn = cast(T) GetProcAddress(hModule, toStringz(name));
        enforce(fn !is null, "Missing symbol: " ~ name);
    }

    /************ Safe wrappers ************/
    ptrint setCallback(DTWAIN_CALLBACK_PROC cb, int userData)
    {
        _cb32 = cb;
        return DTWAIN_SetCallback(cb, userData);
    }

    ptrint setCallback64(DTWAIN_CALLBACK_PROC64 cb, LONG64 userData)
    {
        _cb64 = cb;
        return DTWAIN_SetCallback64(cb, userData);
    }

    void setDibUpdateProc(DTWAIN_DIBUPDATE_PROC cb)
    {
        _dibProc = cb;
        DTWAIN_SetUpdateDibProc(cb);
    }

    void setLogger(DTWAIN_LOGGER_PROC cb, LONG64 userData)
    {
        _logger = cb;
        DTWAIN_SetLoggerCallback(cb, userData);
    }

    void setLoggerA(DTWAIN_LOGGER_PROCA cb, LONG64 userData)
    {
        _loggerA = cb;
        DTWAIN_SetLoggerCallbackA(cb, userData);
    }

    void setLoggerW(DTWAIN_LOGGER_PROCW cb, LONG64 userData)
    {
        _loggerW = cb;
        DTWAIN_SetLoggerCallbackW(cb, userData);
    }

    void setErrorCallback(DTWAIN_ERROR_PROC cb, LONG userData)
    {
        _errProc = cb;
        DTWAIN_SetErrorCallback(cb, userData);
    }

    void setErrorCallback64(DTWAIN_ERROR_PROC64 cb, LONG64 userData)
    {
        _errProc64 = cb;
        DTWAIN_SetErrorCallback64(cb, userData);
    }

    /************ Constants ************/
    public static const int DTWAIN_FF_TIFF = 0;
    public static const int DTWAIN_FF_PICT = 1;
    public static const int DTWAIN_FF_BMP = 2;
    public static const int DTWAIN_FF_XBM = 3;
    public static const int DTWAIN_FF_JFIF = 4;
    public static const int DTWAIN_FF_FPX = 5;
    public static const int DTWAIN_FF_TIFFMULTI = 6;
    public static const int DTWAIN_FF_PNG = 7;
    public static const int DTWAIN_FF_SPIFF = 8;
    public static const int DTWAIN_FF_EXIF = 9;
    public static const int DTWAIN_FF_PDF = 10;
    public static const int DTWAIN_FF_JP2 = 11;
    public static const int DTWAIN_FF_JPX = 13;
    public static const int DTWAIN_FF_DEJAVU = 14;
    public static const int DTWAIN_FF_PDFA = 15;
    public static const int DTWAIN_FF_PDFA2 = 16;
    public static const int DTWAIN_FF_PDFRASTER = 17;
    public static const int DTWAIN_CP_NONE = 0;
    public static const int DTWAIN_CP_PACKBITS = 1;
    public static const int DTWAIN_CP_GROUP31D = 2;
    public static const int DTWAIN_CP_GROUP31DEOL = 3;
    public static const int DTWAIN_CP_GROUP32D = 4;
    public static const int DTWAIN_CP_GROUP4 = 5;
    public static const int DTWAIN_CP_JPEG = 6;
    public static const int DTWAIN_CP_LZW = 7;
    public static const int DTWAIN_CP_JBIG = 8;
    public static const int DTWAIN_CP_PNG = 9;
    public static const int DTWAIN_CP_RLE4 = 10;
    public static const int DTWAIN_CP_RLE8 = 11;
    public static const int DTWAIN_CP_BITFIELDS = 12;
    public static const int DTWAIN_CP_ZIP = 13;
    public static const int DTWAIN_CP_JPEG2000 = 14;
    public static const int DTWAIN_FS_NONE = 0;
    public static const int DTWAIN_FS_A4LETTER = 1;
    public static const int DTWAIN_FS_B5LETTER = 2;
    public static const int DTWAIN_FS_USLETTER = 3;
    public static const int DTWAIN_FS_USLEGAL = 4;
    public static const int DTWAIN_FS_A5 = 5;
    public static const int DTWAIN_FS_B4 = 6;
    public static const int DTWAIN_FS_B6 = 7;
    public static const int DTWAIN_FS_USLEDGER = 9;
    public static const int DTWAIN_FS_USEXECUTIVE = 10;
    public static const int DTWAIN_FS_A3 = 11;
    public static const int DTWAIN_FS_B3 = 12;
    public static const int DTWAIN_FS_A6 = 13;
    public static const int DTWAIN_FS_C4 = 14;
    public static const int DTWAIN_FS_C5 = 15;
    public static const int DTWAIN_FS_C6 = 16;
    public static const int DTWAIN_FS_4A0 = 17;
    public static const int DTWAIN_FS_2A0 = 18;
    public static const int DTWAIN_FS_A0 = 19;
    public static const int DTWAIN_FS_A1 = 20;
    public static const int DTWAIN_FS_A2 = 21;
    public static const int DTWAIN_FS_A4 = DTWAIN_FS_A4LETTER;
    public static const int DTWAIN_FS_A7 = 22;
    public static const int DTWAIN_FS_A8 = 23;
    public static const int DTWAIN_FS_A9 = 24;
    public static const int DTWAIN_FS_A10 = 25;
    public static const int DTWAIN_FS_ISOB0 = 26;
    public static const int DTWAIN_FS_ISOB1 = 27;
    public static const int DTWAIN_FS_ISOB2 = 28;
    public static const int DTWAIN_FS_ISOB3 = DTWAIN_FS_B3;
    public static const int DTWAIN_FS_ISOB4 = DTWAIN_FS_B4;
    public static const int DTWAIN_FS_ISOB5 = 29;
    public static const int DTWAIN_FS_ISOB6 = DTWAIN_FS_B6;
    public static const int DTWAIN_FS_ISOB7 = 30;
    public static const int DTWAIN_FS_ISOB8 = 31;
    public static const int DTWAIN_FS_ISOB9 = 32;
    public static const int DTWAIN_FS_ISOB10 = 33;
    public static const int DTWAIN_FS_JISB0 = 34;
    public static const int DTWAIN_FS_JISB1 = 35;
    public static const int DTWAIN_FS_JISB2 = 36;
    public static const int DTWAIN_FS_JISB3 = 37;
    public static const int DTWAIN_FS_JISB4 = 38;
    public static const int DTWAIN_FS_JISB5 = DTWAIN_FS_B5LETTER;
    public static const int DTWAIN_FS_JISB6 = 39;
    public static const int DTWAIN_FS_JISB7 = 40;
    public static const int DTWAIN_FS_JISB8 = 41;
    public static const int DTWAIN_FS_JISB9 = 42;
    public static const int DTWAIN_FS_JISB10 = 43;
    public static const int DTWAIN_FS_C0 = 44;
    public static const int DTWAIN_FS_C1 = 45;
    public static const int DTWAIN_FS_C2 = 46;
    public static const int DTWAIN_FS_C3 = 47;
    public static const int DTWAIN_FS_C7 = 48;
    public static const int DTWAIN_FS_C8 = 49;
    public static const int DTWAIN_FS_C9 = 50;
    public static const int DTWAIN_FS_C10 = 51;
    public static const int DTWAIN_FS_USSTATEMENT = 52;
    public static const int DTWAIN_FS_BUSINESSCARD = 53;
    public static const int DTWAIN_ANYSUPPORT = (-1);
    public static const int DTWAIN_BMP = 100;
    public static const int DTWAIN_JPEG = 200;
    public static const int DTWAIN_PDF = 250;
    public static const int DTWAIN_PDFMULTI = 251;
    public static const int DTWAIN_PCX = 300;
    public static const int DTWAIN_DCX = 301;
    public static const int DTWAIN_TGA = 400;
    public static const int DTWAIN_TIFFLZW = 500;
    public static const int DTWAIN_TIFFNONE = 600;
    public static const int DTWAIN_TIFFG3 = 700;
    public static const int DTWAIN_TIFFG4 = 800;
    public static const int DTWAIN_TIFFPACKBITS = 801;
    public static const int DTWAIN_TIFFDEFLATE = 802;
    public static const int DTWAIN_TIFFJPEG = 803;
    public static const int DTWAIN_TIFFJBIG = 804;
    public static const int DTWAIN_TIFFPIXARLOG = 805;
    public static const int DTWAIN_TIFFNONEMULTI = 900;
    public static const int DTWAIN_TIFFG3MULTI = 901;
    public static const int DTWAIN_TIFFG4MULTI = 902;
    public static const int DTWAIN_TIFFPACKBITSMULTI = 903;
    public static const int DTWAIN_TIFFDEFLATEMULTI = 904;
    public static const int DTWAIN_TIFFJPEGMULTI = 905;
    public static const int DTWAIN_TIFFLZWMULTI = 906;
    public static const int DTWAIN_TIFFJBIGMULTI = 907;
    public static const int DTWAIN_TIFFPIXARLOGMULTI = 908;
    public static const int DTWAIN_WMF = 850;
    public static const int DTWAIN_EMF = 851;
    public static const int DTWAIN_GIF = 950;
    public static const int DTWAIN_PNG = 1000;
    public static const int DTWAIN_PSD = 2000;
    public static const int DTWAIN_JPEG2000 = 3000;
    public static const int DTWAIN_POSTSCRIPT1 = 4000;
    public static const int DTWAIN_POSTSCRIPT2 = 4001;
    public static const int DTWAIN_POSTSCRIPT3 = 4002;
    public static const int DTWAIN_POSTSCRIPT1MULTI = 4003;
    public static const int DTWAIN_POSTSCRIPT2MULTI = 4004;
    public static const int DTWAIN_POSTSCRIPT3MULTI = 4005;
    public static const int DTWAIN_TEXT = 6000;
    public static const int DTWAIN_TEXTMULTI = 6001;
    public static const int DTWAIN_TIFFMULTI = 7000;
    public static const int DTWAIN_ICO = 8000;
    public static const int DTWAIN_ICO_VISTA = 8001;
    public static const int DTWAIN_ICO_RESIZED = 8002;
    public static const int DTWAIN_WBMP = 8500;
    public static const int DTWAIN_WEBP = 8501;
    public static const int DTWAIN_PPM = 10000;
    public static const int DTWAIN_WBMP_RESIZED = 11000;
    public static const int DTWAIN_TGA_RLE = 11001;
    public static const int DTWAIN_BMP_RLE = 11002;
    public static const int DTWAIN_BIGTIFFLZW = 11003;
    public static const int DTWAIN_BIGTIFFLZWMULTI = 11004;
    public static const int DTWAIN_BIGTIFFNONE = 11005;
    public static const int DTWAIN_BIGTIFFNONEMULTI = 11006;
    public static const int DTWAIN_BIGTIFFPACKBITS = 11007;
    public static const int DTWAIN_BIGTIFFPACKBITSMULTI = 11008;
    public static const int DTWAIN_BIGTIFFDEFLATE = 11009;
    public static const int DTWAIN_BIGTIFFDEFLATEMULTI = 11010;
    public static const int DTWAIN_BIGTIFFG3 = 11011;
    public static const int DTWAIN_BIGTIFFG3MULTI = 11012;
    public static const int DTWAIN_BIGTIFFG4 = 11013;
    public static const int DTWAIN_BIGTIFFG4MULTI = 11014;
    public static const int DTWAIN_BIGTIFFJPEG = 11015;
    public static const int DTWAIN_BIGTIFFJPEGMULTI = 11016;
    public static const int DTWAIN_JPEGXR = 12000;
    public static const int DTWAIN_SVG = 13000;
    public static const int DTWAIN_SVGZ = 13001;
    public static const int DTWAIN_INCHES = 0;
    public static const int DTWAIN_CENTIMETERS = 1;
    public static const int DTWAIN_PICAS = 2;
    public static const int DTWAIN_POINTS = 3;
    public static const int DTWAIN_TWIPS = 4;
    public static const int DTWAIN_PIXELS = 5;
    public static const int DTWAIN_MILLIMETERS = 6;
    public static const int DTWAIN_USENAME = 16;
    public static const int DTWAIN_USEPROMPT = 32;
    public static const int DTWAIN_USELONGNAME = 64;
    public static const int DTWAIN_USESOURCEMODE = 128;
    public static const int DTWAIN_USELIST = 256;
    public static const int DTWAIN_CREATE_DIRECTORY = 512;
    public static const int DTWAIN_NODELETEDIBS = 1024;
    public static const int DTWAIN_CREATEDIRECTORY = DTWAIN_CREATE_DIRECTORY;
    public static const int DTWAIN_ARRAYANY = 1;
    public static const int DTWAIN_ArrayTypePTR = 1;
    public static const int DTWAIN_ARRAYLONG = 2;
    public static const int DTWAIN_ARRAYFLOAT = 3;
    public static const int DTWAIN_ARRAYHANDLE = 4;
    public static const int DTWAIN_ARRAYSOURCE = 5;
    public static const int DTWAIN_ARRAYSTRING = 6;
    public static const int DTWAIN_ARRAYFRAME = 7;
    public static const int DTWAIN_ARRAYBOOL = DTWAIN_ARRAYLONG;
    public static const int DTWAIN_ARRAYLONGSTRING = 8;
    public static const int DTWAIN_ARRAYUNICODESTRING = 9;
    public static const int DTWAIN_ARRAYLONG64 = 10;
    public static const int DTWAIN_ARRAYANSISTRING = 11;
    public static const int DTWAIN_ARRAYWIDESTRING = 12;
    public static const int DTWAIN_ARRAYULONG = 13;
    public static const int DTWAIN_ARRAYTWFIX32 = 200;
    public static const int DTWAIN_ArrayTypeINVALID = 0;
    public static const int DTWAIN_ARRAYINT16 = 100;
    public static const int DTWAIN_ARRAYUINT16 = 110;
    public static const int DTWAIN_ARRAYUINT32 = 120;
    public static const int DTWAIN_ARRAYINT32 = 130;
    public static const int DTWAIN_ARRAYINT64 = 140;
    public static const int DTWAIN_ARRAYUINT64 = 150;
    public static const int DTWAIN_ARRAYSHORTINT16 = 160;
    public static const int DTWAIN_ARRAYSHORTUINT16 = 170;
    public static const int DTWAIN_RANGELONG = DTWAIN_ARRAYLONG;
    public static const int DTWAIN_RANGEFLOAT = DTWAIN_ARRAYFLOAT;
    public static const int DTWAIN_RANGEMIN = 0;
    public static const int DTWAIN_RANGEMAX = 1;
    public static const int DTWAIN_RANGESTEP = 2;
    public static const int DTWAIN_RANGEDEFAULT = 3;
    public static const int DTWAIN_RANGECURRENT = 4;
    public static const int DTWAIN_FRAMELEFT = 0;
    public static const int DTWAIN_FRAMETOP = 1;
    public static const int DTWAIN_FRAMERIGHT = 2;
    public static const int DTWAIN_FRAMEBOTTOM = 3;
    public static const int DTWAIN_FIX32WHOLE = 0;
    public static const int DTWAIN_FIX32FRAC = 1;
    public static const int DTWAIN_JC_NONE = 0;
    public static const int DTWAIN_JC_JSIC = 1;
    public static const int DTWAIN_JC_JSIS = 2;
    public static const int DTWAIN_JC_JSXC = 3;
    public static const int DTWAIN_JC_JSXS = 4;
    public static const int DTWAIN_CAPDATATYPE_UNKNOWN = (-10);
    public static const int DTWAIN_JCBP_JSIC = 5;
    public static const int DTWAIN_JCBP_JSIS = 6;
    public static const int DTWAIN_JCBP_JSXC = 7;
    public static const int DTWAIN_JCBP_JSXS = 8;
    public static const int DTWAIN_FEEDPAGEON = 1;
    public static const int DTWAIN_CLEARPAGEON = 2;
    public static const int DTWAIN_REWINDPAGEON = 4;
    public static const int DTWAIN_AppOwnsDib = 1;
    public static const int DTWAIN_SourceOwnsDib = 2;
    public static const int DTWAIN_CONTARRAY = 8;
    public static const int DTWAIN_CONTENUMERATION = 16;
    public static const int DTWAIN_CONTONEVALUE = 32;
    public static const int DTWAIN_CONTRANGE = 64;
    public static const int DTWAIN_CONTDEFAULT = 0;
    public static const int DTWAIN_CAPGET = 1;
    public static const int DTWAIN_CAPGETCURRENT = 2;
    public static const int DTWAIN_CAPGETDEFAULT = 3;
    public static const int DTWAIN_CAPSET = 6;
    public static const int DTWAIN_CAPRESET = 7;
    public static const int DTWAIN_CAPRESETALL = 8;
    public static const int DTWAIN_CAPSETAVAILABLE = 8;
    public static const int DTWAIN_CAPSETCURRENT = 16;
    public static const int DTWAIN_CAPGETHELP = 9;
    public static const int DTWAIN_CAPGETLABEL = 10;
    public static const int DTWAIN_CAPGETLABELENUM = 11;
    public static const int DTWAIN_CAPSETCONSTRAINT = 12;
    public static const int DTWAIN_AREASET = DTWAIN_CAPSET;
    public static const int DTWAIN_AREARESET = DTWAIN_CAPRESET;
    public static const int DTWAIN_AREACURRENT = DTWAIN_CAPGETCURRENT;
    public static const int DTWAIN_AREADEFAULT = DTWAIN_CAPGETDEFAULT;
    public static const int DTWAIN_VER15 = 0;
    public static const int DTWAIN_VER16 = 1;
    public static const int DTWAIN_VER17 = 2;
    public static const int DTWAIN_VER18 = 3;
    public static const int DTWAIN_VER20 = 4;
    public static const int DTWAIN_VER21 = 5;
    public static const int DTWAIN_VER22 = 6;
    public static const int DTWAIN_ACQUIREALL = (-1);
    public static const int DTWAIN_MAXACQUIRE = (-1);
    public static const int DTWAIN_DX_NONE = 0;
    public static const int DTWAIN_DX_1PASSDUPLEX = 1;
    public static const int DTWAIN_DX_2PASSDUPLEX = 2;
    public static const int DTWAIN_PT_BW = 0;
    public static const int DTWAIN_PT_GRAY = 1;
    public static const int DTWAIN_PT_RGB = 2;
    public static const int DTWAIN_PT_PALETTE = 3;
    public static const int DTWAIN_PT_CMY = 4;
    public static const int DTWAIN_PT_CMYK = 5;
    public static const int DTWAIN_PT_YUV = 6;
    public static const int DTWAIN_PT_YUVK = 7;
    public static const int DTWAIN_PT_CIEXYZ = 8;
    public static const int DTWAIN_PT_DEFAULT = 1000;
    public static const int DTWAIN_CURRENT = (-2);
    public static const int DTWAIN_DEFAULT = (-1);
    public static const double DTWAIN_FLOATDEFAULT = (-9999.0);
    public static const int DTWAIN_CallbackERROR = 1;
    public static const int DTWAIN_CallbackMESSAGE = 2;
    public static const int DTWAIN_USENATIVE = 1;
    public static const int DTWAIN_USEBUFFERED = 2;
    public static const int DTWAIN_USECOMPRESSION = 4;
    public static const int DTWAIN_USEMEMFILE = 8;
    public static const int DTWAIN_FAILURE1 = (-1);
    public static const int DTWAIN_FAILURE2 = (-2);
    public static const int DTWAIN_DELETEALL = (-1);
    public static const int DTWAIN_TN_ACQUIREDONE = 1000;
    public static const int DTWAIN_TN_ACQUIREFAILED = 1001;
    public static const int DTWAIN_TN_ACQUIRECANCELLED = 1002;
    public static const int DTWAIN_TN_ACQUIRESTARTED = 1003;
    public static const int DTWAIN_TN_PAGECONTINUE = 1004;
    public static const int DTWAIN_TN_PAGEFAILED = 1005;
    public static const int DTWAIN_TN_PAGECANCELLED = 1006;
    public static const int DTWAIN_TN_TRANSFERREADY = 1009;
    public static const int DTWAIN_TN_TRANSFERDONE = 1010;
    public static const int DTWAIN_TN_ACQUIREPAGEDONE = 1010;
    public static const int DTWAIN_TN_UICLOSING = 3000;
    public static const int DTWAIN_TN_UICLOSED = 3001;
    public static const int DTWAIN_TN_UIOPENED = 3002;
    public static const int DTWAIN_TN_UIOPENING = 3003;
    public static const int DTWAIN_TN_UIOPENFAILURE = 3004;
    public static const int DTWAIN_TN_CLIPTRANSFERDONE = 1014;
    public static const int DTWAIN_TN_INVALIDIMAGEFORMAT = 1015;
    public static const int DTWAIN_TN_ACQUIRETERMINATED = 1021;
    public static const int DTWAIN_TN_TRANSFERSTRIPREADY = 1022;
    public static const int DTWAIN_TN_TRANSFERSTRIPDONE = 1023;
    public static const int DTWAIN_TN_TRANSFERSTRIPFAILED = 1029;
    public static const int DTWAIN_TN_IMAGEINFOERROR = 1024;
    public static const int DTWAIN_TN_TRANSFERCANCELLED = 1030;
    public static const int DTWAIN_TN_FILESAVECANCELLED = 1031;
    public static const int DTWAIN_TN_FILESAVEOK = 1032;
    public static const int DTWAIN_TN_FILESAVEERROR = 1033;
    public static const int DTWAIN_TN_FILEPAGESAVEOK = 1034;
    public static const int DTWAIN_TN_FILEPAGESAVEERROR = 1035;
    public static const int DTWAIN_TN_PROCESSEDDIB = 1036;
    public static const int DTWAIN_TN_FEEDERLOADED = 1037;
    public static const int DTWAIN_TN_GENERALERROR = 1038;
    public static const int DTWAIN_TN_MANDUPFLIPPAGES = 1040;
    public static const int DTWAIN_TN_MANDUPSIDE1DONE = 1041;
    public static const int DTWAIN_TN_MANDUPSIDE2DONE = 1042;
    public static const int DTWAIN_TN_MANDUPPAGECOUNTERROR = 1043;
    public static const int DTWAIN_TN_MANDUPACQUIREDONE = 1044;
    public static const int DTWAIN_TN_MANDUPSIDE1START = 1045;
    public static const int DTWAIN_TN_MANDUPSIDE2START = 1046;
    public static const int DTWAIN_TN_MANDUPMERGEERROR = 1047;
    public static const int DTWAIN_TN_MANDUPMEMORYERROR = 1048;
    public static const int DTWAIN_TN_MANDUPFILEERROR = 1049;
    public static const int DTWAIN_TN_MANDUPFILESAVEERROR = 1050;
    public static const int DTWAIN_TN_ENDOFJOBDETECTED = 1051;
    public static const int DTWAIN_TN_EOJDETECTED = 1051;
    public static const int DTWAIN_TN_EOJDETECTED_XFERDONE = 1052;
    public static const int DTWAIN_TN_QUERYPAGEDISCARD = 1053;
    public static const int DTWAIN_TN_PAGEDISCARDED = 1054;
    public static const int DTWAIN_TN_PROCESSDIBACCEPTED = 1055;
    public static const int DTWAIN_TN_PROCESSDIBFINALACCEPTED = 1056;
    public static const int DTWAIN_TN_CLOSEDIBFAILED = 1057;
    public static const int DTWAIN_TN_INVALID_TWAINDSM2_BITMAP = 1058;
    public static const int DTWAIN_TN_IMAGE_RESAMPLE_FAILURE = 1059;
    public static const int DTWAIN_TN_DEVICEEVENT = 1100;
    public static const int DTWAIN_TN_TWAINPAGECANCELLED = 1105;
    public static const int DTWAIN_TN_TWAINPAGEFAILED = 1106;
    public static const int DTWAIN_TN_APPUPDATEDDIB = 1107;
    public static const int DTWAIN_TN_FILEPAGESAVING = 1110;
    public static const int DTWAIN_TN_EOJBEGINFILESAVE = 1112;
    public static const int DTWAIN_TN_EOJENDFILESAVE = 1113;
    public static const int DTWAIN_TN_CROPFAILED = 1120;
    public static const int DTWAIN_TN_PROCESSEDDIBFINAL = 1121;
    public static const int DTWAIN_TN_BLANKPAGEDETECTED1 = 1130;
    public static const int DTWAIN_TN_BLANKPAGEDETECTED2 = 1131;
    public static const int DTWAIN_TN_BLANKPAGEDETECTED3 = 1132;
    public static const int DTWAIN_TN_BLANKPAGEDISCARDED1 = 1133;
    public static const int DTWAIN_TN_BLANKPAGEDISCARDED2 = 1134;
    public static const int DTWAIN_TN_OCRTEXTRETRIEVED = 1140;
    public static const int DTWAIN_TN_QUERYOCRTEXT = 1141;
    public static const int DTWAIN_TN_PDFOCRREADY = 1142;
    public static const int DTWAIN_TN_PDFOCRDONE = 1143;
    public static const int DTWAIN_TN_PDFOCRERROR = 1144;
    public static const int DTWAIN_TN_SETCALLBACKINIT = 1150;
    public static const int DTWAIN_TN_SETCALLBACK64INIT = 1151;
    public static const int DTWAIN_TN_FILENAMECHANGING = 1160;
    public static const int DTWAIN_TN_FILENAMECHANGED = 1161;
    public static const int DTWAIN_TN_PROCESSEDAUDIOFINAL = 1180;
    public static const int DTWAIN_TN_PROCESSAUDIOFINALACCEPTED = 1181;
    public static const int DTWAIN_TN_PROCESSEDAUDIOFILE = 1182;
    public static const int DTWAIN_TN_TWAINTRIPLETBEGIN = 1183;
    public static const int DTWAIN_TN_TWAINTRIPLETEND = 1184;
    public static const int DTWAIN_TN_FEEDERNOTLOADED = 1201;
    public static const int DTWAIN_TN_FEEDERTIMEOUT = 1202;
    public static const int DTWAIN_TN_FEEDERNOTENABLED = 1203;
    public static const int DTWAIN_TN_FEEDERNOTSUPPORTED = 1204;
    public static const int DTWAIN_TN_FEEDERTOFLATBED = 1205;
    public static const int DTWAIN_TN_PREACQUIRESTART = 1206;
    public static const int DTWAIN_TN_TRANSFERTILEREADY = 1300;
    public static const int DTWAIN_TN_TRANSFERTILEDONE = 1301;
    public static const int DTWAIN_TN_FILECOMPRESSTYPEMISMATCH = 1302;
    public static const int DTWAIN_TN_SOURCEDETAILS = 1304;
    public static const int DTWAIN_TN_QUERYACQUIREPAGES = 1305;
    public static const int DTWAIN_TN_ACQUIREPAGESSTOPPING = 1306;
    public static const int DTWAIN_TN_ACQUIREPAGESSTOPPED = 1307;
    public static const int DTWAIN_TN_QUERYUPDATEDIBORIG = 1308;
    public static const int DTWAIN_TN_QUERYUPDATEDIBRESAMPLED = 1309;
    public static const int DTWAIN_PDFOCR_CLEANTEXT1 = 1;
    public static const int DTWAIN_PDFOCR_CLEANTEXT2 = 2;
    public static const int DTWAIN_MODAL = 0;
    public static const int DTWAIN_MODELESS = 1;
    public static const int DTWAIN_UIModeCLOSE = 0;
    public static const int DTWAIN_UIModeOPEN = 1;
    public static const int DTWAIN_REOPEN_SOURCE = 2;
    public static const int DTWAIN_ROUNDNEAREST = 0;
    public static const int DTWAIN_ROUNDUP = 1;
    public static const int DTWAIN_ROUNDDOWN = 2;
    public static const double DTWAIN_FLOATDELTA = (+1.0e-8);
    public static const int DTWAIN_OR_ROT0 = 0;
    public static const int DTWAIN_OR_ROT90 = 1;
    public static const int DTWAIN_OR_ROT180 = 2;
    public static const int DTWAIN_OR_ROT270 = 3;
    public static const int DTWAIN_OR_PORTRAIT = DTWAIN_OR_ROT0;
    public static const int DTWAIN_OR_LANDSCAPE = DTWAIN_OR_ROT270;
    public static const int DTWAIN_OR_ANYROTATION = (-1);
    public static const int DTWAIN_CO_GET = 0x0001;
    public static const int DTWAIN_CO_SET = 0x0002;
    public static const int DTWAIN_CO_GETDEFAULT = 0x0004;
    public static const int DTWAIN_CO_GETCURRENT = 0x0008;
    public static const int DTWAIN_CO_RESET = 0x0010;
    public static const int DTWAIN_CO_SETCONSTRAINT = 0x0020;
    public static const int DTWAIN_CO_CONSTRAINABLE = 0x0040;
    public static const int DTWAIN_CO_GETHELP = 0x0100;
    public static const int DTWAIN_CO_GETLABEL = 0x0200;
    public static const int DTWAIN_CO_GETLABELENUM = 0x0400;
    public static const int DTWAIN_CNTYAFGHANISTAN = 1001;
    public static const int DTWAIN_CNTYALGERIA = 213;
    public static const int DTWAIN_CNTYAMERICANSAMOA = 684;
    public static const int DTWAIN_CNTYANDORRA = 33;
    public static const int DTWAIN_CNTYANGOLA = 1002;
    public static const int DTWAIN_CNTYANGUILLA = 8090;
    public static const int DTWAIN_CNTYANTIGUA = 8091;
    public static const int DTWAIN_CNTYARGENTINA = 54;
    public static const int DTWAIN_CNTYARUBA = 297;
    public static const int DTWAIN_CNTYASCENSIONI = 247;
    public static const int DTWAIN_CNTYAUSTRALIA = 61;
    public static const int DTWAIN_CNTYAUSTRIA = 43;
    public static const int DTWAIN_CNTYBAHAMAS = 8092;
    public static const int DTWAIN_CNTYBAHRAIN = 973;
    public static const int DTWAIN_CNTYBANGLADESH = 880;
    public static const int DTWAIN_CNTYBARBADOS = 8093;
    public static const int DTWAIN_CNTYBELGIUM = 32;
    public static const int DTWAIN_CNTYBELIZE = 501;
    public static const int DTWAIN_CNTYBENIN = 229;
    public static const int DTWAIN_CNTYBERMUDA = 8094;
    public static const int DTWAIN_CNTYBHUTAN = 1003;
    public static const int DTWAIN_CNTYBOLIVIA = 591;
    public static const int DTWAIN_CNTYBOTSWANA = 267;
    public static const int DTWAIN_CNTYBRITAIN = 6;
    public static const int DTWAIN_CNTYBRITVIRGINIS = 8095;
    public static const int DTWAIN_CNTYBRAZIL = 55;
    public static const int DTWAIN_CNTYBRUNEI = 673;
    public static const int DTWAIN_CNTYBULGARIA = 359;
    public static const int DTWAIN_CNTYBURKINAFASO = 1004;
    public static const int DTWAIN_CNTYBURMA = 1005;
    public static const int DTWAIN_CNTYBURUNDI = 1006;
    public static const int DTWAIN_CNTYCAMAROON = 237;
    public static const int DTWAIN_CNTYCANADA = 2;
    public static const int DTWAIN_CNTYCAPEVERDEIS = 238;
    public static const int DTWAIN_CNTYCAYMANIS = 8096;
    public static const int DTWAIN_CNTYCENTRALAFREP = 1007;
    public static const int DTWAIN_CNTYCHAD = 1008;
    public static const int DTWAIN_CNTYCHILE = 56;
    public static const int DTWAIN_CNTYCHINA = 86;
    public static const int DTWAIN_CNTYCHRISTMASIS = 1009;
    public static const int DTWAIN_CNTYCOCOSIS = 1009;
    public static const int DTWAIN_CNTYCOLOMBIA = 57;
    public static const int DTWAIN_CNTYCOMOROS = 1010;
    public static const int DTWAIN_CNTYCONGO = 1011;
    public static const int DTWAIN_CNTYCOOKIS = 1012;
    public static const int DTWAIN_CNTYCOSTARICA = 506;
    public static const int DTWAIN_CNTYCUBA = 5;
    public static const int DTWAIN_CNTYCYPRUS = 357;
    public static const int DTWAIN_CNTYCZECHOSLOVAKIA = 42;
    public static const int DTWAIN_CNTYDENMARK = 45;
    public static const int DTWAIN_CNTYDJIBOUTI = 1013;
    public static const int DTWAIN_CNTYDOMINICA = 8097;
    public static const int DTWAIN_CNTYDOMINCANREP = 8098;
    public static const int DTWAIN_CNTYEASTERIS = 1014;
    public static const int DTWAIN_CNTYECUADOR = 593;
    public static const int DTWAIN_CNTYEGYPT = 20;
    public static const int DTWAIN_CNTYELSALVADOR = 503;
    public static const int DTWAIN_CNTYEQGUINEA = 1015;
    public static const int DTWAIN_CNTYETHIOPIA = 251;
    public static const int DTWAIN_CNTYFALKLANDIS = 1016;
    public static const int DTWAIN_CNTYFAEROEIS = 298;
    public static const int DTWAIN_CNTYFIJIISLANDS = 679;
    public static const int DTWAIN_CNTYFINLAND = 358;
    public static const int DTWAIN_CNTYFRANCE = 33;
    public static const int DTWAIN_CNTYFRANTILLES = 596;
    public static const int DTWAIN_CNTYFRGUIANA = 594;
    public static const int DTWAIN_CNTYFRPOLYNEISA = 689;
    public static const int DTWAIN_CNTYFUTANAIS = 1043;
    public static const int DTWAIN_CNTYGABON = 241;
    public static const int DTWAIN_CNTYGAMBIA = 220;
    public static const int DTWAIN_CNTYGERMANY = 49;
    public static const int DTWAIN_CNTYGHANA = 233;
    public static const int DTWAIN_CNTYGIBRALTER = 350;
    public static const int DTWAIN_CNTYGREECE = 30;
    public static const int DTWAIN_CNTYGREENLAND = 299;
    public static const int DTWAIN_CNTYGRENADA = 8099;
    public static const int DTWAIN_CNTYGRENEDINES = 8015;
    public static const int DTWAIN_CNTYGUADELOUPE = 590;
    public static const int DTWAIN_CNTYGUAM = 671;
    public static const int DTWAIN_CNTYGUANTANAMOBAY = 5399;
    public static const int DTWAIN_CNTYGUATEMALA = 502;
    public static const int DTWAIN_CNTYGUINEA = 224;
    public static const int DTWAIN_CNTYGUINEABISSAU = 1017;
    public static const int DTWAIN_CNTYGUYANA = 592;
    public static const int DTWAIN_CNTYHAITI = 509;
    public static const int DTWAIN_CNTYHONDURAS = 504;
    public static const int DTWAIN_CNTYHONGKONG = 852;
    public static const int DTWAIN_CNTYHUNGARY = 36;
    public static const int DTWAIN_CNTYICELAND = 354;
    public static const int DTWAIN_CNTYINDIA = 91;
    public static const int DTWAIN_CNTYINDONESIA = 62;
    public static const int DTWAIN_CNTYIRAN = 98;
    public static const int DTWAIN_CNTYIRAQ = 964;
    public static const int DTWAIN_CNTYIRELAND = 353;
    public static const int DTWAIN_CNTYISRAEL = 972;
    public static const int DTWAIN_CNTYITALY = 39;
    public static const int DTWAIN_CNTYIVORYCOAST = 225;
    public static const int DTWAIN_CNTYJAMAICA = 8010;
    public static const int DTWAIN_CNTYJAPAN = 81;
    public static const int DTWAIN_CNTYJORDAN = 962;
    public static const int DTWAIN_CNTYKENYA = 254;
    public static const int DTWAIN_CNTYKIRIBATI = 1018;
    public static const int DTWAIN_CNTYKOREA = 82;
    public static const int DTWAIN_CNTYKUWAIT = 965;
    public static const int DTWAIN_CNTYLAOS = 1019;
    public static const int DTWAIN_CNTYLEBANON = 1020;
    public static const int DTWAIN_CNTYLIBERIA = 231;
    public static const int DTWAIN_CNTYLIBYA = 218;
    public static const int DTWAIN_CNTYLIECHTENSTEIN = 41;
    public static const int DTWAIN_CNTYLUXENBOURG = 352;
    public static const int DTWAIN_CNTYMACAO = 853;
    public static const int DTWAIN_CNTYMADAGASCAR = 1021;
    public static const int DTWAIN_CNTYMALAWI = 265;
    public static const int DTWAIN_CNTYMALAYSIA = 60;
    public static const int DTWAIN_CNTYMALDIVES = 960;
    public static const int DTWAIN_CNTYMALI = 1022;
    public static const int DTWAIN_CNTYMALTA = 356;
    public static const int DTWAIN_CNTYMARSHALLIS = 692;
    public static const int DTWAIN_CNTYMAURITANIA = 1023;
    public static const int DTWAIN_CNTYMAURITIUS = 230;
    public static const int DTWAIN_CNTYMEXICO = 3;
    public static const int DTWAIN_CNTYMICRONESIA = 691;
    public static const int DTWAIN_CNTYMIQUELON = 508;
    public static const int DTWAIN_CNTYMONACO = 33;
    public static const int DTWAIN_CNTYMONGOLIA = 1024;
    public static const int DTWAIN_CNTYMONTSERRAT = 8011;
    public static const int DTWAIN_CNTYMOROCCO = 212;
    public static const int DTWAIN_CNTYMOZAMBIQUE = 1025;
    public static const int DTWAIN_CNTYNAMIBIA = 264;
    public static const int DTWAIN_CNTYNAURU = 1026;
    public static const int DTWAIN_CNTYNEPAL = 977;
    public static const int DTWAIN_CNTYNETHERLANDS = 31;
    public static const int DTWAIN_CNTYNETHANTILLES = 599;
    public static const int DTWAIN_CNTYNEVIS = 8012;
    public static const int DTWAIN_CNTYNEWCALEDONIA = 687;
    public static const int DTWAIN_CNTYNEWZEALAND = 64;
    public static const int DTWAIN_CNTYNICARAGUA = 505;
    public static const int DTWAIN_CNTYNIGER = 227;
    public static const int DTWAIN_CNTYNIGERIA = 234;
    public static const int DTWAIN_CNTYNIUE = 1027;
    public static const int DTWAIN_CNTYNORFOLKI = 1028;
    public static const int DTWAIN_CNTYNORWAY = 47;
    public static const int DTWAIN_CNTYOMAN = 968;
    public static const int DTWAIN_CNTYPAKISTAN = 92;
    public static const int DTWAIN_CNTYPALAU = 1029;
    public static const int DTWAIN_CNTYPANAMA = 507;
    public static const int DTWAIN_CNTYPARAGUAY = 595;
    public static const int DTWAIN_CNTYPERU = 51;
    public static const int DTWAIN_CNTYPHILLIPPINES = 63;
    public static const int DTWAIN_CNTYPITCAIRNIS = 1030;
    public static const int DTWAIN_CNTYPNEWGUINEA = 675;
    public static const int DTWAIN_CNTYPOLAND = 48;
    public static const int DTWAIN_CNTYPORTUGAL = 351;
    public static const int DTWAIN_CNTYQATAR = 974;
    public static const int DTWAIN_CNTYREUNIONI = 1031;
    public static const int DTWAIN_CNTYROMANIA = 40;
    public static const int DTWAIN_CNTYRWANDA = 250;
    public static const int DTWAIN_CNTYSAIPAN = 670;
    public static const int DTWAIN_CNTYSANMARINO = 39;
    public static const int DTWAIN_CNTYSAOTOME = 1033;
    public static const int DTWAIN_CNTYSAUDIARABIA = 966;
    public static const int DTWAIN_CNTYSENEGAL = 221;
    public static const int DTWAIN_CNTYSEYCHELLESIS = 1034;
    public static const int DTWAIN_CNTYSIERRALEONE = 1035;
    public static const int DTWAIN_CNTYSINGAPORE = 65;
    public static const int DTWAIN_CNTYSOLOMONIS = 1036;
    public static const int DTWAIN_CNTYSOMALI = 1037;
    public static const int DTWAIN_CNTYSOUTHAFRICA = 27;
    public static const int DTWAIN_CNTYSPAIN = 34;
    public static const int DTWAIN_CNTYSRILANKA = 94;
    public static const int DTWAIN_CNTYSTHELENA = 1032;
    public static const int DTWAIN_CNTYSTKITTS = 8013;
    public static const int DTWAIN_CNTYSTLUCIA = 8014;
    public static const int DTWAIN_CNTYSTPIERRE = 508;
    public static const int DTWAIN_CNTYSTVINCENT = 8015;
    public static const int DTWAIN_CNTYSUDAN = 1038;
    public static const int DTWAIN_CNTYSURINAME = 597;
    public static const int DTWAIN_CNTYSWAZILAND = 268;
    public static const int DTWAIN_CNTYSWEDEN = 46;
    public static const int DTWAIN_CNTYSWITZERLAND = 41;
    public static const int DTWAIN_CNTYSYRIA = 1039;
    public static const int DTWAIN_CNTYTAIWAN = 886;
    public static const int DTWAIN_CNTYTANZANIA = 255;
    public static const int DTWAIN_CNTYTHAILAND = 66;
    public static const int DTWAIN_CNTYTOBAGO = 8016;
    public static const int DTWAIN_CNTYTOGO = 228;
    public static const int DTWAIN_CNTYTONGAIS = 676;
    public static const int DTWAIN_CNTYTRINIDAD = 8016;
    public static const int DTWAIN_CNTYTUNISIA = 216;
    public static const int DTWAIN_CNTYTURKEY = 90;
    public static const int DTWAIN_CNTYTURKSCAICOS = 8017;
    public static const int DTWAIN_CNTYTUVALU = 1040;
    public static const int DTWAIN_CNTYUGANDA = 256;
    public static const int DTWAIN_CNTYUSSR = 7;
    public static const int DTWAIN_CNTYUAEMIRATES = 971;
    public static const int DTWAIN_CNTYUNITEDKINGDOM = 44;
    public static const int DTWAIN_CNTYUSA = 1;
    public static const int DTWAIN_CNTYURUGUAY = 598;
    public static const int DTWAIN_CNTYVANUATU = 1041;
    public static const int DTWAIN_CNTYVATICANCITY = 39;
    public static const int DTWAIN_CNTYVENEZUELA = 58;
    public static const int DTWAIN_CNTYWAKE = 1042;
    public static const int DTWAIN_CNTYWALLISIS = 1043;
    public static const int DTWAIN_CNTYWESTERNSAHARA = 1044;
    public static const int DTWAIN_CNTYWESTERNSAMOA = 1045;
    public static const int DTWAIN_CNTYYEMEN = 1046;
    public static const int DTWAIN_CNTYYUGOSLAVIA = 38;
    public static const int DTWAIN_CNTYZAIRE = 243;
    public static const int DTWAIN_CNTYZAMBIA = 260;
    public static const int DTWAIN_CNTYZIMBABWE = 263;
    public static const int DTWAIN_LANGDANISH = 0;
    public static const int DTWAIN_LANGDUTCH = 1;
    public static const int DTWAIN_LANGINTERNATIONALENGLISH = 2;
    public static const int DTWAIN_LANGFRENCHCANADIAN = 3;
    public static const int DTWAIN_LANGFINNISH = 4;
    public static const int DTWAIN_LANGFRENCH = 5;
    public static const int DTWAIN_LANGGERMAN = 6;
    public static const int DTWAIN_LANGICELANDIC = 7;
    public static const int DTWAIN_LANGITALIAN = 8;
    public static const int DTWAIN_LANGNORWEGIAN = 9;
    public static const int DTWAIN_LANGPORTUGUESE = 10;
    public static const int DTWAIN_LANGSPANISH = 11;
    public static const int DTWAIN_LANGSWEDISH = 12;
    public static const int DTWAIN_LANGUSAENGLISH = 13;
    public static const int DTWAIN_NO_ERROR = (0);
    public static const int DTWAIN_ERR_FIRST = (-1000);
    public static const int DTWAIN_ERR_BAD_HANDLE = (-1001);
    public static const int DTWAIN_ERR_BAD_SOURCE = (-1002);
    public static const int DTWAIN_ERR_BAD_ARRAY = (-1003);
    public static const int DTWAIN_ERR_WRONG_ARRAY_TYPE = (-1004);
    public static const int DTWAIN_ERR_INDEX_BOUNDS = (-1005);
    public static const int DTWAIN_ERR_OUT_OF_MEMORY = (-1006);
    public static const int DTWAIN_ERR_NULL_WINDOW = (-1007);
    public static const int DTWAIN_ERR_BAD_PIXTYPE = (-1008);
    public static const int DTWAIN_ERR_BAD_CONTAINER = (-1009);
    public static const int DTWAIN_ERR_NO_SESSION = (-1010);
    public static const int DTWAIN_ERR_BAD_ACQUIRE_NUM = (-1011);
    public static const int DTWAIN_ERR_BAD_CAP = (-1012);
    public static const int DTWAIN_ERR_CAP_NO_SUPPORT = (-1013);
    public static const int DTWAIN_ERR_TWAIN = (-1014);
    public static const int DTWAIN_ERR_HOOK_FAILED = (-1015);
    public static const int DTWAIN_ERR_BAD_FILENAME = (-1016);
    public static const int DTWAIN_ERR_EMPTY_ARRAY = (-1017);
    public static const int DTWAIN_ERR_FILE_FORMAT = (-1018);
    public static const int DTWAIN_ERR_BAD_DIB_PAGE = (-1019);
    public static const int DTWAIN_ERR_SOURCE_ACQUIRING = (-1020);
    public static const int DTWAIN_ERR_INVALID_PARAM = (-1021);
    public static const int DTWAIN_ERR_INVALID_RANGE = (-1022);
    public static const int DTWAIN_ERR_UI_ERROR = (-1023);
    public static const int DTWAIN_ERR_BAD_UNIT = (-1024);
    public static const int DTWAIN_ERR_LANGDLL_NOT_FOUND = (-1025);
    public static const int DTWAIN_ERR_SOURCE_NOT_OPEN = (-1026);
    public static const int DTWAIN_ERR_DEVICEEVENT_NOT_SUPPORTED = (-1027);
    public static const int DTWAIN_ERR_UIONLY_NOT_SUPPORTED = (-1028);
    public static const int DTWAIN_ERR_UI_ALREADY_OPENED = (-1029);
    public static const int DTWAIN_ERR_CAPSET_NOSUPPORT = (-1030);
    public static const int DTWAIN_ERR_NO_FILE_XFER = (-1031);
    public static const int DTWAIN_ERR_INVALID_BITDEPTH = (-1032);
    public static const int DTWAIN_ERR_NO_CAPS_DEFINED = (-1033);
    public static const int DTWAIN_ERR_TILES_NOT_SUPPORTED = (-1034);
    public static const int DTWAIN_ERR_INVALID_DTWAIN_FRAME = (-1035);
    public static const int DTWAIN_ERR_LIMITED_VERSION = (-1036);
    public static const int DTWAIN_ERR_NO_FEEDER = (-1037);
    public static const int DTWAIN_ERR_NO_FEEDER_QUERY = (-1038);
    public static const int DTWAIN_ERR_EXCEPTION_ERROR = (-1039);
    public static const int DTWAIN_ERR_INVALID_STATE = (-1040);
    public static const int DTWAIN_ERR_UNSUPPORTED_EXTINFO = (-1041);
    public static const int DTWAIN_ERR_DLLRESOURCE_NOTFOUND = (-1042);
    public static const int DTWAIN_ERR_NOT_INITIALIZED = (-1043);
    public static const int DTWAIN_ERR_NO_SOURCES = (-1044);
    public static const int DTWAIN_ERR_TWAIN_NOT_INSTALLED = (-1045);
    public static const int DTWAIN_ERR_WRONG_THREAD = (-1046);
    public static const int DTWAIN_ERR_BAD_CAPTYPE = (-1047);
    public static const int DTWAIN_ERR_UNKNOWN_CAPDATATYPE = (-1048);
    public static const int DTWAIN_ERR_DEMO_NOFILETYPE = (-1049);
    public static const int DTWAIN_ERR_SOURCESELECTION_CANCELED = (-1050);
    public static const int DTWAIN_ERR_RESOURCES_NOT_FOUND = (-1051);
    public static const int DTWAIN_ERR_STRINGTYPE_MISMATCH = (-1052);
    public static const int DTWAIN_ERR_ARRAYTYPE_MISMATCH = (-1053);
    public static const int DTWAIN_ERR_SOURCENAME_NOTINSTALLED = (-1054);
    public static const int DTWAIN_ERR_NO_MEMFILE_XFER = (-1055);
    public static const int DTWAIN_ERR_AREA_ARRAY_TOO_SMALL = (-1056);
    public static const int DTWAIN_ERR_LOG_CREATE_ERROR = (-1057);
    public static const int DTWAIN_ERR_FILESYSTEM_NOT_SUPPORTED = (-1058);
    public static const int DTWAIN_ERR_TILEMODE_NOTSET = (-1059);
    public static const int DTWAIN_ERR_INI32_NOT_FOUND = (-1060);
    public static const int DTWAIN_ERR_INI64_NOT_FOUND = (-1061);
    public static const int DTWAIN_ERR_CRC_CHECK = (-1062);
    public static const int DTWAIN_ERR_RESOURCES_BAD_VERSION = (-1063);
    public static const int DTWAIN_ERR_WIN32_ERROR = (-1064);
    public static const int DTWAIN_ERR_STRINGID_NOTFOUND = (-1065);
    public static const int DTWAIN_ERR_RESOURCES_DUPLICATEID_FOUND = (-1066);
    public static const int DTWAIN_ERR_UNAVAILABLE_EXTINFO = (-1067);
    public static const int DTWAIN_ERR_TWAINDSM2_BADBITMAP = (-1068);
    public static const int DTWAIN_ERR_ACQUISITION_CANCELED = (-1069);
    public static const int DTWAIN_ERR_IMAGE_RESAMPLED = (-1070);
    public static const int DTWAIN_ERR_UNKNOWN_TWAIN_RC = (-1071);
    public static const int DTWAIN_ERR_UNKNOWN_TWAIN_CC = (-1072);
    public static const int DTWAIN_ERR_RESOURCES_DATA_EXCEPTION = (-1073);
    public static const int DTWAIN_ERR_AUDIO_TRANSFER_NOTSUPPORTED = (-1074);
    public static const int DTWAIN_ERR_FEEDER_COMPLIANCY = (-1075);
    public static const int DTWAIN_ERR_SUPPORTEDCAPS_COMPLIANCY1 = (-1076);
    public static const int DTWAIN_ERR_SUPPORTEDCAPS_COMPLIANCY2 = (-1077);
    public static const int DTWAIN_ERR_ICAPPIXELTYPE_COMPLIANCY1 = (-1078);
    public static const int DTWAIN_ERR_ICAPPIXELTYPE_COMPLIANCY2 = (-1079);
    public static const int DTWAIN_ERR_ICAPBITDEPTH_COMPLIANCY1 = (-1080);
    public static const int DTWAIN_ERR_XFERMECH_COMPLIANCY = (-1081);
    public static const int DTWAIN_ERR_STANDARDCAPS_COMPLIANCY = (-1082);
    public static const int DTWAIN_ERR_EXTIMAGEINFO_DATATYPE_MISMATCH = (-1083);
    public static const int DTWAIN_ERR_EXTIMAGEINFO_RETRIEVAL = (-1084);
    public static const int DTWAIN_ERR_RANGE_OUTOFBOUNDS = (-1085);
    public static const int DTWAIN_ERR_RANGE_STEPISZERO = (-1086);
    public static const int DTWAIN_ERR_BLANKNAMEDETECTED = (-1087);
    public static const int DTWAIN_ERR_FEEDER_NOPAPERSENSOR = (-1088);
    public static const int TWAIN_ERR_LOW_MEMORY = (-1100);
    public static const int TWAIN_ERR_FALSE_ALARM = (-1101);
    public static const int TWAIN_ERR_BUMMER = (-1102);
    public static const int TWAIN_ERR_NODATASOURCE = (-1103);
    public static const int TWAIN_ERR_MAXCONNECTIONS = (-1104);
    public static const int TWAIN_ERR_OPERATIONERROR = (-1105);
    public static const int TWAIN_ERR_BADCAPABILITY = (-1106);
    public static const int TWAIN_ERR_BADVALUE = (-1107);
    public static const int TWAIN_ERR_BADPROTOCOL = (-1108);
    public static const int TWAIN_ERR_SEQUENCEERROR = (-1109);
    public static const int TWAIN_ERR_BADDESTINATION = (-1110);
    public static const int TWAIN_ERR_CAPNOTSUPPORTED = (-1111);
    public static const int TWAIN_ERR_CAPBADOPERATION = (-1112);
    public static const int TWAIN_ERR_CAPSEQUENCEERROR = (-1113);
    public static const int TWAIN_ERR_FILEPROTECTEDERROR = (-1114);
    public static const int TWAIN_ERR_FILEEXISTERROR = (-1115);
    public static const int TWAIN_ERR_FILENOTFOUND = (-1116);
    public static const int TWAIN_ERR_DIRNOTEMPTY = (-1117);
    public static const int TWAIN_ERR_FEEDERJAMMED = (-1118);
    public static const int TWAIN_ERR_FEEDERMULTPAGES = (-1119);
    public static const int TWAIN_ERR_FEEDERWRITEERROR = (-1120);
    public static const int TWAIN_ERR_DEVICEOFFLINE = (-1121);
    public static const int TWAIN_ERR_NULL_CONTAINER = (-1122);
    public static const int TWAIN_ERR_INTERLOCK = (-1123);
    public static const int TWAIN_ERR_DAMAGEDCORNER = (-1124);
    public static const int TWAIN_ERR_FOCUSERROR = (-1125);
    public static const int TWAIN_ERR_DOCTOOLIGHT = (-1126);
    public static const int TWAIN_ERR_DOCTOODARK = (-1127);
    public static const int TWAIN_ERR_NOMEDIA = (-1128);
    public static const int DTWAIN_ERR_FILEXFERSTART = (-2000);
    public static const int DTWAIN_ERR_MEM = (-2001);
    public static const int DTWAIN_ERR_FILEOPEN = (-2002);
    public static const int DTWAIN_ERR_FILEREAD = (-2003);
    public static const int DTWAIN_ERR_FILEWRITE = (-2004);
    public static const int DTWAIN_ERR_BADPARAM = (-2005);
    public static const int DTWAIN_ERR_INVALIDBMP = (-2006);
    public static const int DTWAIN_ERR_BMPRLE = (-2007);
    public static const int DTWAIN_ERR_RESERVED1 = (-2008);
    public static const int DTWAIN_ERR_INVALIDJPG = (-2009);
    public static const int DTWAIN_ERR_DC = (-2010);
    public static const int DTWAIN_ERR_DIB = (-2011);
    public static const int DTWAIN_ERR_RESERVED2 = (-2012);
    public static const int DTWAIN_ERR_NORESOURCE = (-2013);
    public static const int DTWAIN_ERR_CALLBACKCANCEL = (-2014);
    public static const int DTWAIN_ERR_INVALIDPNG = (-2015);
    public static const int DTWAIN_ERR_PNGCREATE = (-2016);
    public static const int DTWAIN_ERR_INTERNAL = (-2017);
    public static const int DTWAIN_ERR_FONT = (-2018);
    public static const int DTWAIN_ERR_INTTIFF = (-2019);
    public static const int DTWAIN_ERR_INVALIDTIFF = (-2020);
    public static const int DTWAIN_ERR_NOTIFFLZW = (-2021);
    public static const int DTWAIN_ERR_INVALIDPCX = (-2022);
    public static const int DTWAIN_ERR_CREATEBMP = (-2023);
    public static const int DTWAIN_ERR_NOLINES = (-2024);
    public static const int DTWAIN_ERR_GETDIB = (-2025);
    public static const int DTWAIN_ERR_NODEVOP = (-2026);
    public static const int DTWAIN_ERR_INVALIDWMF = (-2027);
    public static const int DTWAIN_ERR_DEPTHMISMATCH = (-2028);
    public static const int DTWAIN_ERR_BITBLT = (-2029);
    public static const int DTWAIN_ERR_BUFTOOSMALL = (-2030);
    public static const int DTWAIN_ERR_TOOMANYCOLORS = (-2031);
    public static const int DTWAIN_ERR_INVALIDTGA = (-2032);
    public static const int DTWAIN_ERR_NOTGATHUMBNAIL = (-2033);
    public static const int DTWAIN_ERR_RESERVED3 = (-2034);
    public static const int DTWAIN_ERR_CREATEDIB = (-2035);
    public static const int DTWAIN_ERR_NOLZW = (-2036);
    public static const int DTWAIN_ERR_SELECTOBJ = (-2037);
    public static const int DTWAIN_ERR_BADMANAGER = (-2038);
    public static const int DTWAIN_ERR_OBSOLETE = (-2039);
    public static const int DTWAIN_ERR_CREATEDIBSECTION = (-2040);
    public static const int DTWAIN_ERR_SETWINMETAFILEBITS = (-2041);
    public static const int DTWAIN_ERR_GETWINMETAFILEBITS = (-2042);
    public static const int DTWAIN_ERR_PAXPWD = (-2043);
    public static const int DTWAIN_ERR_INVALIDPAX = (-2044);
    public static const int DTWAIN_ERR_NOSUPPORT = (-2045);
    public static const int DTWAIN_ERR_INVALIDPSD = (-2046);
    public static const int DTWAIN_ERR_PSDNOTSUPPORTED = (-2047);
    public static const int DTWAIN_ERR_DECRYPT = (-2048);
    public static const int DTWAIN_ERR_ENCRYPT = (-2049);
    public static const int DTWAIN_ERR_COMPRESSION = (-2050);
    public static const int DTWAIN_ERR_DECOMPRESSION = (-2051);
    public static const int DTWAIN_ERR_INVALIDTLA = (-2052);
    public static const int DTWAIN_ERR_INVALIDWBMP = (-2053);
    public static const int DTWAIN_ERR_NOTIFFTAG = (-2054);
    public static const int DTWAIN_ERR_NOLOCALSTORAGE = (-2055);
    public static const int DTWAIN_ERR_INVALIDEXIF = (-2056);
    public static const int DTWAIN_ERR_NOEXIFSTRING = (-2057);
    public static const int DTWAIN_ERR_TIFFDLL32NOTFOUND = (-2058);
    public static const int DTWAIN_ERR_TIFFDLL16NOTFOUND = (-2059);
    public static const int DTWAIN_ERR_PNGDLL16NOTFOUND = (-2060);
    public static const int DTWAIN_ERR_JPEGDLL16NOTFOUND = (-2061);
    public static const int DTWAIN_ERR_BADBITSPERPIXEL = (-2062);
    public static const int DTWAIN_ERR_TIFFDLL32INVALIDVER = (-2063);
    public static const int DTWAIN_ERR_PDFDLL32NOTFOUND = (-2064);
    public static const int DTWAIN_ERR_PDFDLL32INVALIDVER = (-2065);
    public static const int DTWAIN_ERR_JPEGDLL32NOTFOUND = (-2066);
    public static const int DTWAIN_ERR_JPEGDLL32INVALIDVER = (-2067);
    public static const int DTWAIN_ERR_PNGDLL32NOTFOUND = (-2068);
    public static const int DTWAIN_ERR_PNGDLL32INVALIDVER = (-2069);
    public static const int DTWAIN_ERR_J2KDLL32NOTFOUND = (-2070);
    public static const int DTWAIN_ERR_J2KDLL32INVALIDVER = (-2071);
    public static const int DTWAIN_ERR_MANDUPLEX_UNAVAILABLE = (-2072);
    public static const int DTWAIN_ERR_TIMEOUT = (-2073);
    public static const int DTWAIN_ERR_INVALIDICONFORMAT = (-2074);
    public static const int DTWAIN_ERR_TWAIN32DSMNOTFOUND = (-2075);
    public static const int DTWAIN_ERR_TWAINOPENSOURCEDSMNOTFOUND = (-2076);
    public static const int DTWAIN_ERR_INVALID_DIRECTORY = (-2077);
    public static const int DTWAIN_ERR_CREATE_DIRECTORY = (-2078);
    public static const int DTWAIN_ERR_OCRLIBRARY_NOTFOUND = (-2079);
    public static const int DTWAIN_TWAINSAVE_OK = (0);
    public static const int DTWAIN_ERR_TS_FIRST = (-2080);
    public static const int DTWAIN_ERR_TS_NOFILENAME = (-2081);
    public static const int DTWAIN_ERR_TS_NOTWAINSYS = (-2082);
    public static const int DTWAIN_ERR_TS_DEVICEFAILURE = (-2083);
    public static const int DTWAIN_ERR_TS_FILESAVEERROR = (-2084);
    public static const int DTWAIN_ERR_TS_COMMANDILLEGAL = (-2085);
    public static const int DTWAIN_ERR_TS_CANCELLED = (-2086);
    public static const int DTWAIN_ERR_TS_ACQUISITIONERROR = (-2087);
    public static const int DTWAIN_ERR_TS_INVALIDCOLORSPACE = (-2088);
    public static const int DTWAIN_ERR_TS_PDFNOTSUPPORTED = (-2089);
    public static const int DTWAIN_ERR_TS_NOTAVAILABLE = (-2090);
    public static const int DTWAIN_ERR_OCR_FIRST = (-2100);
    public static const int DTWAIN_ERR_OCR_INVALIDPAGENUM = (-2101);
    public static const int DTWAIN_ERR_OCR_INVALIDENGINE = (-2102);
    public static const int DTWAIN_ERR_OCR_NOTACTIVE = (-2103);
    public static const int DTWAIN_ERR_OCR_INVALIDFILETYPE = (-2104);
    public static const int DTWAIN_ERR_OCR_INVALIDPIXELTYPE = (-2105);
    public static const int DTWAIN_ERR_OCR_INVALIDBITDEPTH = (-2106);
    public static const int DTWAIN_ERR_OCR_RECOGNITIONERROR = (-2107);
    public static const int DTWAIN_ERR_OCR_LAST = (-2108);
    public static const int DTWAIN_ERR_LAST = DTWAIN_ERR_OCR_LAST;
    public static const int DTWAIN_ERR_SOURCE_COULD_NOT_OPEN = (-2500);
    public static const int DTWAIN_ERR_SOURCE_COULD_NOT_CLOSE = (-2501);
    public static const int DTWAIN_ERR_IMAGEINFO_INVALID = (-2502);
    public static const int DTWAIN_ERR_WRITEDATA_TOFILE = (-2503);
    public static const int DTWAIN_ERR_OPERATION_NOTSUPPORTED = (-2504);
    public static const int DTWAIN_ERR_INVALID_PDFTEXTELEMENT = (-2505);
    public static const int DTWAIN_ERR_SETCAP_FAILED = (-2506);
    public static const int DTWAIN_ERR_CAP_INVALIDSTATE = (-2507);
    public static const int DTWAIN_ERR_GETCAP_FAILED = (-2508);
    public static const int DTWAIN_DE_CHKAUTOCAPTURE = 1;
    public static const int DTWAIN_DE_CHKBATTERY = 2;
    public static const int DTWAIN_DE_CHKDEVICEONLINE = 4;
    public static const int DTWAIN_DE_CHKFLASH = 8;
    public static const int DTWAIN_DE_CHKPOWERSUPPLY = 16;
    public static const int DTWAIN_DE_CHKRESOLUTION = 32;
    public static const int DTWAIN_DE_DEVICEADDED = 64;
    public static const int DTWAIN_DE_DEVICEOFFLINE = 128;
    public static const int DTWAIN_DE_DEVICEREADY = 256;
    public static const int DTWAIN_DE_DEVICEREMOVED = 512;
    public static const int DTWAIN_DE_IMAGECAPTURED = 1024;
    public static const int DTWAIN_DE_IMAGEDELETED = 2048;
    public static const int DTWAIN_DE_PAPERDOUBLEFEED = 4096;
    public static const int DTWAIN_DE_PAPERJAM = 8192;
    public static const int DTWAIN_DE_LAMPFAILURE = 16384;
    public static const int DTWAIN_DE_POWERSAVE = 32768;
    public static const int DTWAIN_DE_POWERSAVENOTIFY = 65536;
    public static const int DTWAIN_DE_CUSTOMEVENTS = 0x8000;
    public static const int DTWAIN_GETDE_EVENT = 0;
    public static const int DTWAIN_GETDE_DEVNAME = 1;
    public static const int DTWAIN_GETDE_BATTERYMINUTES = 2;
    public static const int DTWAIN_GETDE_BATTERYPCT = 3;
    public static const int DTWAIN_GETDE_XRESOLUTION = 4;
    public static const int DTWAIN_GETDE_YRESOLUTION = 5;
    public static const int DTWAIN_GETDE_FLASHUSED = 6;
    public static const int DTWAIN_GETDE_AUTOCAPTURE = 7;
    public static const int DTWAIN_GETDE_TIMEBEFORECAPTURE = 8;
    public static const int DTWAIN_GETDE_TIMEBETWEENCAPTURES = 9;
    public static const int DTWAIN_GETDE_POWERSUPPLY = 10;
    public static const int DTWAIN_IMPRINTERTOPBEFORE = 1;
    public static const int DTWAIN_IMPRINTERTOPAFTER = 2;
    public static const int DTWAIN_IMPRINTERBOTTOMBEFORE = 4;
    public static const int DTWAIN_IMPRINTERBOTTOMAFTER = 8;
    public static const int DTWAIN_ENDORSERTOPBEFORE = 16;
    public static const int DTWAIN_ENDORSERTOPAFTER = 32;
    public static const int DTWAIN_ENDORSERBOTTOMBEFORE = 64;
    public static const int DTWAIN_ENDORSERBOTTOMAFTER = 128;
    public static const int DTWAIN_PM_SINGLESTRING = 0;
    public static const int DTWAIN_PM_MULTISTRING = 1;
    public static const int DTWAIN_PM_COMPOUNDSTRING = 2;
    public static const int DTWAIN_TWTY_INT8 = 0x0000;
    public static const int DTWAIN_TWTY_INT16 = 0x0001;
    public static const int DTWAIN_TWTY_INT32 = 0x0002;
    public static const int DTWAIN_TWTY_UINT8 = 0x0003;
    public static const int DTWAIN_TWTY_UINT16 = 0x0004;
    public static const int DTWAIN_TWTY_UINT32 = 0x0005;
    public static const int DTWAIN_TWTY_BOOL = 0x0006;
    public static const int DTWAIN_TWTY_FIX32 = 0x0007;
    public static const int DTWAIN_TWTY_FRAME = 0x0008;
    public static const int DTWAIN_TWTY_STR32 = 0x0009;
    public static const int DTWAIN_TWTY_STR64 = 0x000A;
    public static const int DTWAIN_TWTY_STR128 = 0x000B;
    public static const int DTWAIN_TWTY_STR255 = 0x000C;
    public static const int DTWAIN_TWTY_STR1024 = 0x000D;
    public static const int DTWAIN_TWTY_UNI512 = 0x000E;
    public static const int DTWAIN_EI_BARCODEX = 0x1200;
    public static const int DTWAIN_EI_BARCODEY = 0x1201;
    public static const int DTWAIN_EI_BARCODETEXT = 0x1202;
    public static const int DTWAIN_EI_BARCODETYPE = 0x1203;
    public static const int DTWAIN_EI_DESHADETOP = 0x1204;
    public static const int DTWAIN_EI_DESHADELEFT = 0x1205;
    public static const int DTWAIN_EI_DESHADEHEIGHT = 0x1206;
    public static const int DTWAIN_EI_DESHADEWIDTH = 0x1207;
    public static const int DTWAIN_EI_DESHADESIZE = 0x1208;
    public static const int DTWAIN_EI_SPECKLESREMOVED = 0x1209;
    public static const int DTWAIN_EI_HORZLINEXCOORD = 0x120A;
    public static const int DTWAIN_EI_HORZLINEYCOORD = 0x120B;
    public static const int DTWAIN_EI_HORZLINELENGTH = 0x120C;
    public static const int DTWAIN_EI_HORZLINETHICKNESS = 0x120D;
    public static const int DTWAIN_EI_VERTLINEXCOORD = 0x120E;
    public static const int DTWAIN_EI_VERTLINEYCOORD = 0x120F;
    public static const int DTWAIN_EI_VERTLINELENGTH = 0x1210;
    public static const int DTWAIN_EI_VERTLINETHICKNESS = 0x1211;
    public static const int DTWAIN_EI_PATCHCODE = 0x1212;
    public static const int DTWAIN_EI_ENDORSEDTEXT = 0x1213;
    public static const int DTWAIN_EI_FORMCONFIDENCE = 0x1214;
    public static const int DTWAIN_EI_FORMTEMPLATEMATCH = 0x1215;
    public static const int DTWAIN_EI_FORMTEMPLATEPAGEMATCH = 0x1216;
    public static const int DTWAIN_EI_FORMHORZDOCOFFSET = 0x1217;
    public static const int DTWAIN_EI_FORMVERTDOCOFFSET = 0x1218;
    public static const int DTWAIN_EI_BARCODECOUNT = 0x1219;
    public static const int DTWAIN_EI_BARCODECONFIDENCE = 0x121A;
    public static const int DTWAIN_EI_BARCODEROTATION = 0x121B;
    public static const int DTWAIN_EI_BARCODETEXTLENGTH = 0x121C;
    public static const int DTWAIN_EI_DESHADECOUNT = 0x121D;
    public static const int DTWAIN_EI_DESHADEBLACKCOUNTOLD = 0x121E;
    public static const int DTWAIN_EI_DESHADEBLACKCOUNTNEW = 0x121F;
    public static const int DTWAIN_EI_DESHADEBLACKRLMIN = 0x1220;
    public static const int DTWAIN_EI_DESHADEBLACKRLMAX = 0x1221;
    public static const int DTWAIN_EI_DESHADEWHITECOUNTOLD = 0x1222;
    public static const int DTWAIN_EI_DESHADEWHITECOUNTNEW = 0x1223;
    public static const int DTWAIN_EI_DESHADEWHITERLMIN = 0x1224;
    public static const int DTWAIN_EI_DESHADEWHITERLAVE = 0x1225;
    public static const int DTWAIN_EI_DESHADEWHITERLMAX = 0x1226;
    public static const int DTWAIN_EI_BLACKSPECKLESREMOVED = 0x1227;
    public static const int DTWAIN_EI_WHITESPECKLESREMOVED = 0x1228;
    public static const int DTWAIN_EI_HORZLINECOUNT = 0x1229;
    public static const int DTWAIN_EI_VERTLINECOUNT = 0x122A;
    public static const int DTWAIN_EI_DESKEWSTATUS = 0x122B;
    public static const int DTWAIN_EI_SKEWORIGINALANGLE = 0x122C;
    public static const int DTWAIN_EI_SKEWFINALANGLE = 0x122D;
    public static const int DTWAIN_EI_SKEWCONFIDENCE = 0x122E;
    public static const int DTWAIN_EI_SKEWWINDOWX1 = 0x122F;
    public static const int DTWAIN_EI_SKEWWINDOWY1 = 0x1230;
    public static const int DTWAIN_EI_SKEWWINDOWX2 = 0x1231;
    public static const int DTWAIN_EI_SKEWWINDOWY2 = 0x1232;
    public static const int DTWAIN_EI_SKEWWINDOWX3 = 0x1233;
    public static const int DTWAIN_EI_SKEWWINDOWY3 = 0x1234;
    public static const int DTWAIN_EI_SKEWWINDOWX4 = 0x1235;
    public static const int DTWAIN_EI_SKEWWINDOWY4 = 0x1236;
    public static const int DTWAIN_EI_BOOKNAME = 0x1238;
    public static const int DTWAIN_EI_CHAPTERNUMBER = 0x1239;
    public static const int DTWAIN_EI_DOCUMENTNUMBER = 0x123A;
    public static const int DTWAIN_EI_PAGENUMBER = 0x123B;
    public static const int DTWAIN_EI_CAMERA = 0x123C;
    public static const int DTWAIN_EI_FRAMENUMBER = 0x123D;
    public static const int DTWAIN_EI_FRAME = 0x123E;
    public static const int DTWAIN_EI_PIXELFLAVOR = 0x123F;
    public static const int DTWAIN_EI_ICCPROFILE = 0x1240;
    public static const int DTWAIN_EI_LASTSEGMENT = 0x1241;
    public static const int DTWAIN_EI_SEGMENTNUMBER = 0x1242;
    public static const int DTWAIN_EI_MAGDATA = 0x1243;
    public static const int DTWAIN_EI_MAGTYPE = 0x1244;
    public static const int DTWAIN_EI_PAGESIDE = 0x1245;
    public static const int DTWAIN_EI_FILESYSTEMSOURCE = 0x1246;
    public static const int DTWAIN_EI_IMAGEMERGED = 0x1247;
    public static const int DTWAIN_EI_MAGDATALENGTH = 0x1248;
    public static const int DTWAIN_EI_PAPERCOUNT = 0x1249;
    public static const int DTWAIN_EI_PRINTERTEXT = 0x124A;
    public static const int DTWAIN_EI_TWAINDIRECTMETADATA = 0x124B;
    public static const int DTWAIN_EI_IAFIELDA_VALUE = 0x124C;
    public static const int DTWAIN_EI_IAFIELDB_VALUE = 0x124D;
    public static const int DTWAIN_EI_IAFIELDC_VALUE = 0x124E;
    public static const int DTWAIN_EI_IAFIELDD_VALUE = 0x124F;
    public static const int DTWAIN_EI_IAFIELDE_VALUE = 0x1250;
    public static const int DTWAIN_EI_IALEVEL = 0x1251;
    public static const int DTWAIN_EI_PRINTER = 0x1252;
    public static const int DTWAIN_EI_BARCODETEXT2 = 0x1253;
    public static const uint DTWAIN_LOG_DECODE_SOURCE = 0x1      ;
    public static const uint DTWAIN_LOG_DECODE_DEST = 0x2        ;
    public static const uint DTWAIN_LOG_DECODE_TWMEMREF = 0x4    ;
    public static const uint DTWAIN_LOG_DECODE_TWEVENT = 0x8     ;
    public static const uint DTWAIN_LOG_CALLSTACK = 0x10         ;
    public static const uint DTWAIN_LOG_ISTWAINMSG = 0x20        ;
    public static const uint DTWAIN_LOG_INITFAILURE = 0x40       ;
    public static const uint DTWAIN_LOG_LOWLEVELTWAIN = 0x80     ;
    public static const uint DTWAIN_LOG_DECODE_BITMAP = 0x100    ;
    public static const uint DTWAIN_LOG_NOTIFICATIONS = 0x200    ;
    public static const uint DTWAIN_LOG_MISCELLANEOUS = 0x400    ;
    public static const uint DTWAIN_LOG_DTWAINERRORS = 0x800     ;
    public static const uint DTWAIN_LOG_USEFILE = 0x10000        ;
    public static const uint DTWAIN_LOG_SHOWEXCEPTIONS = 0x20000 ;
    public static const uint DTWAIN_LOG_ERRORMSGBOX = 0x40000    ;
    public static const uint DTWAIN_LOG_USEBUFFER = 0x80000      ;
    public static const uint DTWAIN_LOG_FILEAPPEND = 0x100000    ;
    public static const uint DTWAIN_LOG_USECALLBACK = 0x200000   ;
    public static const uint DTWAIN_LOG_USECRLF = 0x400000       ;
    public static const uint DTWAIN_LOG_CONSOLE = 0x800000       ;
    public static const uint DTWAIN_LOG_DEBUGMONITOR = 0x1000000 ;
    public static const uint DTWAIN_LOG_USEWINDOW = 0x2000000    ;
    public static const uint DTWAIN_LOG_CREATEDIRECTORY = 0x04000000;
    public static const uint DTWAIN_LOG_CONSOLEWITHHANDLER = (0x08000000 | DTWAIN_LOG_CONSOLE);
    public static const uint DTWAIN_LOG_ALL = (DTWAIN_LOG_DECODE_SOURCE | DTWAIN_LOG_DECODE_DEST | DTWAIN_LOG_DECODE_TWEVENT | DTWAIN_LOG_DECODE_TWMEMREF | DTWAIN_LOG_CALLSTACK | DTWAIN_LOG_ISTWAINMSG | DTWAIN_LOG_INITFAILURE | DTWAIN_LOG_LOWLEVELTWAIN | DTWAIN_LOG_NOTIFICATIONS | DTWAIN_LOG_MISCELLANEOUS | DTWAIN_LOG_DTWAINERRORS | DTWAIN_LOG_DECODE_BITMAP);
    public static const uint DTWAIN_LOG_ALL_APPEND = 0xFFFFFFFFU;
    public static const uint DTWAIN_TEMPDIR_CREATEDIRECTORY = DTWAIN_LOG_CREATEDIRECTORY;
    public static const int DTWAINGCD_RETURNHANDLE = 1;
    public static const int DTWAINGCD_COPYDATA = 2;
    public static const int DTWAIN_BYPOSITION = 0;
    public static const int DTWAIN_BYID = 1;
    public static const int DTWAINSCD_USEHANDLE = 1;
    public static const int DTWAINSCD_USEDATA = 2;
    public static const int DTWAIN_PAGEFAIL_RETRY = 1;
    public static const int DTWAIN_PAGEFAIL_TERMINATE = 2;
    public static const int DTWAIN_MAXRETRY_ATTEMPTS = 3;
    public static const int DTWAIN_RETRY_FOREVER = (-1);
    public static const int DTWAIN_PDF_NOSCALING = 128;
    public static const int DTWAIN_PDF_FITPAGE = 256;
    public static const int DTWAIN_PDF_VARIABLEPAGESIZE = 512;
    public static const int DTWAIN_PDF_CUSTOMSIZE = 1024;
    public static const int DTWAIN_PDF_USECOMPRESSION = 2048;
    public static const int DTWAIN_PDF_CUSTOMSCALE = 4096;
    public static const int DTWAIN_PDF_PIXELSPERMETERSIZE = 8192;
    public static const uint DTWAIN_PDF_ALLOWPRINTING = 2052;
    public static const uint DTWAIN_PDF_ALLOWMOD = 8;
    public static const uint DTWAIN_PDF_ALLOWCOPY = 16;
    public static const uint DTWAIN_PDF_ALLOWMODANNOTATIONS = 32;
    public static const uint DTWAIN_PDF_ALLOWFILLIN = 256;
    public static const uint DTWAIN_PDF_ALLOWEXTRACTION = 512;
    public static const uint DTWAIN_PDF_ALLOWASSEMBLY = 1024;
    public static const uint DTWAIN_PDF_ALLOWDEGRADEDPRINTING = 4;
    public static const uint DTWAIN_PDF_ALLOWALL = 0xFFFFFFFCU;
    public static const uint DTWAIN_PDF_ALLOWANYMOD = (DTWAIN_PDF_ALLOWMOD | DTWAIN_PDF_ALLOWFILLIN | DTWAIN_PDF_ALLOWMODANNOTATIONS | DTWAIN_PDF_ALLOWASSEMBLY);
    public static const uint DTWAIN_PDF_ALLOWANYPRINTING = (DTWAIN_PDF_ALLOWPRINTING | DTWAIN_PDF_ALLOWDEGRADEDPRINTING);
    public static const int DTWAIN_PDF_PORTRAIT = 0;
    public static const int DTWAIN_PDF_LANDSCAPE = 1;
    public static const int DTWAIN_PS_REGULAR = 0;
    public static const int DTWAIN_PS_ENCAPSULATED = 1;
    public static const int DTWAIN_BP_AUTODISCARD_NONE = 0;
    public static const int DTWAIN_BP_AUTODISCARD_IMMEDIATE = 1;
    public static const int DTWAIN_BP_AUTODISCARD_AFTERPROCESS = 2;
    public static const int DTWAIN_BP_DETECTORIGINAL = 1;
    public static const int DTWAIN_BP_DETECTADJUSTED = 2;
    public static const int DTWAIN_BP_DETECTALL = (DTWAIN_BP_DETECTORIGINAL | DTWAIN_BP_DETECTADJUSTED);
    public static const int DTWAIN_BP_DISABLE = (-2);
    public static const int DTWAIN_BP_AUTO = (-1);
    public static const uint DTWAIN_BP_AUTODISCARD_ANY = 0xFFFF;
    public static const int DTWAIN_LP_REFLECTIVE = 0;
    public static const int DTWAIN_LP_TRANSMISSIVE = 1;
    public static const int DTWAIN_LS_RED = 0;
    public static const int DTWAIN_LS_GREEN = 1;
    public static const int DTWAIN_LS_BLUE = 2;
    public static const int DTWAIN_LS_NONE = 3;
    public static const int DTWAIN_LS_WHITE = 4;
    public static const int DTWAIN_LS_UV = 5;
    public static const int DTWAIN_LS_IR = 6;
    public static const int DTWAIN_DLG_SORTNAMES = 1;
    public static const int DTWAIN_DLG_CENTER = 2;
    public static const int DTWAIN_DLG_CENTER_SCREEN = 4;
    public static const int DTWAIN_DLG_USETEMPLATE = 8;
    public static const int DTWAIN_DLG_CLEAR_PARAMS = 16;
    public static const int DTWAIN_DLG_HORIZONTALSCROLL = 32;
    public static const int DTWAIN_DLG_USEINCLUDENAMES = 64;
    public static const int DTWAIN_DLG_USEEXCLUDENAMES = 128;
    public static const int DTWAIN_DLG_USENAMEMAPPING = 256;
    public static const int DTWAIN_DLG_TOPMOSTWINDOW = 1024;
    public static const int DTWAIN_DLG_OPENONSELECT = 2048;
    public static const int DTWAIN_DLG_NOOPENONSELECT = 4096;
    public static const int DTWAIN_DLG_HIGHLIGHTFIRST = 8192;
    public static const int DTWAIN_DLG_SAVELASTSCREENPOS = 16384;
    public static const int DTWAIN_DLG_CENTER_CURRENT_MONITOR = 32768;
    public static const int DTWAIN_DLG_CONSOLEASPARENT = 65536;
    public static const int DTWAIN_RES_ENGLISH = 0;
    public static const int DTWAIN_RES_FRENCH = 1;
    public static const int DTWAIN_RES_SPANISH = 2;
    public static const int DTWAIN_RES_DUTCH = 3;
    public static const int DTWAIN_RES_GERMAN = 4;
    public static const int DTWAIN_RES_ITALIAN = 5;
    public static const int DTWAIN_AL_ALARM = 0;
    public static const int DTWAIN_AL_FEEDERERROR = 1;
    public static const int DTWAIN_AL_FEEDERWARNING = 2;
    public static const int DTWAIN_AL_BARCODE = 3;
    public static const int DTWAIN_AL_DOUBLEFEED = 4;
    public static const int DTWAIN_AL_JAM = 5;
    public static const int DTWAIN_AL_PATCHCODE = 6;
    public static const int DTWAIN_AL_POWER = 7;
    public static const int DTWAIN_AL_SKEW = 8;
    public static const int DTWAIN_FT_CAMERA = 0;
    public static const int DTWAIN_FT_CAMERATOP = 1;
    public static const int DTWAIN_FT_CAMERABOTTOM = 2;
    public static const int DTWAIN_FT_CAMERAPREVIEW = 3;
    public static const int DTWAIN_FT_DOMAIN = 4;
    public static const int DTWAIN_FT_HOST = 5;
    public static const int DTWAIN_FT_DIRECTORY = 6;
    public static const int DTWAIN_FT_IMAGE = 7;
    public static const int DTWAIN_FT_UNKNOWN = 8;
    public static const int DTWAIN_NF_NONE = 0;
    public static const int DTWAIN_NF_AUTO = 1;
    public static const int DTWAIN_NF_LONEPIXEL = 2;
    public static const int DTWAIN_NF_MAJORITYRULE = 3;
    public static const int DTWAIN_CB_AUTO = 0;
    public static const int DTWAIN_CB_CLEAR = 1;
    public static const int DTWAIN_CB_NOCLEAR = 2;
    public static const int DTWAIN_FA_NONE = 0;
    public static const int DTWAIN_FA_LEFT = 1;
    public static const int DTWAIN_FA_CENTER = 2;
    public static const int DTWAIN_FA_RIGHT = 3;
    public static const int DTWAIN_PF_CHOCOLATE = 0;
    public static const int DTWAIN_PF_VANILLA = 1;
    public static const int DTWAIN_FO_FIRSTPAGEFIRST = 0;
    public static const int DTWAIN_FO_LASTPAGEFIRST = 1;
    public static const int DTWAIN_INCREMENT_STATIC = 0;
    public static const int DTWAIN_INCREMENT_DYNAMIC = 1;
    public static const int DTWAIN_INCREMENT_DEFAULT = -1;
    public static const int DTWAIN_MANDUP_FACEUPTOPPAGE = 0;
    public static const int DTWAIN_MANDUP_FACEUPBOTTOMPAGE = 1;
    public static const int DTWAIN_MANDUP_FACEDOWNTOPPAGE = 2;
    public static const int DTWAIN_MANDUP_FACEDOWNBOTTOMPAGE = 3;
    public static const int DTWAIN_FILESAVE_DEFAULT = 0;
    public static const int DTWAIN_FILESAVE_UICLOSE = 1;
    public static const int DTWAIN_FILESAVE_SOURCECLOSE = 2;
    public static const int DTWAIN_FILESAVE_ENDACQUIRE = 3;
    public static const int DTWAIN_FILESAVE_MANUALSAVE = 4;
    public static const int DTWAIN_FILESAVE_SAVEINCOMPLETE = 128;
    public static const int DTWAIN_MANDUP_SCANOK = 1;
    public static const int DTWAIN_MANDUP_SIDE1RESCAN = 2;
    public static const int DTWAIN_MANDUP_SIDE2RESCAN = 3;
    public static const int DTWAIN_MANDUP_RESCANALL = 4;
    public static const int DTWAIN_MANDUP_PAGEMISSING = 5;
    public static const int DTWAIN_DEMODLL_VERSION = 0x00000001;
    public static const int DTWAIN_UNLICENSED_VERSION = 0x00000002;
    public static const int DTWAIN_COMPANY_VERSION = 0x00000004;
    public static const int DTWAIN_GENERAL_VERSION = 0x00000008;
    public static const int DTWAIN_DEVELOP_VERSION = 0x00000010;
    public static const int DTWAIN_JAVA_VERSION = 0x00000020;
    public static const int DTWAIN_TOOLKIT_VERSION = 0x00000040;
    public static const int DTWAIN_LIMITEDDLL_VERSION = 0x00000080;
    public static const int DTWAIN_STATICLIB_VERSION = 0x00000100;
    public static const int DTWAIN_STATICLIB_STDCALL_VERSION = 0x00000200;
    public static const int DTWAIN_PDF_VERSION = 0x00010000;
    public static const int DTWAIN_TWAINSAVE_VERSION = 0x00020000;
    public static const int DTWAIN_OCR_VERSION = 0x00040000;
    public static const int DTWAIN_BARCODE_VERSION = 0x00080000;
    public static const int DTWAIN_ACTIVEX_VERSION = 0x00100000;
    public static const int DTWAIN_32BIT_VERSION = 0x00200000;
    public static const int DTWAIN_64BIT_VERSION = 0x00400000;
    public static const int DTWAIN_UNICODE_VERSION = 0x00800000;
    public static const int DTWAIN_OPENSOURCE_VERSION = 0x01000000;
    public static const int DTWAIN_CALLSTACK_LOGGING = 0x02000000;
    public static const int DTWAIN_CALLSTACK_LOGGING_PLUS = 0x04000000;
    public static const int DTWAINOCR_RETURNHANDLE = 1;
    public static const int DTWAINOCR_COPYDATA = 2;
    public static const int DTWAIN_OCRINFO_CHAR = 0;
    public static const int DTWAIN_OCRINFO_CHARXPOS = 1;
    public static const int DTWAIN_OCRINFO_CHARYPOS = 2;
    public static const int DTWAIN_OCRINFO_CHARXWIDTH = 3;
    public static const int DTWAIN_OCRINFO_CHARYWIDTH = 4;
    public static const int DTWAIN_OCRINFO_CHARCONFIDENCE = 5;
    public static const int DTWAIN_OCRINFO_PAGENUM = 6;
    public static const int DTWAIN_OCRINFO_OCRENGINE = 7;
    public static const int DTWAIN_OCRINFO_TEXTLENGTH = 8;
    public static const int DTWAIN_PDFPAGETYPE_COLOR = 0;
    public static const int DTWAIN_PDFPAGETYPE_BW = 1;
    public static const int DTWAIN_TWAINDSM_LEGACY = 1;
    public static const int DTWAIN_TWAINDSM_VERSION2 = 2;
    public static const int DTWAIN_TWAINDSM_LATESTVERSION = 4;
    public static const int DTWAIN_TWAINDSMSEARCH_NOTFOUND = (-1);
    public static const int DTWAIN_TWAINDSMSEARCH_WSO = 0;
    public static const int DTWAIN_TWAINDSMSEARCH_WOS = 1;
    public static const int DTWAIN_TWAINDSMSEARCH_SWO = 2;
    public static const int DTWAIN_TWAINDSMSEARCH_SOW = 3;
    public static const int DTWAIN_TWAINDSMSEARCH_OWS = 4;
    public static const int DTWAIN_TWAINDSMSEARCH_OSW = 5;
    public static const int DTWAIN_TWAINDSMSEARCH_W = 6;
    public static const int DTWAIN_TWAINDSMSEARCH_S = 7;
    public static const int DTWAIN_TWAINDSMSEARCH_O = 8;
    public static const int DTWAIN_TWAINDSMSEARCH_WS = 9;
    public static const int DTWAIN_TWAINDSMSEARCH_WO = 10;
    public static const int DTWAIN_TWAINDSMSEARCH_SW = 11;
    public static const int DTWAIN_TWAINDSMSEARCH_SO = 12;
    public static const int DTWAIN_TWAINDSMSEARCH_OW = 13;
    public static const int DTWAIN_TWAINDSMSEARCH_OS = 14;
    public static const int DTWAIN_TWAINDSMSEARCH_C = 15;
    public static const int DTWAIN_TWAINDSMSEARCH_U = 16;
    public static const int DTWAIN_PDFPOLARITY_POSITIVE = 1;
    public static const int DTWAIN_PDFPOLARITY_NEGATIVE = 2;
    public static const int DTWAIN_TWPF_NORMAL = 0;
    public static const int DTWAIN_TWPF_BOLD = 1;
    public static const int DTWAIN_TWPF_ITALIC = 2;
    public static const int DTWAIN_TWPF_LARGESIZE = 3;
    public static const int DTWAIN_TWPF_SMALLSIZE = 4;
    public static const int DTWAIN_TWCT_PAGE = 0;
    public static const int DTWAIN_TWCT_PATCH1 = 1;
    public static const int DTWAIN_TWCT_PATCH2 = 2;
    public static const int DTWAIN_TWCT_PATCH3 = 3;
    public static const int DTWAIN_TWCT_PATCH4 = 4;
    public static const int DTWAIN_TWCT_PATCH5 = 5;
    public static const int DTWAIN_TWCT_PATCH6 = 6;
    public static const int DTWAIN_AUTOSIZE_NONE = 0;
    public static const int DTWAIN_CV_CAPCUSTOMBASE = 0x8000;
    public static const int DTWAIN_CV_CAPXFERCOUNT = 0x0001;
    public static const int DTWAIN_CV_ICAPCOMPRESSION = 0x0100;
    public static const int DTWAIN_CV_ICAPPIXELTYPE = 0x0101;
    public static const int DTWAIN_CV_ICAPUNITS = 0x0102;
    public static const int DTWAIN_CV_ICAPXFERMECH = 0x0103;
    public static const int DTWAIN_CV_CAPAUTHOR = 0x1000;
    public static const int DTWAIN_CV_CAPCAPTION = 0x1001;
    public static const int DTWAIN_CV_CAPFEEDERENABLED = 0x1002;
    public static const int DTWAIN_CV_CAPFEEDERLOADED = 0x1003;
    public static const int DTWAIN_CV_CAPTIMEDATE = 0x1004;
    public static const int DTWAIN_CV_CAPSUPPORTEDCAPS = 0x1005;
    public static const int DTWAIN_CV_CAPEXTENDEDCAPS = 0x1006;
    public static const int DTWAIN_CV_CAPAUTOFEED = 0x1007;
    public static const int DTWAIN_CV_CAPCLEARPAGE = 0x1008;
    public static const int DTWAIN_CV_CAPFEEDPAGE = 0x1009;
    public static const int DTWAIN_CV_CAPREWINDPAGE = 0x100a;
    public static const int DTWAIN_CV_CAPINDICATORS = 0x100b;
    public static const int DTWAIN_CV_CAPSUPPORTEDCAPSEXT = 0x100c;
    public static const int DTWAIN_CV_CAPPAPERDETECTABLE = 0x100d;
    public static const int DTWAIN_CV_CAPUICONTROLLABLE = 0x100e;
    public static const int DTWAIN_CV_CAPDEVICEONLINE = 0x100f;
    public static const int DTWAIN_CV_CAPAUTOSCAN = 0x1010;
    public static const int DTWAIN_CV_CAPTHUMBNAILSENABLED = 0x1011;
    public static const int DTWAIN_CV_CAPDUPLEX = 0x1012;
    public static const int DTWAIN_CV_CAPDUPLEXENABLED = 0x1013;
    public static const int DTWAIN_CV_CAPENABLEDSUIONLY = 0x1014;
    public static const int DTWAIN_CV_CAPCUSTOMDSDATA = 0x1015;
    public static const int DTWAIN_CV_CAPENDORSER = 0x1016;
    public static const int DTWAIN_CV_CAPJOBCONTROL = 0x1017;
    public static const int DTWAIN_CV_CAPALARMS = 0x1018;
    public static const int DTWAIN_CV_CAPALARMVOLUME = 0x1019;
    public static const int DTWAIN_CV_CAPAUTOMATICCAPTURE = 0x101a;
    public static const int DTWAIN_CV_CAPTIMEBEFOREFIRSTCAPTURE = 0x101b;
    public static const int DTWAIN_CV_CAPTIMEBETWEENCAPTURES = 0x101c;
    public static const int DTWAIN_CV_CAPCLEARBUFFERS = 0x101d;
    public static const int DTWAIN_CV_CAPMAXBATCHBUFFERS = 0x101e;
    public static const int DTWAIN_CV_CAPDEVICETIMEDATE = 0x101f;
    public static const int DTWAIN_CV_CAPPOWERSUPPLY = 0x1020;
    public static const int DTWAIN_CV_CAPCAMERAPREVIEWUI = 0x1021;
    public static const int DTWAIN_CV_CAPDEVICEEVENT = 0x1022;
    public static const int DTWAIN_CV_CAPPAGEMULTIPLEACQUIRE = 0x1023;
    public static const int DTWAIN_CV_CAPSERIALNUMBER = 0x1024;
    public static const int DTWAIN_CV_CAPFILESYSTEM = 0x1025;
    public static const int DTWAIN_CV_CAPPRINTER = 0x1026;
    public static const int DTWAIN_CV_CAPPRINTERENABLED = 0x1027;
    public static const int DTWAIN_CV_CAPPRINTERINDEX = 0x1028;
    public static const int DTWAIN_CV_CAPPRINTERMODE = 0x1029;
    public static const int DTWAIN_CV_CAPPRINTERSTRING = 0x102a;
    public static const int DTWAIN_CV_CAPPRINTERSUFFIX = 0x102b;
    public static const int DTWAIN_CV_CAPLANGUAGE = 0x102c;
    public static const int DTWAIN_CV_CAPFEEDERALIGNMENT = 0x102d;
    public static const int DTWAIN_CV_CAPFEEDERORDER = 0x102e;
    public static const int DTWAIN_CV_CAPPAPERBINDING = 0x102f;
    public static const int DTWAIN_CV_CAPREACQUIREALLOWED = 0x1030;
    public static const int DTWAIN_CV_CAPPASSTHRU = 0x1031;
    public static const int DTWAIN_CV_CAPBATTERYMINUTES = 0x1032;
    public static const int DTWAIN_CV_CAPBATTERYPERCENTAGE = 0x1033;
    public static const int DTWAIN_CV_CAPPOWERDOWNTIME = 0x1034;
    public static const int DTWAIN_CV_CAPSEGMENTED = 0x1035;
    public static const int DTWAIN_CV_CAPCAMERAENABLED = 0x1036;
    public static const int DTWAIN_CV_CAPCAMERAORDER = 0x1037;
    public static const int DTWAIN_CV_CAPMICRENABLED = 0x1038;
    public static const int DTWAIN_CV_CAPFEEDERPREP = 0x1039;
    public static const int DTWAIN_CV_CAPFEEDERPOCKET = 0x103a;
    public static const int DTWAIN_CV_CAPAUTOMATICSENSEMEDIUM = 0x103b;
    public static const int DTWAIN_CV_CAPCUSTOMINTERFACEGUID = 0x103c;
    public static const int DTWAIN_CV_CAPSUPPORTEDCAPSSEGMENTUNIQUE = 0x103d;
    public static const int DTWAIN_CV_CAPSUPPORTEDDATS = 0x103e;
    public static const int DTWAIN_CV_CAPDOUBLEFEEDDETECTION = 0x103f;
    public static const int DTWAIN_CV_CAPDOUBLEFEEDDETECTIONLENGTH = 0x1040;
    public static const int DTWAIN_CV_CAPDOUBLEFEEDDETECTIONSENSITIVITY = 0x1041;
    public static const int DTWAIN_CV_CAPDOUBLEFEEDDETECTIONRESPONSE = 0x1042;
    public static const int DTWAIN_CV_CAPPAPERHANDLING = 0x1043;
    public static const int DTWAIN_CV_CAPINDICATORSMODE = 0x1044;
    public static const int DTWAIN_CV_CAPPRINTERVERTICALOFFSET = 0x1045;
    public static const int DTWAIN_CV_CAPPOWERSAVETIME = 0x1046;
    public static const int DTWAIN_CV_CAPPRINTERCHARROTATION = 0x1047;
    public static const int DTWAIN_CV_CAPPRINTERFONTSTYLE = 0x1048;
    public static const int DTWAIN_CV_CAPPRINTERINDEXLEADCHAR = 0x1049;
    public static const int DTWAIN_CV_CAPIMAGEADDRESSENABLED = 0x1050;
    public static const int DTWAIN_CV_CAPIAFIELDA_LEVEL = 0x1051;
    public static const int DTWAIN_CV_CAPIAFIELDB_LEVEL = 0x1052;
    public static const int DTWAIN_CV_CAPIAFIELDC_LEVEL = 0x1053;
    public static const int DTWAIN_CV_CAPIAFIELDD_LEVEL = 0x1054;
    public static const int DTWAIN_CV_CAPIAFIELDE_LEVEL = 0x1055;
    public static const int DTWAIN_CV_CAPIAFIELDA_PRINTFORMAT = 0x1056;
    public static const int DTWAIN_CV_CAPIAFIELDB_PRINTFORMAT = 0x1057;
    public static const int DTWAIN_CV_CAPIAFIELDC_PRINTFORMAT = 0x1058;
    public static const int DTWAIN_CV_CAPIAFIELDD_PRINTFORMAT = 0x1059;
    public static const int DTWAIN_CV_CAPIAFIELDE_PRINTFORMAT = 0x105A;
    public static const int DTWAIN_CV_CAPIAFIELDA_VALUE = 0x105B;
    public static const int DTWAIN_CV_CAPIAFIELDB_VALUE = 0x105C;
    public static const int DTWAIN_CV_CAPIAFIELDC_VALUE = 0x105D;
    public static const int DTWAIN_CV_CAPIAFIELDD_VALUE = 0x105E;
    public static const int DTWAIN_CV_CAPIAFIELDE_VALUE = 0x105F;
    public static const int DTWAIN_CV_CAPIAFIELDA_LASTPAGE = 0x1060;
    public static const int DTWAIN_CV_CAPIAFIELDB_LASTPAGE = 0x1061;
    public static const int DTWAIN_CV_CAPIAFIELDC_LASTPAGE = 0x1062;
    public static const int DTWAIN_CV_CAPIAFIELDD_LASTPAGE = 0x1063;
    public static const int DTWAIN_CV_CAPIAFIELDE_LASTPAGE = 0x1064;
    public static const int DTWAIN_CV_CAPPRINTERINDEXMAXVALUE = 0x104A;
    public static const int DTWAIN_CV_CAPPRINTERINDEXNUMDIGITS = 0x104B;
    public static const int DTWAIN_CV_CAPPRINTERINDEXSTEP = 0x104C;
    public static const int DTWAIN_CV_CAPPRINTERINDEXTRIGGER = 0x104D;
    public static const int DTWAIN_CV_CAPPRINTERSTRINGPREVIEW = 0x104E;
    public static const int DTWAIN_CV_ICAPAUTOBRIGHT = 0x1100;
    public static const int DTWAIN_CV_ICAPBRIGHTNESS = 0x1101;
    public static const int DTWAIN_CV_ICAPCONTRAST = 0x1103;
    public static const int DTWAIN_CV_ICAPCUSTHALFTONE = 0x1104;
    public static const int DTWAIN_CV_ICAPEXPOSURETIME = 0x1105;
    public static const int DTWAIN_CV_ICAPFILTER = 0x1106;
    public static const int DTWAIN_CV_ICAPFLASHUSED = 0x1107;
    public static const int DTWAIN_CV_ICAPGAMMA = 0x1108;
    public static const int DTWAIN_CV_ICAPHALFTONES = 0x1109;
    public static const int DTWAIN_CV_ICAPHIGHLIGHT = 0x110a;
    public static const int DTWAIN_CV_ICAPIMAGEFILEFORMAT = 0x110c;
    public static const int DTWAIN_CV_ICAPLAMPSTATE = 0x110d;
    public static const int DTWAIN_CV_ICAPLIGHTSOURCE = 0x110e;
    public static const int DTWAIN_CV_ICAPORIENTATION = 0x1110;
    public static const int DTWAIN_CV_ICAPPHYSICALWIDTH = 0x1111;
    public static const int DTWAIN_CV_ICAPPHYSICALHEIGHT = 0x1112;
    public static const int DTWAIN_CV_ICAPSHADOW = 0x1113;
    public static const int DTWAIN_CV_ICAPFRAMES = 0x1114;
    public static const int DTWAIN_CV_ICAPXNATIVERESOLUTION = 0x1116;
    public static const int DTWAIN_CV_ICAPYNATIVERESOLUTION = 0x1117;
    public static const int DTWAIN_CV_ICAPXRESOLUTION = 0x1118;
    public static const int DTWAIN_CV_ICAPYRESOLUTION = 0x1119;
    public static const int DTWAIN_CV_ICAPMAXFRAMES = 0x111a;
    public static const int DTWAIN_CV_ICAPTILES = 0x111b;
    public static const int DTWAIN_CV_ICAPBITORDER = 0x111c;
    public static const int DTWAIN_CV_ICAPCCITTKFACTOR = 0x111d;
    public static const int DTWAIN_CV_ICAPLIGHTPATH = 0x111e;
    public static const int DTWAIN_CV_ICAPPIXELFLAVOR = 0x111f;
    public static const int DTWAIN_CV_ICAPPLANARCHUNKY = 0x1120;
    public static const int DTWAIN_CV_ICAPROTATION = 0x1121;
    public static const int DTWAIN_CV_ICAPSUPPORTEDSIZES = 0x1122;
    public static const int DTWAIN_CV_ICAPTHRESHOLD = 0x1123;
    public static const int DTWAIN_CV_ICAPXSCALING = 0x1124;
    public static const int DTWAIN_CV_ICAPYSCALING = 0x1125;
    public static const int DTWAIN_CV_ICAPBITORDERCODES = 0x1126;
    public static const int DTWAIN_CV_ICAPPIXELFLAVORCODES = 0x1127;
    public static const int DTWAIN_CV_ICAPJPEGPIXELTYPE = 0x1128;
    public static const int DTWAIN_CV_ICAPTIMEFILL = 0x112a;
    public static const int DTWAIN_CV_ICAPBITDEPTH = 0x112b;
    public static const int DTWAIN_CV_ICAPBITDEPTHREDUCTION = 0x112c;
    public static const int DTWAIN_CV_ICAPUNDEFINEDIMAGESIZE = 0x112d;
    public static const int DTWAIN_CV_ICAPIMAGEDATASET = 0x112e;
    public static const int DTWAIN_CV_ICAPEXTIMAGEINFO = 0x112f;
    public static const int DTWAIN_CV_ICAPMINIMUMHEIGHT = 0x1130;
    public static const int DTWAIN_CV_ICAPMINIMUMWIDTH = 0x1131;
    public static const int DTWAIN_CV_ICAPAUTOBORDERDETECTION = 0x1132;
    public static const int DTWAIN_CV_ICAPAUTODESKEW = 0x1133;
    public static const int DTWAIN_CV_ICAPAUTODISCARDBLANKPAGES = 0x1134;
    public static const int DTWAIN_CV_ICAPAUTOROTATE = 0x1135;
    public static const int DTWAIN_CV_ICAPFLIPROTATION = 0x1136;
    public static const int DTWAIN_CV_ICAPBARCODEDETECTIONENABLED = 0x1137;
    public static const int DTWAIN_CV_ICAPSUPPORTEDBARCODETYPES = 0x1138;
    public static const int DTWAIN_CV_ICAPBARCODEMAXSEARCHPRIORITIES = 0x1139;
    public static const int DTWAIN_CV_ICAPBARCODESEARCHPRIORITIES = 0x113a;
    public static const int DTWAIN_CV_ICAPBARCODESEARCHMODE = 0x113b;
    public static const int DTWAIN_CV_ICAPBARCODEMAXRETRIES = 0x113c;
    public static const int DTWAIN_CV_ICAPBARCODETIMEOUT = 0x113d;
    public static const int DTWAIN_CV_ICAPZOOMFACTOR = 0x113e;
    public static const int DTWAIN_CV_ICAPPATCHCODEDETECTIONENABLED = 0x113f;
    public static const int DTWAIN_CV_ICAPSUPPORTEDPATCHCODETYPES = 0x1140;
    public static const int DTWAIN_CV_ICAPPATCHCODEMAXSEARCHPRIORITIES = 0x1141;
    public static const int DTWAIN_CV_ICAPPATCHCODESEARCHPRIORITIES = 0x1142;
    public static const int DTWAIN_CV_ICAPPATCHCODESEARCHMODE = 0x1143;
    public static const int DTWAIN_CV_ICAPPATCHCODEMAXRETRIES = 0x1144;
    public static const int DTWAIN_CV_ICAPPATCHCODETIMEOUT = 0x1145;
    public static const int DTWAIN_CV_ICAPFLASHUSED2 = 0x1146;
    public static const int DTWAIN_CV_ICAPIMAGEFILTER = 0x1147;
    public static const int DTWAIN_CV_ICAPNOISEFILTER = 0x1148;
    public static const int DTWAIN_CV_ICAPOVERSCAN = 0x1149;
    public static const int DTWAIN_CV_ICAPAUTOMATICBORDERDETECTION = 0x1150;
    public static const int DTWAIN_CV_ICAPAUTOMATICDESKEW = 0x1151;
    public static const int DTWAIN_CV_ICAPAUTOMATICROTATE = 0x1152;
    public static const int DTWAIN_CV_ICAPJPEGQUALITY = 0x1153;
    public static const int DTWAIN_CV_ICAPFEEDERTYPE = 0x1154;
    public static const int DTWAIN_CV_ICAPICCPROFILE = 0x1155;
    public static const int DTWAIN_CV_ICAPAUTOSIZE = 0x1156;
    public static const int DTWAIN_CV_ICAPAUTOMATICCROPUSESFRAME = 0x1157;
    public static const int DTWAIN_CV_ICAPAUTOMATICLENGTHDETECTION = 0x1158;
    public static const int DTWAIN_CV_ICAPAUTOMATICCOLORENABLED = 0x1159;
    public static const int DTWAIN_CV_ICAPAUTOMATICCOLORNONCOLORPIXELTYPE = 0x115a;
    public static const int DTWAIN_CV_ICAPCOLORMANAGEMENTENABLED = 0x115b;
    public static const int DTWAIN_CV_ICAPIMAGEMERGE = 0x115c;
    public static const int DTWAIN_CV_ICAPIMAGEMERGEHEIGHTTHRESHOLD = 0x115d;
    public static const int DTWAIN_CV_ICAPSUPPORTEDEXTIMAGEINFO = 0x115e;
    public static const int DTWAIN_CV_ICAPFILMTYPE = 0x115f;
    public static const int DTWAIN_CV_ICAPMIRROR = 0x1160;
    public static const int DTWAIN_CV_ICAPJPEGSUBSAMPLING = 0x1161;
    public static const int DTWAIN_CV_ACAPAUDIOFILEFORMAT = 0x1201;
    public static const int DTWAIN_CV_ACAPXFERMECH = 0x1202;
    public static const int DTWAIN_CFMCV_CAPCFMSTART = 2048;
    public static const int DTWAIN_CFMCV_CAPDUPLEXSCANNER = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+10);
    public static const int DTWAIN_CFMCV_CAPDUPLEXENABLE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+11);
    public static const int DTWAIN_CFMCV_CAPSCANNERNAME = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+12);
    public static const int DTWAIN_CFMCV_CAPSINGLEPASS = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+13);
    public static const int DTWAIN_CFMCV_CAPERRHANDLING = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+20);
    public static const int DTWAIN_CFMCV_CAPFEEDERSTATUS = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+21);
    public static const int DTWAIN_CFMCV_CAPFEEDMEDIUMWAIT = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+22);
    public static const int DTWAIN_CFMCV_CAPFEEDWAITTIME = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+23);
    public static const int DTWAIN_CFMCV_ICAPWHITEBALANCE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+24);
    public static const int DTWAIN_CFMCV_ICAPAUTOBINARY = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+25);
    public static const int DTWAIN_CFMCV_ICAPIMAGESEPARATION = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+26);
    public static const int DTWAIN_CFMCV_ICAPHARDWARECOMPRESSION = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+27);
    public static const int DTWAIN_CFMCV_ICAPIMAGEEMPHASIS = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+28);
    public static const int DTWAIN_CFMCV_ICAPOUTLINING = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+29);
    public static const int DTWAIN_CFMCV_ICAPDYNTHRESHOLD = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+30);
    public static const int DTWAIN_CFMCV_ICAPVARIANCE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+31);
    public static const int DTWAIN_CFMCV_CAPENDORSERAVAILABLE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+32);
    public static const int DTWAIN_CFMCV_CAPENDORSERENABLE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+33);
    public static const int DTWAIN_CFMCV_CAPENDORSERCHARSET = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+34);
    public static const int DTWAIN_CFMCV_CAPENDORSERSTRINGLENGTH = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+35);
    public static const int DTWAIN_CFMCV_CAPENDORSERSTRING = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+36);
    public static const int DTWAIN_CFMCV_ICAPDYNTHRESHOLDCURVE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+48);
    public static const int DTWAIN_CFMCV_ICAPSMOOTHINGMODE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+49);
    public static const int DTWAIN_CFMCV_ICAPFILTERMODE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+50);
    public static const int DTWAIN_CFMCV_ICAPGRADATION = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+51);
    public static const int DTWAIN_CFMCV_ICAPMIRROR = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+52);
    public static const int DTWAIN_CFMCV_ICAPEASYSCANMODE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+53);
    public static const int DTWAIN_CFMCV_ICAPSOFTWAREINTERPOLATION = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+54);
    public static const int DTWAIN_CFMCV_ICAPIMAGESEPARATIONEX = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+55);
    public static const int DTWAIN_CFMCV_CAPDUPLEXPAGE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+56);
    public static const int DTWAIN_CFMCV_ICAPINVERTIMAGE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+57);
    public static const int DTWAIN_CFMCV_ICAPSPECKLEREMOVE = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+58);
    public static const int DTWAIN_CFMCV_ICAPUSMFILTER = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+59);
    public static const int DTWAIN_CFMCV_ICAPNOISEFILTERCFM = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+60);
    public static const int DTWAIN_CFMCV_ICAPDESCREENING = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+61);
    public static const int DTWAIN_CFMCV_ICAPQUALITYFILTER = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+62);
    public static const int DTWAIN_CFMCV_ICAPBINARYFILTER = (DTWAIN_CV_CAPCUSTOMBASE+DTWAIN_CFMCV_CAPCFMSTART+63);
    public static const int DTWAIN_OCRCV_IMAGEFILEFORMAT = 0x1000;
    public static const int DTWAIN_OCRCV_DESKEW = 0x1001;
    public static const int DTWAIN_OCRCV_DESHADE = 0x1002;
    public static const int DTWAIN_OCRCV_ORIENTATION = 0x1003;
    public static const int DTWAIN_OCRCV_NOISEREMOVE = 0x1004;
    public static const int DTWAIN_OCRCV_LINEREMOVE = 0x1005;
    public static const int DTWAIN_OCRCV_INVERTPAGE = 0x1006;
    public static const int DTWAIN_OCRCV_INVERTZONES = 0x1007;
    public static const int DTWAIN_OCRCV_LINEREJECT = 0x1008;
    public static const int DTWAIN_OCRCV_CHARACTERREJECT = 0x1009;
    public static const int DTWAIN_OCRCV_ERRORREPORTMODE = 0x1010;
    public static const int DTWAIN_OCRCV_ERRORREPORTFILE = 0x1011;
    public static const int DTWAIN_OCRCV_PIXELTYPE = 0x1012;
    public static const int DTWAIN_OCRCV_BITDEPTH = 0x1013;
    public static const int DTWAIN_OCRCV_RETURNCHARINFO = 0x1014;
    public static const int DTWAIN_OCRCV_NATIVEFILEFORMAT = 0x1015;
    public static const int DTWAIN_OCRCV_MPNATIVEFILEFORMAT = 0x1016;
    public static const int DTWAIN_OCRCV_SUPPORTEDCAPS = 0x1017;
    public static const int DTWAIN_OCRCV_DISABLECHARACTERS = 0x1018;
    public static const int DTWAIN_OCRCV_REMOVECONTROLCHARS = 0x1019;
    public static const int DTWAIN_OCRORIENT_OFF = 0;
    public static const int DTWAIN_OCRORIENT_AUTO = 1;
    public static const int DTWAIN_OCRORIENT_90 = 2;
    public static const int DTWAIN_OCRORIENT_180 = 3;
    public static const int DTWAIN_OCRORIENT_270 = 4;
    public static const int DTWAIN_OCRIMAGEFORMAT_AUTO = 10000;
    public static const int DTWAIN_OCRERROR_MODENONE = 0;
    public static const int DTWAIN_OCRERROR_SHOWMSGBOX = 1;
    public static const int DTWAIN_OCRERROR_WRITEFILE = 2;
    public static const int DTWAIN_PDFTEXT_ALLPAGES = 0x00000001;
    public static const int DTWAIN_PDFTEXT_EVENPAGES = 0x00000002;
    public static const int DTWAIN_PDFTEXT_ODDPAGES = 0x00000004;
    public static const int DTWAIN_PDFTEXT_FIRSTPAGE = 0x00000008;
    public static const int DTWAIN_PDFTEXT_LASTPAGE = 0x00000010;
    public static const int DTWAIN_PDFTEXT_CURRENTPAGE = 0x00000020;
    public static const int DTWAIN_PDFTEXT_DISABLED = 0x00000040;
    public static const int DTWAIN_PDFTEXT_TOPLEFT = 0x00000100;
    public static const int DTWAIN_PDFTEXT_TOPRIGHT = 0x00000200;
    public static const int DTWAIN_PDFTEXT_HORIZCENTER = 0x00000400;
    public static const int DTWAIN_PDFTEXT_VERTCENTER = 0x00000800;
    public static const int DTWAIN_PDFTEXT_BOTTOMLEFT = 0x00001000;
    public static const int DTWAIN_PDFTEXT_BOTTOMRIGHT = 0x00002000;
    public static const int DTWAIN_PDFTEXT_BOTTOMCENTER = 0x00004000;
    public static const int DTWAIN_PDFTEXT_TOPCENTER = 0x00008000;
    public static const int DTWAIN_PDFTEXT_XCENTER = 0x00010000;
    public static const int DTWAIN_PDFTEXT_YCENTER = 0x00020000;
    public static const int DTWAIN_PDFTEXT_NOSCALING = 0x00100000;
    public static const int DTWAIN_PDFTEXT_NOCHARSPACING = 0x00200000;
    public static const int DTWAIN_PDFTEXT_NOWORDSPACING = 0x00400000;
    public static const int DTWAIN_PDFTEXT_NOSTROKEWIDTH = 0x00800000;
    public static const int DTWAIN_PDFTEXT_NORENDERMODE = 0x01000000;
    public static const int DTWAIN_PDFTEXT_NORGBCOLOR = 0x02000000;
    public static const int DTWAIN_PDFTEXT_NOFONTSIZE = 0x04000000;
    public static const int DTWAIN_PDFTEXT_NOABSPOSITION = 0x08000000;
    public static const int DTWAIN_PDFTEXT_NOROTATION = 0x10000000;
    public static const int DTWAIN_PDFTEXT_NOSKEWING = 0x20000000;
    public static const int DTWAIN_PDFTEXT_NOSCALINGXY = 0x40000000;
    public static const uint DTWAIN_PDFTEXT_IGNOREALL = 0xFFF00000U;
    public static const int DTWAIN_FONT_COURIER = 0;
    public static const int DTWAIN_FONT_COURIERBOLD = 1;
    public static const int DTWAIN_FONT_COURIERBOLDOBLIQUE = 2;
    public static const int DTWAIN_FONT_COURIEROBLIQUE = 3;
    public static const int DTWAIN_FONT_HELVETICA = 4;
    public static const int DTWAIN_FONT_HELVETICABOLD = 5;
    public static const int DTWAIN_FONT_HELVETICABOLDOBLIQUE = 6;
    public static const int DTWAIN_FONT_HELVETICAOBLIQUE = 7;
    public static const int DTWAIN_FONT_TIMESBOLD = 8;
    public static const int DTWAIN_FONT_TIMESBOLDITALIC = 9;
    public static const int DTWAIN_FONT_TIMESROMAN = 10;
    public static const int DTWAIN_FONT_TIMESITALIC = 11;
    public static const int DTWAIN_FONT_SYMBOL = 12;
    public static const int DTWAIN_FONT_ZAPFDINGBATS = 13;
    public static const int DTWAIN_PDFRENDER_FILL = 0;
    public static const int DTWAIN_PDFRENDER_STROKE = 1;
    public static const int DTWAIN_PDFRENDER_FILLSTROKE = 2;
    public static const int DTWAIN_PDFRENDER_INVISIBLE = 3;
    public static const int DTWAIN_PDFTEXTELEMENT_SCALINGXY = 0;
    public static const int DTWAIN_PDFTEXTELEMENT_FONTHEIGHT = 1;
    public static const int DTWAIN_PDFTEXTELEMENT_WORDSPACING = 2;
    public static const int DTWAIN_PDFTEXTELEMENT_POSITION = 3;
    public static const int DTWAIN_PDFTEXTELEMENT_COLOR = 4;
    public static const int DTWAIN_PDFTEXTELEMENT_STROKEWIDTH = 5;
    public static const int DTWAIN_PDFTEXTELEMENT_DISPLAYFLAGS = 6;
    public static const int DTWAIN_PDFTEXTELEMENT_FONTNAME = 7;
    public static const int DTWAIN_PDFTEXTELEMENT_TEXT = 8;
    public static const int DTWAIN_PDFTEXTELEMENT_RENDERMODE = 9;
    public static const int DTWAIN_PDFTEXTELEMENT_CHARSPACING = 10;
    public static const int DTWAIN_PDFTEXTELEMENT_ROTATIONANGLE = 11;
    public static const int DTWAIN_PDFTEXTELEMENT_LEADING = 12;
    public static const int DTWAIN_PDFTEXTELEMENT_SCALING = 13;
    public static const int DTWAIN_PDFTEXTELEMENT_TEXTLENGTH = 14;
    public static const int DTWAIN_PDFTEXTELEMENT_SKEWANGLES = 15;
    public static const int DTWAIN_PDFTEXTELEMENT_TRANSFORMORDER = 16;
    public static const int DTWAIN_PDFTEXTTRANSFORM_SRK = 0;
    public static const int DTWAIN_PDFTEXTTRANSFORM_SKR = 1;
    public static const int DTWAIN_PDFTEXTTRANSFORM_KSR = 2;
    public static const int DTWAIN_PDFTEXTTRANSFORM_KRS = 3;
    public static const int DTWAIN_PDFTEXTTRANSFORM_RSK = 4;
    public static const int DTWAIN_PDFTEXTTRANSFORM_RKS = 5;
    public static const int DTWAIN_PDFTEXTTRANFORM_LAST = DTWAIN_PDFTEXTTRANSFORM_RKS;
    public static const int DTWAIN_TWDF_ULTRASONIC = 0;
    public static const int DTWAIN_TWDF_BYLENGTH = 1;
    public static const int DTWAIN_TWDF_INFRARED = 2;
    public static const int DTWAIN_TWAS_NONE = 0;
    public static const int DTWAIN_TWAS_AUTO = 1;
    public static const int DTWAIN_TWAS_CURRENT = 2;
    public static const int DTWAIN_TWFR_BOOK = 0;
    public static const int DTWAIN_TWFR_FANFOLD = 1;
    public static const int DTWAIN_CONSTANT_TWPT = 0 ;
    public static const int DTWAIN_CONSTANT_TWUN = 1 ;
    public static const int DTWAIN_CONSTANT_TWCY = 2 ;
    public static const int DTWAIN_CONSTANT_TWAL = 3 ;
    public static const int DTWAIN_CONSTANT_TWAS = 4 ;
    public static const int DTWAIN_CONSTANT_TWBCOR = 5 ;
    public static const int DTWAIN_CONSTANT_TWBD = 6 ;
    public static const int DTWAIN_CONSTANT_TWBO = 7 ;
    public static const int DTWAIN_CONSTANT_TWBP = 8 ;
    public static const int DTWAIN_CONSTANT_TWBR = 9 ;
    public static const int DTWAIN_CONSTANT_TWBT = 10;
    public static const int DTWAIN_CONSTANT_TWCP = 11;
    public static const int DTWAIN_CONSTANT_TWCS = 12;
    public static const int DTWAIN_CONSTANT_TWDE = 13;
    public static const int DTWAIN_CONSTANT_TWDR = 14;
    public static const int DTWAIN_CONSTANT_TWDSK = 15;
    public static const int DTWAIN_CONSTANT_TWDX = 16;
    public static const int DTWAIN_CONSTANT_TWFA = 17;
    public static const int DTWAIN_CONSTANT_TWFE = 18;
    public static const int DTWAIN_CONSTANT_TWFF = 19;
    public static const int DTWAIN_CONSTANT_TWFL = 20;
    public static const int DTWAIN_CONSTANT_TWFO = 21;
    public static const int DTWAIN_CONSTANT_TWFP = 22;
    public static const int DTWAIN_CONSTANT_TWFR = 23;
    public static const int DTWAIN_CONSTANT_TWFT = 24;
    public static const int DTWAIN_CONSTANT_TWFY = 25;
    public static const int DTWAIN_CONSTANT_TWIA = 26;
    public static const int DTWAIN_CONSTANT_TWIC = 27;
    public static const int DTWAIN_CONSTANT_TWIF = 28;
    public static const int DTWAIN_CONSTANT_TWIM = 29;
    public static const int DTWAIN_CONSTANT_TWJC = 30;
    public static const int DTWAIN_CONSTANT_TWJQ = 31;
    public static const int DTWAIN_CONSTANT_TWLP = 32;
    public static const int DTWAIN_CONSTANT_TWLS = 33;
    public static const int DTWAIN_CONSTANT_TWMD = 34;
    public static const int DTWAIN_CONSTANT_TWNF = 35;
    public static const int DTWAIN_CONSTANT_TWOR = 36;
    public static const int DTWAIN_CONSTANT_TWOV = 37;
    public static const int DTWAIN_CONSTANT_TWPA = 38;
    public static const int DTWAIN_CONSTANT_TWPC = 39;
    public static const int DTWAIN_CONSTANT_TWPCH = 40;
    public static const int DTWAIN_CONSTANT_TWPF = 41;
    public static const int DTWAIN_CONSTANT_TWPM = 42;
    public static const int DTWAIN_CONSTANT_TWPR = 43;
    public static const int DTWAIN_CONSTANT_TWPF2 = 44;
    public static const int DTWAIN_CONSTANT_TWCT = 45;
    public static const int DTWAIN_CONSTANT_TWPS = 46;
    public static const int DTWAIN_CONSTANT_TWSS = 47;
    public static const int DTWAIN_CONSTANT_TWPH = 48;
    public static const int DTWAIN_CONSTANT_TWCI = 49;
    public static const int DTWAIN_CONSTANT_FONTNAME = 50;
    public static const int DTWAIN_CONSTANT_TWEI = 51;
    public static const int DTWAIN_CONSTANT_TWEJ = 52;
    public static const int DTWAIN_CONSTANT_TWCC = 53;
    public static const int DTWAIN_CONSTANT_TWQC = 54;
    public static const int DTWAIN_CONSTANT_TWRC = 55;
    public static const int DTWAIN_CONSTANT_MSG = 56;
    public static const int DTWAIN_CONSTANT_TWLG = 57;
    public static const int DTWAIN_CONSTANT_DLLINFO = 58;
    public static const int DTWAIN_CONSTANT_DG = 59;
    public static const int DTWAIN_CONSTANT_DAT = 60;
    public static const int DTWAIN_CONSTANT_DF = 61;
    public static const int DTWAIN_CONSTANT_TWTY = 62;
    public static const int DTWAIN_CONSTANT_TWCB = 63;
    public static const int DTWAIN_CONSTANT_TWAF = 64;
    public static const int DTWAIN_CONSTANT_TWFS = 65;
    public static const int DTWAIN_CONSTANT_TWJS = 66;
    public static const int DTWAIN_CONSTANT_TWMR = 67;
    public static const int DTWAIN_CONSTANT_TWDP = 68;
    public static const int DTWAIN_CONSTANT_TWUS = 69;
    public static const int DTWAIN_CONSTANT_TWDF = 70;
    public static const int DTWAIN_CONSTANT_TWFM = 71;
    public static const int DTWAIN_CONSTANT_TWSG = 72;
    public static const int DTWAIN_CONSTANT_DTWAIN_TN = 73;
    public static const int DTWAIN_CONSTANT_TWON = 74;
    public static const int DTWAIN_CONSTANT_TWMF = 75;
    public static const int DTWAIN_CONSTANT_TWSX = 76;
    public static const int DTWAIN_CONSTANT_CAP = 77;
    public static const int DTWAIN_CONSTANT_ICAP = 78;
    public static const int DTWAIN_CONSTANT_DTWAIN_CONT = 79;
    public static const int DTWAIN_CONSTANT_CAPCODE_MAP = 80;
    public static const int DTWAIN_CONSTANT_ACAP = 81;
    public static const int DTWAIN_CONSTANT_CAPCODE_NOMNEMONIC = 82;
    public static const int DTWAIN_CONSTANT_DTWAINCONT_TWAINCONT = 83;
    public static const int DTWAIN_CONSTANT_ERROR_NAMES = 84;
    public static const int DTWAIN_USERRES_START = 20000;
    public static const int DTWAIN_USERRES_MAXSIZE = 8192;
    public static const int DTWAIN_APIHANDLEOK = 1;
    public static const int DTWAIN_TWAINSESSIONOK = 2;
    public static const int DTWAIN_PDF_AES128 = 1;
    public static const int DTWAIN_PDF_AES256 = 2;
    public static const int DTWAIN_FEEDER_TERMINATE = 1;
    public static const int DTWAIN_FEEDER_USEFLATBED = 2;

    /************ Core API ************/
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireAudioFile;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireAudioFileA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireAudioFileW;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireAudioNative;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_ARRAY, LPLONG) DTWAIN_AcquireAudioNativeEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireBuffered;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_ARRAY, LPLONG) DTWAIN_AcquireBufferedEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireFile;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireFileA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireFileEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireFileW;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireNative;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_ARRAY, LPLONG) DTWAIN_AcquireNativeEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG) DTWAIN_AcquireToClipboard;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_AddExtImageInfoQuery;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE) DTWAIN_AddFileToAppend;
    extern(Windows) DTWAIN_BOOL function(LPCSTR) DTWAIN_AddFileToAppendA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR) DTWAIN_AddFileToAppendW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DWORD) DTWAIN_AddPDFText;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LONG, LONG, LPCSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DWORD) DTWAIN_AddPDFTextA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_PDFTEXTELEMENT) DTWAIN_AddPDFTextElement;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG) DTWAIN_AddPDFTextEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LONG, LONG, LPCSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG) DTWAIN_AddPDFTextExA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LONG, LONG, LPCWSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG) DTWAIN_AddPDFTextExW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DWORD) DTWAIN_AddPDFTextString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LPCSTR, LPCSTR, DWORD) DTWAIN_AddPDFTextStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, DWORD) DTWAIN_AddPDFTextStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LONG, LONG, LPCWSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DWORD) DTWAIN_AddPDFTextW;
    extern(Windows) HANDLE function(DWORD) DTWAIN_AllocateMemory;
    extern(Windows) HANDLE function(ULONG64) DTWAIN_AllocateMemory64;
    extern(Windows) HANDLE function(DWORD) DTWAIN_AllocateMemoryEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_AppHandlesExceptions;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayANSIStringToFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPVOID) DTWAIN_ArrayAdd;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCSTR) DTWAIN_ArrayAddANSIString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCSTR, LONG) DTWAIN_ArrayAddANSIStringN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_FLOAT) DTWAIN_ArrayAddFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_FLOAT, LONG) DTWAIN_ArrayAddFloatN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_CCHARPTRTYPE) DTWAIN_ArrayAddFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCSTR) DTWAIN_ArrayAddFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_ArrayAddFloatStringN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCSTR, LONG) DTWAIN_ArrayAddFloatStringNA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCWSTR, LONG) DTWAIN_ArrayAddFloatStringNW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCWSTR) DTWAIN_ArrayAddFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_FRAME) DTWAIN_ArrayAddFrame;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_FRAME, LONG) DTWAIN_ArrayAddFrameN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayAddLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG64) DTWAIN_ArrayAddLong64;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG64, LONG) DTWAIN_ArrayAddLong64N;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG) DTWAIN_ArrayAddLongN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPVOID, LONG) DTWAIN_ArrayAddN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_CCHARPTRTYPE) DTWAIN_ArrayAddString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCSTR) DTWAIN_ArrayAddStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_ArrayAddStringN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCSTR, LONG) DTWAIN_ArrayAddStringNA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCWSTR, LONG) DTWAIN_ArrayAddStringNW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCWSTR) DTWAIN_ArrayAddStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCWSTR) DTWAIN_ArrayAddWideString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LPCWSTR, LONG) DTWAIN_ArrayAddWideStringN;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayConvertFix32ToFloat;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayConvertFloatToFix32;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_ARRAY) DTWAIN_ArrayCopy;
    extern(Windows) DTWAIN_ARRAY function(LONG, LONG) DTWAIN_ArrayCreate;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayCreateCopy;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, LONG) DTWAIN_ArrayCreateFromCap;
    extern(Windows) DTWAIN_ARRAY function(LPLONG64, LONG) DTWAIN_ArrayCreateFromLong64s;
    extern(Windows) DTWAIN_ARRAY function(LPLONG, LONG) DTWAIN_ArrayCreateFromLongs;
    extern(Windows) DTWAIN_ARRAY function(double*, LONG) DTWAIN_ArrayCreateFromReals;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_CCHARPTRTYPE*, LONG) DTWAIN_ArrayCreateFromStrings;
    extern(Windows) DTWAIN_ARRAY function(LPCSTR*, LONG) DTWAIN_ArrayCreateFromStringsA;
    extern(Windows) DTWAIN_ARRAY function(LPCWSTR*, LONG) DTWAIN_ArrayCreateFromStringsW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY) DTWAIN_ArrayDestroy;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY) DTWAIN_ArrayDestroyFrames;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY) DTWAIN_ArrayDumpToLog;
    extern(Windows) LONG function(DTWAIN_ARRAY, LPVOID) DTWAIN_ArrayFind;
    extern(Windows) LONG function(DTWAIN_ARRAY, LPCSTR) DTWAIN_ArrayFindANSIString;
    extern(Windows) LONG function(DTWAIN_ARRAY, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_ArrayFindFloat;
    extern(Windows) LONG function(DTWAIN_ARRAY, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_ArrayFindFloatString;
    extern(Windows) LONG function(DTWAIN_ARRAY, LPCSTR, LPCSTR) DTWAIN_ArrayFindFloatStringA;
    extern(Windows) LONG function(DTWAIN_ARRAY, LPCWSTR, LPCWSTR) DTWAIN_ArrayFindFloatStringW;
    extern(Windows) LONG function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayFindLong;
    extern(Windows) LONG function(DTWAIN_ARRAY, LONG64) DTWAIN_ArrayFindLong64;
    extern(Windows) LONG function(DTWAIN_ARRAY, DTWAIN_CCHARPTRTYPE) DTWAIN_ArrayFindString;
    extern(Windows) LONG function(DTWAIN_ARRAY, LPCSTR) DTWAIN_ArrayFindStringA;
    extern(Windows) LONG function(DTWAIN_ARRAY, LPCWSTR) DTWAIN_ArrayFindStringW;
    extern(Windows) LONG function(DTWAIN_ARRAY, LPCWSTR) DTWAIN_ArrayFindWideString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_LONG, LPLONG, LPLONG) DTWAIN_ArrayFix32GetAt;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_LONG, DTWAIN_LONG, DTWAIN_LONG) DTWAIN_ArrayFix32SetAt;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayFloatToANSIString;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayFloatToString;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayFloatToWideString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPVOID) DTWAIN_ArrayGetAt;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPSTR) DTWAIN_ArrayGetAtANSIString;
    extern(Windows) LPCSTR function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetAtANSIStringPtr;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPDTWAIN_FLOAT) DTWAIN_ArrayGetAtFloat;
    extern(Windows) DTWAIN_FLOAT function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetAtFloatEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CHARPTRTYPE) DTWAIN_ArrayGetAtFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPSTR) DTWAIN_ArrayGetAtFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPWSTR) DTWAIN_ArrayGetAtFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT) DTWAIN_ArrayGetAtFrame;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FRAME) DTWAIN_ArrayGetAtFrameEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE) DTWAIN_ArrayGetAtFrameString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPSTR, LPSTR, LPSTR, LPSTR) DTWAIN_ArrayGetAtFrameStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPWSTR, LPWSTR, LPWSTR, LPWSTR) DTWAIN_ArrayGetAtFrameStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPLONG) DTWAIN_ArrayGetAtLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPLONG64) DTWAIN_ArrayGetAtLong64;
    extern(Windows) LONG64 function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetAtLong64Ex;
    extern(Windows) LONG function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetAtLongEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_SOURCE*) DTWAIN_ArrayGetAtSource;
    extern(Windows) DTWAIN_SOURCE function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetAtSourceEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CHARPTRTYPE) DTWAIN_ArrayGetAtString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPSTR) DTWAIN_ArrayGetAtStringA;
    extern(Windows) LPCTSTR function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetAtStringPtr;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPWSTR) DTWAIN_ArrayGetAtStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPWSTR) DTWAIN_ArrayGetAtWideString;
    extern(Windows) LPCWSTR function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetAtWideStringPtr;
    extern(Windows) LPVOID function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetBuffer;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, LONG) DTWAIN_ArrayGetCapValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, LONG, LONG) DTWAIN_ArrayGetCapValuesEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, LONG, LONG, LONG) DTWAIN_ArrayGetCapValuesEx2;
    extern(Windows) LONG function(DTWAIN_ARRAY) DTWAIN_ArrayGetCount;
    extern(Windows) LONG function(DTWAIN_ARRAY) DTWAIN_ArrayGetMaxStringLength;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_SOURCE*) DTWAIN_ArrayGetSourceAt;
    extern(Windows) LONG function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayGetStringLength;
    extern(Windows) LONG function(DTWAIN_ARRAY) DTWAIN_ArrayGetType;
    extern(Windows) DTWAIN_ARRAY function() DTWAIN_ArrayInit;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPVOID) DTWAIN_ArrayInsertAt;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR) DTWAIN_ArrayInsertAtANSIString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR, LONG) DTWAIN_ArrayInsertAtANSIStringN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FLOAT) DTWAIN_ArrayInsertAtFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FLOAT, LONG) DTWAIN_ArrayInsertAtFloatN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CCHARPTRTYPE) DTWAIN_ArrayInsertAtFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR) DTWAIN_ArrayInsertAtFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_ArrayInsertAtFloatStringN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR, LONG) DTWAIN_ArrayInsertAtFloatStringNA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR, LONG) DTWAIN_ArrayInsertAtFloatStringNW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR) DTWAIN_ArrayInsertAtFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FRAME) DTWAIN_ArrayInsertAtFrame;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FRAME, LONG) DTWAIN_ArrayInsertAtFrameN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG) DTWAIN_ArrayInsertAtLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG64) DTWAIN_ArrayInsertAtLong64;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG64, LONG) DTWAIN_ArrayInsertAtLong64N;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG, LONG) DTWAIN_ArrayInsertAtLongN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPVOID, LONG) DTWAIN_ArrayInsertAtN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CCHARPTRTYPE) DTWAIN_ArrayInsertAtString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR) DTWAIN_ArrayInsertAtStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_ArrayInsertAtStringN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR, LONG) DTWAIN_ArrayInsertAtStringNA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR, LONG) DTWAIN_ArrayInsertAtStringNW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR) DTWAIN_ArrayInsertAtStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR) DTWAIN_ArrayInsertAtWideString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR, LONG) DTWAIN_ArrayInsertAtWideStringN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY) DTWAIN_ArrayRemoveAll;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayRemoveAt;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG) DTWAIN_ArrayRemoveAtN;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG) DTWAIN_ArrayResize;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPVOID) DTWAIN_ArraySetAt;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR) DTWAIN_ArraySetAtANSIString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FLOAT) DTWAIN_ArraySetAtFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CCHARPTRTYPE) DTWAIN_ArraySetAtFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR) DTWAIN_ArraySetAtFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR) DTWAIN_ArraySetAtFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_ArraySetAtFrame;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_FRAME) DTWAIN_ArraySetAtFrameEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_ArraySetAtFrameString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR, LPCSTR, LPCSTR, LPCSTR) DTWAIN_ArraySetAtFrameStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR) DTWAIN_ArraySetAtFrameStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG) DTWAIN_ArraySetAtLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LONG64) DTWAIN_ArraySetAtLong64;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, DTWAIN_CCHARPTRTYPE) DTWAIN_ArraySetAtString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCSTR) DTWAIN_ArraySetAtStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR) DTWAIN_ArraySetAtStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, LONG, LPCWSTR) DTWAIN_ArraySetAtWideString;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayStringToFloat;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY) DTWAIN_ArrayWideStringToFloat;
    extern(Windows) LONG function(WPARAM, LPARAM, LONG) DTWAIN_CallCallback;
    extern(Windows) LONG function(WPARAM, LPARAM, LONGLONG) DTWAIN_CallCallback64;
    extern(Windows) LONG function(DTWAIN_IDENTITY, DTWAIN_IDENTITY, LONG, LONG, LONG, LPVOID) DTWAIN_CallDSMProc;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_CheckHandles;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_ClearBuffers;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_ClearErrorBuffer;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_ClearPDFTextElements;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_ClearPage;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_CloseSource;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_CloseSourceUI;
    extern(Windows) HANDLE function(HANDLE, HANDLE) DTWAIN_ConvertDIBToBitmap;
    extern(Windows) HANDLE function(HANDLE, DTWAIN_BOOL) DTWAIN_ConvertDIBToFullBitmap;
    extern(Windows) HANDLE function(DTWAIN_CCHARPTRTYPE) DTWAIN_ConvertToAPIString;
    extern(Windows) HANDLE function(LPCSTR) DTWAIN_ConvertToAPIStringA;
    extern(Windows) LONG function(DTWAIN_CCHARPTRTYPE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_ConvertToAPIStringEx;
    extern(Windows) LONG function(LPCSTR, LPSTR, LONG) DTWAIN_ConvertToAPIStringExA;
    extern(Windows) LONG function(LPCWSTR, LPWSTR, LONG) DTWAIN_ConvertToAPIStringExW;
    extern(Windows) HANDLE function(LPCWSTR) DTWAIN_ConvertToAPIStringW;
    extern(Windows) DTWAIN_ARRAY function() DTWAIN_CreateAcquisitionArray;
    extern(Windows) DTWAIN_PDFTEXTELEMENT function() DTWAIN_CreatePDFTextElement;
    extern(Windows) DTWAIN_PDFTEXTELEMENT function(DTWAIN_PDFTEXTELEMENT) DTWAIN_CreatePDFTextElementCopy;
    extern(Windows) DTWAIN_BOOL function(HANDLE) DTWAIN_DeleteDIB;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_DestroyAcquisitionArray;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT) DTWAIN_DestroyPDFTextElement;
    extern(Windows) DTWAIN_BOOL function(HWND, DTWAIN_BOOL) DTWAIN_DisableAppWindow;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableAutoBorderDetect;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableAutoBright;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableAutoDeskew;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableAutoFeed;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableAutoRotate;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableAutoScan;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableAutomaticSenseMedium;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableBarcodeDetection;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableDuplex;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableFeeder;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, BOOL) DTWAIN_EnableGetMessageLoop;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_EnableGetMessageLoopDetection;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableIndicator;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableJobFileHandling;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableLamp;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_EnableMsgNotify;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnablePatchcodeDetection;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, BOOL) DTWAIN_EnablePeekMessageLoop;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnablePrinter;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnableThumbnail;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_EnableTripletsNotify;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_HANDLE) DTWAIN_EndThread;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_EndTwainSession;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumAlarmVolumes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumAlarmVolumesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumAlarms;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumAlarmsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumAudioXferMechs;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumAudioXferMechsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumAutoFeedValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumAutoFeedValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumAutomaticCaptures;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumAutomaticCapturesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumAutomaticSenseMedium;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumAutomaticSenseMediumEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBarcodeCodes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBarcodeCodesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBarcodeMaxPriorities;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBarcodeMaxPrioritiesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBarcodeMaxRetries;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBarcodeMaxRetriesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBarcodePriorities;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBarcodePrioritiesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBarcodeSearchModes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBarcodeSearchModesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBarcodeTimeOutValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBarcodeTimeOutValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBitDepths;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBitDepthsEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG) DTWAIN_EnumBitDepthsEx2;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumBottomCameras;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumBottomCamerasEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumBrightnessValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumBrightnessValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumCameras;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumCamerasEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG) DTWAIN_EnumCamerasEx2;
    extern(Windows) DTWAIN_ARRAY function(LONG) DTWAIN_EnumCapLabels;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumCompressionTypes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumCompressionTypesEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_EnumCompressionTypesEx2;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumContrastValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumContrastValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumCustomCaps;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumCustomCapsEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumDoubleFeedDetectLengths;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumDoubleFeedDetectLengthsEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumDoubleFeedDetectValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumDoubleFeedDetectValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumExtImageInfoTypes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumExtImageInfoTypesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumExtendedCaps;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumExtendedCapsEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumExtendedCapsEx2;
    extern(Windows) DTWAIN_BOOL function(LONG, LPDTWAIN_ARRAY) DTWAIN_EnumFileTypeBitsPerPixel;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumFileXferFormats;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumFileXferFormatsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumHalftones;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumHalftonesEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumHighlightValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumHighlightValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumJobControls;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumJobControlsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumLightPaths;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumLightPathsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumLightSources;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumLightSourcesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumMaxBuffers;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumMaxBuffersEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumNoiseFilters;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumNoiseFiltersEx;
    extern(Windows) DTWAIN_BOOL function(LPDTWAIN_ARRAY) DTWAIN_EnumOCRInterfaces;
    extern(Windows) DTWAIN_ARRAY function() DTWAIN_EnumOCRInterfacesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE, LPDTWAIN_ARRAY) DTWAIN_EnumOCRSupportedCaps;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumOrientations;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumOrientationsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumOverscanValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumOverscanValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPaperSizes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPaperSizesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPatchcodeCodes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPatchcodeCodesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPatchcodeMaxPriorities;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPatchcodeMaxPrioritiesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPatchcodeMaxRetries;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPatchcodeMaxRetriesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPatchcodePriorities;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPatchcodePrioritiesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPatchcodeSearchModes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPatchcodeSearchModesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPatchcodeTimeOutValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPatchcodeTimeOutValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPixelTypes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPixelTypesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumPrinterStringModes;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumPrinterStringModesEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumResolutionValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumResolutionValuesEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumShadowValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumShadowValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumSourceUnits;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumSourceUnitsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumSourceValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumSourceValuesA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumSourceValuesW;
    extern(Windows) DTWAIN_BOOL function(LPDTWAIN_ARRAY) DTWAIN_EnumSources;
    extern(Windows) DTWAIN_ARRAY function() DTWAIN_EnumSourcesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumSupportedCaps;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumSupportedCapsEx;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumSupportedCapsEx2;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumSupportedExtImageInfo;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumSupportedExtImageInfoEx;
    extern(Windows) DTWAIN_ARRAY function() DTWAIN_EnumSupportedFileTypes;
    extern(Windows) DTWAIN_ARRAY function() DTWAIN_EnumSupportedMultiPageFileTypes;
    extern(Windows) DTWAIN_ARRAY function() DTWAIN_EnumSupportedSinglePageFileTypes;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumThresholdValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumThresholdValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumTopCameras;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumTopCamerasEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_EnumTwainPrinters;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_EnumTwainPrintersEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumXResolutionValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumXResolutionValuesEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL) DTWAIN_EnumYResolutionValues;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_EnumYResolutionValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE, DTWAIN_CCHARPTRTYPE, LONG, LONG) DTWAIN_ExecuteOCR;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE, LPCSTR, LONG, LONG) DTWAIN_ExecuteOCRA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE, LPCWSTR, LONG, LONG) DTWAIN_ExecuteOCRW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_FeedPage;
    extern(Windows) DTWAIN_BOOL function(HANDLE) DTWAIN_FlipBitmap;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_FlushAcquiredPages;
    extern(Windows) DTWAIN_FRAME function(DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_FrameCreate;
    extern(Windows) DTWAIN_FRAME function(DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_FrameCreateString;
    extern(Windows) DTWAIN_FRAME function(LPCSTR, LPCSTR, LPCSTR, LPCSTR) DTWAIN_FrameCreateStringA;
    extern(Windows) DTWAIN_FRAME function(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR) DTWAIN_FrameCreateStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME) DTWAIN_FrameDestroy;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT) DTWAIN_FrameGetAll;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE) DTWAIN_FrameGetAllString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LPSTR, LPSTR, LPSTR, LPSTR) DTWAIN_FrameGetAllStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LPWSTR, LPWSTR, LPWSTR, LPWSTR) DTWAIN_FrameGetAllStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, LPDTWAIN_FLOAT) DTWAIN_FrameGetValue;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, DTWAIN_CHARPTRTYPE) DTWAIN_FrameGetValueString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, LPSTR) DTWAIN_FrameGetValueStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, LPWSTR) DTWAIN_FrameGetValueStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME) DTWAIN_FrameIsValid;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_FrameSetAll;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_FrameSetAllString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LPCSTR, LPCSTR, LPCSTR, LPCSTR) DTWAIN_FrameSetAllStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR) DTWAIN_FrameSetAllStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, DTWAIN_FLOAT) DTWAIN_FrameSetValue;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, DTWAIN_CCHARPTRTYPE) DTWAIN_FrameSetValueString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, LPCSTR) DTWAIN_FrameSetValueStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_FRAME, LONG, LPCWSTR) DTWAIN_FrameSetValueStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_FreeExtImageInfo;
    extern(Windows) DTWAIN_BOOL function(HANDLE) DTWAIN_FreeMemory;
    extern(Windows) DTWAIN_BOOL function(HANDLE) DTWAIN_FreeMemoryEx;
    extern(Windows) LONG function(DTWAIN_HANDLE) DTWAIN_GetAPIHandleStatus;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPDTWAIN_ARRAY) DTWAIN_GetAcquireArea;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPLONG) DTWAIN_GetAcquireArea2;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, LPLONG) DTWAIN_GetAcquireArea2String;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR, LPSTR, LPSTR, LPSTR, LPLONG) DTWAIN_GetAcquireArea2StringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR, LPWSTR, LPWSTR, LPWSTR, LPLONG) DTWAIN_GetAcquireArea2StringW;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG) DTWAIN_GetAcquireAreaEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPLONG) DTWAIN_GetAcquireMetrics;
    extern(Windows) HANDLE function(DTWAIN_SOURCE) DTWAIN_GetAcquireStripBuffer;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD) DTWAIN_GetAcquireStripData;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDWORD, LPDWORD, LPDWORD) DTWAIN_GetAcquireStripSizes;
    extern(Windows) HANDLE function(DTWAIN_ARRAY, LONG, LONG) DTWAIN_GetAcquiredImage;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_ARRAY, LONG) DTWAIN_GetAcquiredImageArray;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_GetAcquisitionArray;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetActiveDSMPath;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetActiveDSMPathA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetActiveDSMPathW;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetActiveDSMVersionInfo;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetActiveDSMVersionInfoA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetActiveDSMVersionInfoW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetAlarmVolume;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_GetAllSourceDibs;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE) DTWAIN_GetAppInfo;
    extern(Windows) DTWAIN_BOOL function(LPSTR, LPSTR, LPSTR, LPSTR) DTWAIN_GetAppInfoA;
    extern(Windows) DTWAIN_BOOL function(LPWSTR, LPWSTR, LPWSTR, LPWSTR) DTWAIN_GetAppInfoW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetAuthor;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetAuthorA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetAuthorW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetBarcodeMaxPriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetBarcodeMaxRetries;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_GetBarcodePriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetBarcodeSearchMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetBarcodeTimeOut;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetBatteryMinutes;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetBatteryPercent;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetBitDepth;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_GetBitDepthEx;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetBlankPageAutoDetection;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetBrightness;
    extern(Windows) DTWAIN_FLOAT function(DTWAIN_SOURCE) DTWAIN_GetBrightnessEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetBrightnessString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetBrightnessStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetBrightnessStringW;
    extern(Windows) HANDLE function(DTWAIN_SOURCE, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD) DTWAIN_GetBufferedTransferInfo;
    extern(Windows) LONG function(DTWAIN_SOURCE, LONG) DTWAIN_GetCapArrayType;
    extern(Windows) LONG function(DTWAIN_SOURCE, LONG, LONG) DTWAIN_GetCapContainer;
    extern(Windows) LONG function(LONG, DTWAIN_BOOL, LPDTWAIN_ARRAY) DTWAIN_GetCapContainerEx;
    extern(Windows) DTWAIN_ARRAY function(LONG, DTWAIN_BOOL) DTWAIN_GetCapContainerEx2;
    extern(Windows) LONG function(DTWAIN_SOURCE, LONG) DTWAIN_GetCapDataType;
    extern(Windows) LONG function(DTWAIN_CCHARPTRTYPE) DTWAIN_GetCapFromName;
    extern(Windows) LONG function(LPCSTR) DTWAIN_GetCapFromNameA;
    extern(Windows) LONG function(LPCWSTR) DTWAIN_GetCapFromNameW;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetCapHelp;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetCapHelpA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetCapHelpW;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetCapLabel;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetCapLabelA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetCapLabelW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPLONG) DTWAIN_GetCapOperations;
    extern(Windows) LONG function(DTWAIN_SOURCE, LONG) DTWAIN_GetCapOperationsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, LPDTWAIN_ARRAY) DTWAIN_GetCapValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, LONG, LPDTWAIN_ARRAY) DTWAIN_GetCapValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, LONG, LONG, LPDTWAIN_ARRAY) DTWAIN_GetCapValuesEx2;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetCaption;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetCaptionA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetCaptionW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetCompressionSize;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetCompressionType;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_GetCompressionTypeEx;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetConditionCodeString;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetConditionCodeStringA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetConditionCodeStringW;
    extern(Windows) LONG function(DTWAIN_CCHARPTRTYPE) DTWAIN_GetConstantFromTwainName;
    extern(Windows) LONG function(LPCSTR) DTWAIN_GetConstantFromTwainNameA;
    extern(Windows) LONG function(LPCWSTR) DTWAIN_GetConstantFromTwainNameW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetContrast;
    extern(Windows) DTWAIN_FLOAT function(DTWAIN_SOURCE) DTWAIN_GetContrastEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetContrastString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetContrastStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetContrastStringW;
    extern(Windows) LONG function() DTWAIN_GetCountry;
    extern(Windows) HANDLE function(DTWAIN_SOURCE) DTWAIN_GetCurrentAcquiredImage;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetCurrentFileName;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetCurrentFileNameA;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetCurrentFileNameW;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetCurrentPageNum;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetCurrentRetryCount;
    extern(Windows) DTWAIN_BOOL function(TW_IDENTITY*, TW_IDENTITY*, LPLONG, LPLONG, LPLONG, LPLONG64) DTWAIN_GetCurrentTwainTriplet;
    extern(Windows) HANDLE function(DTWAIN_SOURCE, LPBYTE, DWORD, LPDWORD, LONG) DTWAIN_GetCustomDSData;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG, LPLONG) DTWAIN_GetDSMFullName;
    extern(Windows) LONG function(LONG, LPSTR, LONG, LPLONG) DTWAIN_GetDSMFullNameA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG, LPLONG) DTWAIN_GetDSMFullNameW;
    extern(Windows) LONG function() DTWAIN_GetDSMSearchOrder;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE) DTWAIN_GetDSMSearchOrderEx;
    extern(Windows) LONG function(LPSTR, LPSTR) DTWAIN_GetDSMSearchOrderExA;
    extern(Windows) LONG function(LPWSTR, LPWSTR) DTWAIN_GetDSMSearchOrderExW;
    extern(Windows) DTWAIN_HANDLE function() DTWAIN_GetDTWAINHandle;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetDeviceEvent;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPDTWAIN_ARRAY) DTWAIN_GetDeviceEventEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPVOID) DTWAIN_GetDeviceEventInfo;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetDeviceNotifications;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetDeviceTimeDate;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetDeviceTimeDateA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetDeviceTimeDateW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT, DTWAIN_BOOL) DTWAIN_GetDoubleFeedDetectLength;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_GetDoubleFeedDetectValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetDuplexType;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetDuplexTypeEx;
    extern(Windows) DTWAIN_BOOL function(LPDTWAIN_ARRAY) DTWAIN_GetErrorBuffer;
    extern(Windows) LONG function() DTWAIN_GetErrorBufferThreshold;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetErrorString;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetErrorStringA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetErrorStringW;
    extern(Windows) LONG function(DTWAIN_CCHARPTRTYPE) DTWAIN_GetExtCapFromName;
    extern(Windows) LONG function(LPCSTR) DTWAIN_GetExtCapFromNameA;
    extern(Windows) LONG function(LPCWSTR) DTWAIN_GetExtCapFromNameW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_GetExtImageInfo;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPDTWAIN_ARRAY) DTWAIN_GetExtImageInfoData;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG) DTWAIN_GetExtImageInfoDataEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPLONG, LPLONG, LPLONG) DTWAIN_GetExtImageInfoItem;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPLONG, LPLONG, LPLONG, LPLONG) DTWAIN_GetExtImageInfoItemEx;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetExtNameFromCap;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetExtNameFromCapA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetExtNameFromCapW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetFeederAlignment;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetFeederFuncs;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetFeederOrder;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetFeederWaitTime;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetFileCompressionType;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetFileSavePageCount;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetFileTypeExtensions;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetFileTypeExtensionsA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetFileTypeExtensionsW;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetFileTypeName;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetFileTypeNameA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetFileTypeNameW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetHalftone;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetHalftoneA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetHalftoneW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetHighlight;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetHighlightString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetHighlightStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetHighlightStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG) DTWAIN_GetImageInfo;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG) DTWAIN_GetImageInfoString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR, LPSTR, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG) DTWAIN_GetImageInfoStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR, LPWSTR, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG) DTWAIN_GetImageInfoStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetJobControl;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_GetJobControlEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPLONG) DTWAIN_GetJpegValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPLONG) DTWAIN_GetJpegXRValues;
    extern(Windows) LONG function() DTWAIN_GetLanguage;
    extern(Windows) LONG function() DTWAIN_GetLastError;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetLibraryPath;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetLibraryPathA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetLibraryPathW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetLightPath;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_GetLightPathEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetLightSource;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_GetLightSources;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_GetLightSourcesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPLONG) DTWAIN_GetManualDuplexCount;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetMaxAcquisitions;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetMaxBuffers;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetMaxPagesToAcquire;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetMaxRetryAttempts;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetNameFromCap;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetNameFromCapA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetNameFromCapW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetNoiseFilter;
    extern(Windows) LONG function(DTWAIN_ARRAY, LONG) DTWAIN_GetNumAcquiredImages;
    extern(Windows) LONG function(DTWAIN_ARRAY) DTWAIN_GetNumAcquisitions;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE, LONG, LONG, LPDTWAIN_ARRAY) DTWAIN_GetOCRCapValues;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetOCRErrorString;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LONG, LPSTR, LONG) DTWAIN_GetOCRErrorStringA;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LONG, LPWSTR, LONG) DTWAIN_GetOCRErrorStringW;
    extern(Windows) LONG function(DTWAIN_OCRENGINE) DTWAIN_GetOCRLastError;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE, LPLONG, LPLONG) DTWAIN_GetOCRMajorMinorVersion;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetOCRManufacturer;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPSTR, LONG) DTWAIN_GetOCRManufacturerA;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPWSTR, LONG) DTWAIN_GetOCRManufacturerW;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetOCRProductFamily;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPSTR, LONG) DTWAIN_GetOCRProductFamilyA;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPWSTR, LONG) DTWAIN_GetOCRProductFamilyW;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetOCRProductName;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPSTR, LONG) DTWAIN_GetOCRProductNameA;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPWSTR, LONG) DTWAIN_GetOCRProductNameW;
    extern(Windows) HANDLE function(DTWAIN_OCRENGINE, LONG, DTWAIN_CHARPTRTYPE, LONG, LPLONG, LONG) DTWAIN_GetOCRText;
    extern(Windows) HANDLE function(DTWAIN_OCRENGINE, LONG, LPSTR, LONG, LPLONG, LONG) DTWAIN_GetOCRTextA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRTEXTINFOHANDLE, LONG, LONG, LPDTWAIN_FLOAT) DTWAIN_GetOCRTextInfoFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRTEXTINFOHANDLE, LONG, LPDTWAIN_FLOAT, LONG) DTWAIN_GetOCRTextInfoFloatEx;
    extern(Windows) DTWAIN_OCRTEXTINFOHANDLE function(DTWAIN_OCRENGINE, LONG) DTWAIN_GetOCRTextInfoHandle;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRTEXTINFOHANDLE, LONG, LONG, LPLONG) DTWAIN_GetOCRTextInfoLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRTEXTINFOHANDLE, LONG, LPLONG, LONG) DTWAIN_GetOCRTextInfoLongEx;
    extern(Windows) HANDLE function(DTWAIN_OCRENGINE, LONG, LPWSTR, LONG, LPLONG, LONG) DTWAIN_GetOCRTextW;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetOCRVersionInfo;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPSTR, LONG) DTWAIN_GetOCRVersionInfoA;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LPWSTR, LONG) DTWAIN_GetOCRVersionInfoW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetOrientation;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_GetOrientationEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetOverscan;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LONG) DTWAIN_GetPDFTextElementFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, LPLONG, LPLONG, LONG) DTWAIN_GetPDFTextElementLong;
    extern(Windows) LONG function(DTWAIN_PDFTEXTELEMENT, DTWAIN_CHARPTRTYPE, LONG, LONG) DTWAIN_GetPDFTextElementString;
    extern(Windows) LONG function(DTWAIN_PDFTEXTELEMENT, LPSTR, LONG, LONG) DTWAIN_GetPDFTextElementStringA;
    extern(Windows) LONG function(DTWAIN_PDFTEXTELEMENT, LPWSTR, LONG, LONG) DTWAIN_GetPDFTextElementStringW;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetPDFType1FontName;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetPDFType1FontNameA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetPDFType1FontNameW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetPaperSize;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetPaperSizeName;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetPaperSizeNameA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetPaperSizeNameW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetPatchcodeMaxPriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetPatchcodeMaxRetries;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_GetPatchcodePriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetPatchcodeSearchMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetPatchcodeTimeOut;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetPixelFlavor;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPLONG, DTWAIN_BOOL) DTWAIN_GetPixelType;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetPrinter;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_GetPrinterEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetPrinterStartNumber;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetPrinterStartNumberEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL) DTWAIN_GetPrinterStringMode;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_GetPrinterStringModeEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_ARRAY) DTWAIN_GetPrinterStrings;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_GetPrinterStringsEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetPrinterSuffixString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetPrinterSuffixStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetPrinterSuffixStringW;
    extern(Windows) LONG function() DTWAIN_GetRegisteredMsg;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetResolution;
    extern(Windows) DTWAIN_FLOAT function(DTWAIN_SOURCE) DTWAIN_GetResolutionEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetResolutionString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetResolutionStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetResolutionStringW;
    extern(Windows) LONG function(LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetResourceString;
    extern(Windows) LONG function(LONG, LPSTR, LONG) DTWAIN_GetResourceStringA;
    extern(Windows) LONG function(LONG, LPWSTR, LONG) DTWAIN_GetResourceStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetRotation;
    extern(Windows) DTWAIN_FLOAT function(DTWAIN_SOURCE) DTWAIN_GetRotationEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetRotationString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetRotationStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetRotationStringW;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetSaveFileName;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetSaveFileNameA;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetSaveFileNameW;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG, LONG, BOOL) DTWAIN_GetSessionDetails;
    extern(Windows) LONG function(LPSTR, LONG, LONG, BOOL) DTWAIN_GetSessionDetailsA;
    extern(Windows) LONG function(LPWSTR, LONG, LONG, BOOL) DTWAIN_GetSessionDetailsW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetShadow;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetShadowString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetShadowStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetShadowStringW;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetShortVersionString;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetShortVersionStringA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetShortVersionStringW;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE) DTWAIN_GetSourceAcquisitions;
    extern(Windows) LONG function(DTWAIN_CCHARPTRTYPE, DTWAIN_CHARPTRTYPE, LONG, LONG, BOOL) DTWAIN_GetSourceDetails;
    extern(Windows) LONG function(LPCSTR, LPSTR, LONG, LONG, BOOL) DTWAIN_GetSourceDetailsA;
    extern(Windows) LONG function(LPCWSTR, LPWSTR, LONG, LONG, BOOL) DTWAIN_GetSourceDetailsW;
    extern(Windows) DTWAIN_IDENTITY function(DTWAIN_SOURCE) DTWAIN_GetSourceID;
    extern(Windows) TWAIN_IDENTITY function(DTWAIN_SOURCE, TW_IDENTITY*) DTWAIN_GetSourceIDEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetSourceManufacturer;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetSourceManufacturerA;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetSourceManufacturerW;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetSourceProductFamily;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetSourceProductFamilyA;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetSourceProductFamilyW;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetSourceProductName;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetSourceProductNameA;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetSourceProductNameW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG) DTWAIN_GetSourceUnit;
    extern(Windows) LONG function(DTWAIN_SOURCE) DTWAIN_GetSourceUnitEx;
    extern(Windows) LONG function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetSourceVersionInfo;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPSTR, LONG) DTWAIN_GetSourceVersionInfoA;
    extern(Windows) LONG function(DTWAIN_SOURCE, LPWSTR, LONG) DTWAIN_GetSourceVersionInfoW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPLONG, LPLONG) DTWAIN_GetSourceVersionNumber;
    extern(Windows) LONG function() DTWAIN_GetStaticLibVersion;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetTempFileDirectory;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetTempFileDirectoryA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetTempFileDirectoryW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetThreshold;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetThresholdString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetThresholdStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetThresholdStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetTimeDate;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetTimeDateA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetTimeDateW;
    extern(Windows) DTWAIN_IDENTITY function() DTWAIN_GetTwainAppID;
    extern(Windows) TWAIN_IDENTITY function(TW_IDENTITY*) DTWAIN_GetTwainAppIDEx;
    extern(Windows) LONG function() DTWAIN_GetTwainAvailability;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetTwainAvailabilityEx;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetTwainAvailabilityExA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetTwainAvailabilityExW;
    extern(Windows) HWND function() DTWAIN_GetTwainHwnd;
    extern(Windows) LONG function() DTWAIN_GetTwainMode;
    extern(Windows) LONG function(LONG, LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetTwainNameFromConstant;
    extern(Windows) LONG function(LONG, LONG, LPSTR, LONG) DTWAIN_GetTwainNameFromConstantA;
    extern(Windows) LONG function(LONG, LONG, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetTwainNameFromConstantEx;
    extern(Windows) LONG function(LONG, LONG, LPSTR, LONG) DTWAIN_GetTwainNameFromConstantExA;
    extern(Windows) LONG function(LONG, LONG, LPWSTR, LONG) DTWAIN_GetTwainNameFromConstantExW;
    extern(Windows) LONG function(LONG, LONG, LPWSTR, LONG) DTWAIN_GetTwainNameFromConstantW;
    extern(Windows) LONG function() DTWAIN_GetTwainTimeout;
    extern(Windows) DTWAIN_BOOL function(LPLONG, LPLONG, LPLONG) DTWAIN_GetVersion;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetVersionCopyright;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetVersionCopyrightA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetVersionCopyrightW;
    extern(Windows) DTWAIN_BOOL function(LPLONG, LPLONG, LPLONG, LPLONG) DTWAIN_GetVersionEx;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetVersionInfo;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetVersionInfoA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetVersionInfoW;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetVersionString;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetVersionStringA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetVersionStringW;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_GetWindowsVersionInfo;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_GetWindowsVersionInfoA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_GetWindowsVersionInfoW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetXResolution;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetXResolutionString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetXResolutionStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetXResolutionStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPDTWAIN_FLOAT) DTWAIN_GetYResolution;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CHARPTRTYPE) DTWAIN_GetYResolutionString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPSTR) DTWAIN_GetYResolutionStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPWSTR) DTWAIN_GetYResolutionStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_InitExtImageInfo;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_InitImageFileAppend;
    extern(Windows) DTWAIN_BOOL function(LPCSTR, LONG) DTWAIN_InitImageFileAppendA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR, LONG) DTWAIN_InitImageFileAppendW;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_InitOCRInterface;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsAcquiring;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsAudioXferSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoBorderDetectEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoBorderDetectSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoBrightEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoBrightSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoDeskewEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoDeskewSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoFeedEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoFeedSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoRotateEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoRotateSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutoScanEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutomaticSenseMediumEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsAutomaticSenseMediumSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsBarcodeCapsSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsBarcodeDetectionEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsBarcodeSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsBlankPageDetectionOn;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsBufferedTileModeOn;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsBufferedTileModeSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsCapSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsCompressionSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsCustomDSDataSupported;
    extern(Windows) LONG function(HANDLE, DTWAIN_FLOAT) DTWAIN_IsDIBBlank;
    extern(Windows) LONG function(HANDLE, DTWAIN_CCHARPTRTYPE) DTWAIN_IsDIBBlankString;
    extern(Windows) LONG function(HANDLE, LPCSTR) DTWAIN_IsDIBBlankStringA;
    extern(Windows) LONG function(HANDLE, LPCWSTR) DTWAIN_IsDIBBlankStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsDeviceEventSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsDeviceOnLine;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_IsDoubleFeedDetectLengthSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsDoubleFeedDetectSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsDoublePageCountOnDuplex;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsDuplexEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsDuplexSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsExtImageInfoSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsFeederEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsFeederLoaded;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsFeederSensitive;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsFeederSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsFileSystemSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsFileXferSupported;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsGetMessageLoopDetectionOn;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsGetMessageLoopEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldALastPageSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldALevelSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldAPrintFormatSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldAValueSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldBLastPageSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldBLevelSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldBPrintFormatSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldBValueSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldCLastPageSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldCLevelSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldCPrintFormatSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldCValueSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldDLastPageSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldDLevelSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldDPrintFormatSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldDValueSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldELastPageSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldELevelSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldEPrintFormatSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIAFieldEValueSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsImageAddressingSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIndicatorEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsIndicatorSupported;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsInitialized;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsJobControlSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsLampEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsLampSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsLightPathSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsLightSourceSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsMaxBuffersSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsMemFileXferSupported;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsMsgNotifyEnabled;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsNotifyTripletsEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE) DTWAIN_IsOCREngineActivated;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsOpenSourcesOnSelect;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsOrientationSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsOverscanSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsPaperDetectable;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsPaperSizeSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsPatchcodeCapsSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsPatchcodeDetectionEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsPatchcodeSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsPeekMessageLoopEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsPixelTypeSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_IsPrinterEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsPrinterSupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsRotationSupported;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsSessionEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsSkipImageInfoError;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsSourceAcquiring;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, BOOL) DTWAIN_IsSourceAcquiringEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsSourceInUIOnlyMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsSourceOpen;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsSourceSelected;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsSourceValid;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsThumbnailEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsThumbnailSupported;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_IsTwainAvailable;
    extern(Windows) LONG function(DTWAIN_CHARPTRTYPE, LONG) DTWAIN_IsTwainAvailableEx;
    extern(Windows) LONG function(LPSTR, LONG) DTWAIN_IsTwainAvailableExA;
    extern(Windows) LONG function(LPWSTR, LONG) DTWAIN_IsTwainAvailableExW;
    extern(Windows) DTWAIN_BOOL function(MSG*) DTWAIN_IsTwainMsg;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsUIControllable;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsUIEnabled;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_IsUIOnlySupported;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE) DTWAIN_LoadCustomStringResources;
    extern(Windows) DTWAIN_BOOL function(LPCSTR) DTWAIN_LoadCustomStringResourcesA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE, DTWAIN_BOOL) DTWAIN_LoadCustomStringResourcesEx;
    extern(Windows) DTWAIN_BOOL function(LPCSTR, DTWAIN_BOOL) DTWAIN_LoadCustomStringResourcesExA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR, DTWAIN_BOOL) DTWAIN_LoadCustomStringResourcesExW;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR) DTWAIN_LoadCustomStringResourcesW;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_LoadLanguageResource;
    extern(Windows) DTWAIN_MEMORY_PTR function(HANDLE) DTWAIN_LockMemory;
    extern(Windows) DTWAIN_MEMORY_PTR function(HANDLE) DTWAIN_LockMemoryEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE) DTWAIN_LogMessage;
    extern(Windows) DTWAIN_BOOL function(LPCSTR) DTWAIN_LogMessageA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR) DTWAIN_LogMessageW;
    extern(Windows) LONG function(LONG, LONG, LONG) DTWAIN_MakeRGB;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_OpenSource;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_OpenSourcesOnSelect;
    extern(Windows) DTWAIN_RANGE function(LONG) DTWAIN_RangeCreate;
    extern(Windows) DTWAIN_RANGE function(DTWAIN_SOURCE, LONG) DTWAIN_RangeCreateFromCap;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE) DTWAIN_RangeDestroy;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPDTWAIN_ARRAY) DTWAIN_RangeExpand;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_RANGE) DTWAIN_RangeExpandEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPVOID, LPVOID, LPVOID, LPVOID, LPVOID) DTWAIN_RangeGetAll;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT) DTWAIN_RangeGetAllFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE, DTWAIN_CHARPTRTYPE) DTWAIN_RangeGetAllFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPSTR, LPSTR, LPSTR, LPSTR, LPSTR) DTWAIN_RangeGetAllFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPWSTR, LPWSTR, LPWSTR, LPWSTR, LPWSTR) DTWAIN_RangeGetAllFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPLONG, LPLONG, LPLONG, LPLONG, LPLONG) DTWAIN_RangeGetAllLong;
    extern(Windows) LONG function(DTWAIN_RANGE) DTWAIN_RangeGetCount;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPVOID) DTWAIN_RangeGetExpValue;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPDTWAIN_FLOAT) DTWAIN_RangeGetExpValueFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, DTWAIN_CHARPTRTYPE) DTWAIN_RangeGetExpValueFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPSTR) DTWAIN_RangeGetExpValueFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPWSTR) DTWAIN_RangeGetExpValueFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPLONG) DTWAIN_RangeGetExpValueLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPVOID, LPVOID, LONG) DTWAIN_RangeGetNearestValue;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, DTWAIN_FLOAT, LPDTWAIN_FLOAT, LONG) DTWAIN_RangeGetNearestValueFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, DTWAIN_CCHARPTRTYPE, DTWAIN_CHARPTRTYPE, LONG) DTWAIN_RangeGetNearestValueFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPCSTR, LPSTR, LONG) DTWAIN_RangeGetNearestValueFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPCWSTR, LPWSTR, LONG) DTWAIN_RangeGetNearestValueFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPLONG, LONG) DTWAIN_RangeGetNearestValueLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPVOID, LPLONG) DTWAIN_RangeGetPos;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, DTWAIN_FLOAT, LPLONG) DTWAIN_RangeGetPosFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, DTWAIN_CCHARPTRTYPE, LPLONG) DTWAIN_RangeGetPosFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPCSTR, LPLONG) DTWAIN_RangeGetPosFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPCWSTR, LPLONG) DTWAIN_RangeGetPosFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPLONG) DTWAIN_RangeGetPosLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPVOID) DTWAIN_RangeGetValue;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPDTWAIN_FLOAT) DTWAIN_RangeGetValueFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, DTWAIN_CHARPTRTYPE) DTWAIN_RangeGetValueFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPSTR) DTWAIN_RangeGetValueFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPWSTR) DTWAIN_RangeGetValueFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPLONG) DTWAIN_RangeGetValueLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPLONG) DTWAIN_RangeIsValid;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPVOID, LPVOID, LPVOID, LPVOID, LPVOID) DTWAIN_RangeSetAll;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_RangeSetAllFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_RangeSetAllFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPCSTR, LPCSTR, LPCSTR, LPCSTR, LPCSTR) DTWAIN_RangeSetAllFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR) DTWAIN_RangeSetAllFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LONG, LONG, LONG, LONG) DTWAIN_RangeSetAllLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPVOID) DTWAIN_RangeSetValue;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, DTWAIN_FLOAT) DTWAIN_RangeSetValueFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, DTWAIN_CCHARPTRTYPE) DTWAIN_RangeSetValueFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPCSTR) DTWAIN_RangeSetValueFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LPCWSTR) DTWAIN_RangeSetValueFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_RANGE, LONG, LONG) DTWAIN_RangeSetValueLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_PDFTEXTELEMENT) DTWAIN_RemovePDFTextElement;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT) DTWAIN_ResetPDFTextElement;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_RewindPage;
    extern(Windows) HANDLE function(HANDLE, DTWAIN_FLOAT) DTWAIN_RotateImage;
    extern(Windows) HANDLE function(HANDLE, DTWAIN_CCHARPTRTYPE) DTWAIN_RotateImageString;
    extern(Windows) HANDLE function(HANDLE, LPCSTR) DTWAIN_RotateImageStringA;
    extern(Windows) HANDLE function(HANDLE, LPCWSTR) DTWAIN_RotateImageStringW;
    extern(Windows) DTWAIN_OCRENGINE function() DTWAIN_SelectDefaultOCREngine;
    extern(Windows) DTWAIN_SOURCE function() DTWAIN_SelectDefaultSource;
    extern(Windows) DTWAIN_SOURCE function(DTWAIN_BOOL) DTWAIN_SelectDefaultSourceWithOpen;
    extern(Windows) DTWAIN_OCRENGINE function() DTWAIN_SelectOCREngine;
    extern(Windows) DTWAIN_OCRENGINE function(HWND, DTWAIN_CCHARPTRTYPE, LONG, LONG, LONG) DTWAIN_SelectOCREngine2;
    extern(Windows) DTWAIN_OCRENGINE function(HWND, LPCSTR, LONG, LONG, LONG) DTWAIN_SelectOCREngine2A;
    extern(Windows) DTWAIN_OCRENGINE function(HWND, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_SelectOCREngine2Ex;
    extern(Windows) DTWAIN_OCRENGINE function(HWND, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LPCSTR, LONG) DTWAIN_SelectOCREngine2ExA;
    extern(Windows) DTWAIN_OCRENGINE function(HWND, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LONG) DTWAIN_SelectOCREngine2ExW;
    extern(Windows) DTWAIN_OCRENGINE function(HWND, LPCWSTR, LONG, LONG, LONG) DTWAIN_SelectOCREngine2W;
    extern(Windows) DTWAIN_OCRENGINE function(DTWAIN_CCHARPTRTYPE) DTWAIN_SelectOCREngineByName;
    extern(Windows) DTWAIN_OCRENGINE function(LPCSTR) DTWAIN_SelectOCREngineByNameA;
    extern(Windows) DTWAIN_OCRENGINE function(LPCWSTR) DTWAIN_SelectOCREngineByNameW;
    extern(Windows) DTWAIN_SOURCE function() DTWAIN_SelectSource;
    extern(Windows) DTWAIN_SOURCE function(HWND, DTWAIN_CCHARPTRTYPE, LONG, LONG, LONG) DTWAIN_SelectSource2;
    extern(Windows) DTWAIN_SOURCE function(HWND, LPCSTR, LONG, LONG, LONG) DTWAIN_SelectSource2A;
    extern(Windows) DTWAIN_SOURCE function(HWND, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_SelectSource2Ex;
    extern(Windows) DTWAIN_SOURCE function(HWND, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LPCSTR, LONG) DTWAIN_SelectSource2ExA;
    extern(Windows) DTWAIN_SOURCE function(HWND, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LONG) DTWAIN_SelectSource2ExW;
    extern(Windows) DTWAIN_SOURCE function(HWND, LPCWSTR, LONG, LONG, LONG) DTWAIN_SelectSource2W;
    extern(Windows) DTWAIN_SOURCE function(DTWAIN_CCHARPTRTYPE) DTWAIN_SelectSourceByName;
    extern(Windows) DTWAIN_SOURCE function(LPCSTR) DTWAIN_SelectSourceByNameA;
    extern(Windows) DTWAIN_SOURCE function(LPCWSTR) DTWAIN_SelectSourceByNameW;
    extern(Windows) DTWAIN_SOURCE function(DTWAIN_CCHARPTRTYPE, DTWAIN_BOOL) DTWAIN_SelectSourceByNameWithOpen;
    extern(Windows) DTWAIN_SOURCE function(LPCSTR, DTWAIN_BOOL) DTWAIN_SelectSourceByNameWithOpenA;
    extern(Windows) DTWAIN_SOURCE function(LPCWSTR, DTWAIN_BOOL) DTWAIN_SelectSourceByNameWithOpenW;
    extern(Windows) DTWAIN_SOURCE function(DTWAIN_BOOL) DTWAIN_SelectSourceWithOpen;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_ARRAY, DTWAIN_ARRAY) DTWAIN_SetAcquireArea;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG, LONG) DTWAIN_SetAcquireArea2;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, LONG, LONG) DTWAIN_SetAcquireArea2String;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LPCSTR, LPCSTR, LPCSTR, LONG, LONG) DTWAIN_SetAcquireArea2StringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, LONG, LONG) DTWAIN_SetAcquireArea2StringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_SetAcquireImageNegative;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_SetAcquireImageScale;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetAcquireImageScaleString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LPCSTR) DTWAIN_SetAcquireImageScaleStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LPCWSTR) DTWAIN_SetAcquireImageScaleStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, HANDLE) DTWAIN_SetAcquireStripBuffer;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DWORD) DTWAIN_SetAcquireStripSize;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetAlarmVolume;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY) DTWAIN_SetAlarms;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_SetAllCapsToDefault;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetAppInfo;
    extern(Windows) DTWAIN_BOOL function(LPCSTR, LPCSTR, LPCSTR, LPCSTR) DTWAIN_SetAppInfoA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR) DTWAIN_SetAppInfoW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetAuthor;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetAuthorA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetAuthorW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetAvailablePrinters;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY) DTWAIN_SetAvailablePrintersArray;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetBarcodeMaxPriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetBarcodeMaxRetries;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY) DTWAIN_SetBarcodePriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetBarcodeSearchMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetBarcodeTimeOut;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetBitDepth;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetection;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT, LONG, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetectionEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LONG, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetectionExString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LONG, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetectionExStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LONG, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetectionExStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetectionString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetectionStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, LONG, DTWAIN_BOOL) DTWAIN_SetBlankPageDetectionStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetBrightness;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetBrightnessString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetBrightnessStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetBrightnessStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_SetBufferedTileMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetCamera;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetCameraA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetCameraW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, DTWAIN_ARRAY) DTWAIN_SetCapValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, LONG, DTWAIN_ARRAY) DTWAIN_SetCapValuesEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, LONG, LONG, DTWAIN_ARRAY) DTWAIN_SetCapValuesEx2;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetCaption;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetCaptionA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetCaptionW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetCompressionType;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetContrast;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetContrastString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetContrastStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetContrastStringW;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_SetCountry;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetCurrentRetryCount;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, HANDLE, LPCBYTE, DWORD, LONG) DTWAIN_SetCustomDSData;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_SetDSMSearchOrder;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetDSMSearchOrderEx;
    extern(Windows) DTWAIN_BOOL function(LPCSTR, LPCSTR) DTWAIN_SetDSMSearchOrderExA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR, LPCWSTR) DTWAIN_SetDSMSearchOrderExW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_SetDefaultSource;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetDeviceNotifications;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetDeviceTimeDate;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetDeviceTimeDateA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetDeviceTimeDateW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetDoubleFeedDetectLength;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetDoubleFeedDetectLengthString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetDoubleFeedDetectLengthStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetDoubleFeedDetectLengthStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY) DTWAIN_SetDoubleFeedDetectValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_SetDoublePageCountOnDuplex;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetEOJDetectValue;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_SetErrorBufferThreshold;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetFeederAlignment;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetFeederOrder;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG) DTWAIN_SetFeederWaitTime;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL, DTWAIN_BOOL) DTWAIN_SetFileAutoIncrement;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetFileCompressionType;
    extern(Windows) DTWAIN_BOOL function(HWND, DTWAIN_CCHARPTRTYPE, LONG, LONG, LONG) DTWAIN_SetFileSavePos;
    extern(Windows) DTWAIN_BOOL function(HWND, LPCSTR, LONG, LONG, LONG) DTWAIN_SetFileSavePosA;
    extern(Windows) DTWAIN_BOOL function(HWND, LPCWSTR, LONG, LONG, LONG) DTWAIN_SetFileSavePosW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetFileXferFormat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetHalftone;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetHalftoneA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetHalftoneW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetHighlight;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetHighlightString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetHighlightStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetHighlightStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetJobControl;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG) DTWAIN_SetJpegValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG) DTWAIN_SetJpegXRValues;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_SetLanguage;
    extern(Windows) LONG function(LONG) DTWAIN_SetLastError;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetLightPath;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY) DTWAIN_SetLightPathEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetLightSource;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY) DTWAIN_SetLightSources;
    extern(Windows) DTWAIN_BOOL function(LONG64) DTWAIN_SetLogSaveThreshold;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetManualDuplexMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetMaxAcquisitions;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetMaxBuffers;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetMaxRetryAttempts;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetMultipageScanMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetNoiseFilter;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE, LONG, LONG, DTWAIN_ARRAY) DTWAIN_SetOCRCapValues;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetOrientation;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetOverscan;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetPDFAESEncryption;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_SetPDFASCIICompression;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFAuthor;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPDFAuthorA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPDFAuthorW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_SetPDFCompression;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFCreator;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPDFCreatorA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPDFCreatorW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DWORD, DTWAIN_BOOL) DTWAIN_SetPDFEncryption;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL, LPCSTR, LPCSTR, DWORD, DTWAIN_BOOL) DTWAIN_SetPDFEncryptionA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL, LPCWSTR, LPCWSTR, DWORD, DTWAIN_BOOL) DTWAIN_SetPDFEncryptionW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPDFJpegQuality;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFKeywords;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPDFKeywordsA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPDFKeywordsW;
    extern(Windows) LONG function(DTWAIN_OCRENGINE, LONG, LONG, LONG, LONG, LONG) DTWAIN_SetPDFOCRConversion;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_SetPDFOCRMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPDFOrientation;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_SetPDFPageScale;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFPageScaleString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPCSTR, LPCSTR) DTWAIN_SetPDFPageScaleStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPCWSTR, LPCWSTR) DTWAIN_SetPDFPageScaleStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT) DTWAIN_SetPDFPageSize;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFPageSizeString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPCSTR, LPCSTR) DTWAIN_SetPDFPageSizeStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LPCWSTR, LPCWSTR) DTWAIN_SetPDFPageSizeStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPDFPolarity;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFProducer;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPDFProducerA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPDFProducerW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFSubject;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPDFSubjectA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPDFSubjectW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG) DTWAIN_SetPDFTextElementFloat;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_SetPDFTextElementFloatString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, LPCSTR, LPCSTR, LONG) DTWAIN_SetPDFTextElementFloatStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, LPCWSTR, LPCWSTR, LONG) DTWAIN_SetPDFTextElementFloatStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, LONG, LONG, LONG) DTWAIN_SetPDFTextElementLong;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_SetPDFTextElementString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, LPCSTR, LONG) DTWAIN_SetPDFTextElementStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_PDFTEXTELEMENT, LPCWSTR, LONG) DTWAIN_SetPDFTextElementStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPDFTitle;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPDFTitleA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPDFTitleW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetPaperSize;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPatchcodeMaxPriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPatchcodeMaxRetries;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY) DTWAIN_SetPatchcodePriorities;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPatchcodeSearchMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPatchcodeTimeOut;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPixelFlavor;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL) DTWAIN_SetPixelType;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPostScriptTitle;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPostScriptTitleA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPostScriptTitleW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPostScriptType;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetPrinter;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetPrinterEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetPrinterStartNumber;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG, DTWAIN_BOOL) DTWAIN_SetPrinterStringMode;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_ARRAY, LPLONG) DTWAIN_SetPrinterStrings;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetPrinterSuffixString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetPrinterSuffixStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetPrinterSuffixStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_SetQueryCapSupport;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetResolution;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetResolutionString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetResolutionStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetResolutionStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE) DTWAIN_SetResourcePath;
    extern(Windows) DTWAIN_BOOL function(LPCSTR) DTWAIN_SetResourcePathA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR) DTWAIN_SetResourcePathW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetRotation;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetRotationString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetRotationStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetRotationStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetSaveFileName;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetSaveFileNameA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetSaveFileNameW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetShadow;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetShadowString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetShadowStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetShadowStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetSourceUnit;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetTIFFCompressType;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LONG) DTWAIN_SetTIFFInvert;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE) DTWAIN_SetTempFileDirectory;
    extern(Windows) DTWAIN_BOOL function(LPCSTR) DTWAIN_SetTempFileDirectoryA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_CCHARPTRTYPE, LONG) DTWAIN_SetTempFileDirectoryEx;
    extern(Windows) DTWAIN_BOOL function(LPCSTR, LONG) DTWAIN_SetTempFileDirectoryExA;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR, LONG) DTWAIN_SetTempFileDirectoryExW;
    extern(Windows) DTWAIN_BOOL function(LPCWSTR) DTWAIN_SetTempFileDirectoryW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT, DTWAIN_BOOL) DTWAIN_SetThreshold;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE, DTWAIN_BOOL) DTWAIN_SetThresholdString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR, DTWAIN_BOOL) DTWAIN_SetThresholdStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR, DTWAIN_BOOL) DTWAIN_SetThresholdStringW;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_SetTwainDSM;
    extern(Windows) LONG function(HFONT) DTWAIN_SetTwainDialogFont;
    extern(Windows) DTWAIN_BOOL function(DWORD, DTWAIN_CCHARPTRTYPE) DTWAIN_SetTwainLog;
    extern(Windows) DTWAIN_BOOL function(DWORD, LPCSTR) DTWAIN_SetTwainLogA;
    extern(Windows) DTWAIN_BOOL function(DWORD, LPCWSTR) DTWAIN_SetTwainLogW;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_SetTwainMode;
    extern(Windows) DTWAIN_BOOL function(LONG) DTWAIN_SetTwainTimeout;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetXResolution;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetXResolutionString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetXResolutionStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetXResolutionStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_FLOAT) DTWAIN_SetYResolution;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SetYResolutionString;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCSTR) DTWAIN_SetYResolutionStringA;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, LPCWSTR) DTWAIN_SetYResolutionStringW;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE) DTWAIN_ShowUIOnly;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_OCRENGINE) DTWAIN_ShutdownOCREngine;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, DTWAIN_BOOL) DTWAIN_SkipImageInfoError;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_HANDLE) DTWAIN_StartThread;
    extern(Windows) DTWAIN_BOOL function(HWND, DTWAIN_CCHARPTRTYPE) DTWAIN_StartTwainSession;
    extern(Windows) DTWAIN_BOOL function(HWND, LPCSTR) DTWAIN_StartTwainSessionA;
    extern(Windows) DTWAIN_BOOL function(HWND, LPCWSTR) DTWAIN_StartTwainSessionW;
    extern(Windows) DTWAIN_BOOL function() DTWAIN_SysDestroy;
    extern(Windows) DTWAIN_HANDLE function() DTWAIN_SysInitialize;
    extern(Windows) DTWAIN_HANDLE function(DTWAIN_CCHARPTRTYPE) DTWAIN_SysInitializeEx;
    extern(Windows) DTWAIN_HANDLE function(DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_SysInitializeEx2;
    extern(Windows) DTWAIN_HANDLE function(LPCSTR, LPCSTR, LPCSTR) DTWAIN_SysInitializeEx2A;
    extern(Windows) DTWAIN_HANDLE function(LPCWSTR, LPCWSTR, LPCWSTR) DTWAIN_SysInitializeEx2W;
    extern(Windows) DTWAIN_HANDLE function(LPCSTR) DTWAIN_SysInitializeExA;
    extern(Windows) DTWAIN_HANDLE function(LPCWSTR) DTWAIN_SysInitializeExW;
    extern(Windows) DTWAIN_HANDLE function(HINSTANCE) DTWAIN_SysInitializeLib;
    extern(Windows) DTWAIN_HANDLE function(HINSTANCE, DTWAIN_CCHARPTRTYPE) DTWAIN_SysInitializeLibEx;
    extern(Windows) DTWAIN_HANDLE function(HINSTANCE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE, DTWAIN_CCHARPTRTYPE) DTWAIN_SysInitializeLibEx2;
    extern(Windows) DTWAIN_HANDLE function(HINSTANCE, LPCSTR, LPCSTR, LPCSTR) DTWAIN_SysInitializeLibEx2A;
    extern(Windows) DTWAIN_HANDLE function(HINSTANCE, LPCWSTR, LPCWSTR, LPCWSTR) DTWAIN_SysInitializeLibEx2W;
    extern(Windows) DTWAIN_HANDLE function(HINSTANCE, LPCSTR) DTWAIN_SysInitializeLibExA;
    extern(Windows) DTWAIN_HANDLE function(HINSTANCE, LPCWSTR) DTWAIN_SysInitializeLibExW;
    extern(Windows) DTWAIN_HANDLE function() DTWAIN_SysInitializeNoBlocking;
    extern(Windows) DTWAIN_ARRAY function(DTWAIN_SOURCE, LONG) DTWAIN_TestGetCap;
    extern(Windows) DTWAIN_BOOL function(HANDLE) DTWAIN_UnlockMemory;
    extern(Windows) DTWAIN_BOOL function(HANDLE) DTWAIN_UnlockMemoryEx;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_SOURCE, HANDLE) DTWAIN_UpdateCurrentAcquiredImage;
    extern(Windows) DTWAIN_BOOL function(DTWAIN_BOOL) DTWAIN_UseMultipleThreads;

    /************ Constructor ************/
    this(string dllPath)
    {
        hModule = LoadLibraryA(toStringz(dllPath));
        enforce(hModule !is null, "Failed to load DLL: " ~ dllPath);

        bindFunction(cast(void**)&DTWAIN_AcquireAudioFile, "DTWAIN_AcquireAudioFile");
        bindFunction(cast(void**)&DTWAIN_AcquireAudioFileA, "DTWAIN_AcquireAudioFileA");
        bindFunction(cast(void**)&DTWAIN_AcquireAudioFileW, "DTWAIN_AcquireAudioFileW");
        bindFunction(cast(void**)&DTWAIN_AcquireAudioNative, "DTWAIN_AcquireAudioNative");
        bindFunction(cast(void**)&DTWAIN_AcquireAudioNativeEx, "DTWAIN_AcquireAudioNativeEx");
        bindFunction(cast(void**)&DTWAIN_AcquireBuffered, "DTWAIN_AcquireBuffered");
        bindFunction(cast(void**)&DTWAIN_AcquireBufferedEx, "DTWAIN_AcquireBufferedEx");
        bindFunction(cast(void**)&DTWAIN_AcquireFile, "DTWAIN_AcquireFile");
        bindFunction(cast(void**)&DTWAIN_AcquireFileA, "DTWAIN_AcquireFileA");
        bindFunction(cast(void**)&DTWAIN_AcquireFileEx, "DTWAIN_AcquireFileEx");
        bindFunction(cast(void**)&DTWAIN_AcquireFileW, "DTWAIN_AcquireFileW");
        bindFunction(cast(void**)&DTWAIN_AcquireNative, "DTWAIN_AcquireNative");
        bindFunction(cast(void**)&DTWAIN_AcquireNativeEx, "DTWAIN_AcquireNativeEx");
        bindFunction(cast(void**)&DTWAIN_AcquireToClipboard, "DTWAIN_AcquireToClipboard");
        bindFunction(cast(void**)&DTWAIN_AddExtImageInfoQuery, "DTWAIN_AddExtImageInfoQuery");
        bindFunction(cast(void**)&DTWAIN_AddFileToAppend, "DTWAIN_AddFileToAppend");
        bindFunction(cast(void**)&DTWAIN_AddFileToAppendA, "DTWAIN_AddFileToAppendA");
        bindFunction(cast(void**)&DTWAIN_AddFileToAppendW, "DTWAIN_AddFileToAppendW");
        bindFunction(cast(void**)&DTWAIN_AddPDFText, "DTWAIN_AddPDFText");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextA, "DTWAIN_AddPDFTextA");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextElement, "DTWAIN_AddPDFTextElement");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextEx, "DTWAIN_AddPDFTextEx");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextExA, "DTWAIN_AddPDFTextExA");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextExW, "DTWAIN_AddPDFTextExW");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextString, "DTWAIN_AddPDFTextString");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextStringA, "DTWAIN_AddPDFTextStringA");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextStringW, "DTWAIN_AddPDFTextStringW");
        bindFunction(cast(void**)&DTWAIN_AddPDFTextW, "DTWAIN_AddPDFTextW");
        bindFunction(cast(void**)&DTWAIN_AllocateMemory, "DTWAIN_AllocateMemory");
        bindFunction(cast(void**)&DTWAIN_AllocateMemory64, "DTWAIN_AllocateMemory64");
        bindFunction(cast(void**)&DTWAIN_AllocateMemoryEx, "DTWAIN_AllocateMemoryEx");
        bindFunction(cast(void**)&DTWAIN_AppHandlesExceptions, "DTWAIN_AppHandlesExceptions");
        bindFunction(cast(void**)&DTWAIN_ArrayANSIStringToFloat, "DTWAIN_ArrayANSIStringToFloat");
        bindFunction(cast(void**)&DTWAIN_ArrayAdd, "DTWAIN_ArrayAdd");
        bindFunction(cast(void**)&DTWAIN_ArrayAddANSIString, "DTWAIN_ArrayAddANSIString");
        bindFunction(cast(void**)&DTWAIN_ArrayAddANSIStringN, "DTWAIN_ArrayAddANSIStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloat, "DTWAIN_ArrayAddFloat");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloatN, "DTWAIN_ArrayAddFloatN");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloatString, "DTWAIN_ArrayAddFloatString");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloatStringA, "DTWAIN_ArrayAddFloatStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloatStringN, "DTWAIN_ArrayAddFloatStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloatStringNA, "DTWAIN_ArrayAddFloatStringNA");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloatStringNW, "DTWAIN_ArrayAddFloatStringNW");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFloatStringW, "DTWAIN_ArrayAddFloatStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFrame, "DTWAIN_ArrayAddFrame");
        bindFunction(cast(void**)&DTWAIN_ArrayAddFrameN, "DTWAIN_ArrayAddFrameN");
        bindFunction(cast(void**)&DTWAIN_ArrayAddLong, "DTWAIN_ArrayAddLong");
        bindFunction(cast(void**)&DTWAIN_ArrayAddLong64, "DTWAIN_ArrayAddLong64");
        bindFunction(cast(void**)&DTWAIN_ArrayAddLong64N, "DTWAIN_ArrayAddLong64N");
        bindFunction(cast(void**)&DTWAIN_ArrayAddLongN, "DTWAIN_ArrayAddLongN");
        bindFunction(cast(void**)&DTWAIN_ArrayAddN, "DTWAIN_ArrayAddN");
        bindFunction(cast(void**)&DTWAIN_ArrayAddString, "DTWAIN_ArrayAddString");
        bindFunction(cast(void**)&DTWAIN_ArrayAddStringA, "DTWAIN_ArrayAddStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayAddStringN, "DTWAIN_ArrayAddStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayAddStringNA, "DTWAIN_ArrayAddStringNA");
        bindFunction(cast(void**)&DTWAIN_ArrayAddStringNW, "DTWAIN_ArrayAddStringNW");
        bindFunction(cast(void**)&DTWAIN_ArrayAddStringW, "DTWAIN_ArrayAddStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayAddWideString, "DTWAIN_ArrayAddWideString");
        bindFunction(cast(void**)&DTWAIN_ArrayAddWideStringN, "DTWAIN_ArrayAddWideStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayConvertFix32ToFloat, "DTWAIN_ArrayConvertFix32ToFloat");
        bindFunction(cast(void**)&DTWAIN_ArrayConvertFloatToFix32, "DTWAIN_ArrayConvertFloatToFix32");
        bindFunction(cast(void**)&DTWAIN_ArrayCopy, "DTWAIN_ArrayCopy");
        bindFunction(cast(void**)&DTWAIN_ArrayCreate, "DTWAIN_ArrayCreate");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateCopy, "DTWAIN_ArrayCreateCopy");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateFromCap, "DTWAIN_ArrayCreateFromCap");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateFromLong64s, "DTWAIN_ArrayCreateFromLong64s");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateFromLongs, "DTWAIN_ArrayCreateFromLongs");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateFromReals, "DTWAIN_ArrayCreateFromReals");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateFromStrings, "DTWAIN_ArrayCreateFromStrings");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateFromStringsA, "DTWAIN_ArrayCreateFromStringsA");
        bindFunction(cast(void**)&DTWAIN_ArrayCreateFromStringsW, "DTWAIN_ArrayCreateFromStringsW");
        bindFunction(cast(void**)&DTWAIN_ArrayDestroy, "DTWAIN_ArrayDestroy");
        bindFunction(cast(void**)&DTWAIN_ArrayDestroyFrames, "DTWAIN_ArrayDestroyFrames");
        bindFunction(cast(void**)&DTWAIN_ArrayDumpToLog, "DTWAIN_ArrayDumpToLog");
        bindFunction(cast(void**)&DTWAIN_ArrayFind, "DTWAIN_ArrayFind");
        bindFunction(cast(void**)&DTWAIN_ArrayFindANSIString, "DTWAIN_ArrayFindANSIString");
        bindFunction(cast(void**)&DTWAIN_ArrayFindFloat, "DTWAIN_ArrayFindFloat");
        bindFunction(cast(void**)&DTWAIN_ArrayFindFloatString, "DTWAIN_ArrayFindFloatString");
        bindFunction(cast(void**)&DTWAIN_ArrayFindFloatStringA, "DTWAIN_ArrayFindFloatStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayFindFloatStringW, "DTWAIN_ArrayFindFloatStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayFindLong, "DTWAIN_ArrayFindLong");
        bindFunction(cast(void**)&DTWAIN_ArrayFindLong64, "DTWAIN_ArrayFindLong64");
        bindFunction(cast(void**)&DTWAIN_ArrayFindString, "DTWAIN_ArrayFindString");
        bindFunction(cast(void**)&DTWAIN_ArrayFindStringA, "DTWAIN_ArrayFindStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayFindStringW, "DTWAIN_ArrayFindStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayFindWideString, "DTWAIN_ArrayFindWideString");
        bindFunction(cast(void**)&DTWAIN_ArrayFix32GetAt, "DTWAIN_ArrayFix32GetAt");
        bindFunction(cast(void**)&DTWAIN_ArrayFix32SetAt, "DTWAIN_ArrayFix32SetAt");
        bindFunction(cast(void**)&DTWAIN_ArrayFloatToANSIString, "DTWAIN_ArrayFloatToANSIString");
        bindFunction(cast(void**)&DTWAIN_ArrayFloatToString, "DTWAIN_ArrayFloatToString");
        bindFunction(cast(void**)&DTWAIN_ArrayFloatToWideString, "DTWAIN_ArrayFloatToWideString");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAt, "DTWAIN_ArrayGetAt");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtANSIString, "DTWAIN_ArrayGetAtANSIString");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtANSIStringPtr, "DTWAIN_ArrayGetAtANSIStringPtr");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFloat, "DTWAIN_ArrayGetAtFloat");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFloatEx, "DTWAIN_ArrayGetAtFloatEx");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFloatString, "DTWAIN_ArrayGetAtFloatString");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFloatStringA, "DTWAIN_ArrayGetAtFloatStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFloatStringW, "DTWAIN_ArrayGetAtFloatStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFrame, "DTWAIN_ArrayGetAtFrame");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFrameEx, "DTWAIN_ArrayGetAtFrameEx");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFrameString, "DTWAIN_ArrayGetAtFrameString");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFrameStringA, "DTWAIN_ArrayGetAtFrameStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtFrameStringW, "DTWAIN_ArrayGetAtFrameStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtLong, "DTWAIN_ArrayGetAtLong");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtLong64, "DTWAIN_ArrayGetAtLong64");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtLong64Ex, "DTWAIN_ArrayGetAtLong64Ex");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtLongEx, "DTWAIN_ArrayGetAtLongEx");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtSource, "DTWAIN_ArrayGetAtSource");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtSourceEx, "DTWAIN_ArrayGetAtSourceEx");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtString, "DTWAIN_ArrayGetAtString");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtStringA, "DTWAIN_ArrayGetAtStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtStringPtr, "DTWAIN_ArrayGetAtStringPtr");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtStringW, "DTWAIN_ArrayGetAtStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtWideString, "DTWAIN_ArrayGetAtWideString");
        bindFunction(cast(void**)&DTWAIN_ArrayGetAtWideStringPtr, "DTWAIN_ArrayGetAtWideStringPtr");
        bindFunction(cast(void**)&DTWAIN_ArrayGetBuffer, "DTWAIN_ArrayGetBuffer");
        bindFunction(cast(void**)&DTWAIN_ArrayGetCapValues, "DTWAIN_ArrayGetCapValues");
        bindFunction(cast(void**)&DTWAIN_ArrayGetCapValuesEx, "DTWAIN_ArrayGetCapValuesEx");
        bindFunction(cast(void**)&DTWAIN_ArrayGetCapValuesEx2, "DTWAIN_ArrayGetCapValuesEx2");
        bindFunction(cast(void**)&DTWAIN_ArrayGetCount, "DTWAIN_ArrayGetCount");
        bindFunction(cast(void**)&DTWAIN_ArrayGetMaxStringLength, "DTWAIN_ArrayGetMaxStringLength");
        bindFunction(cast(void**)&DTWAIN_ArrayGetSourceAt, "DTWAIN_ArrayGetSourceAt");
        bindFunction(cast(void**)&DTWAIN_ArrayGetStringLength, "DTWAIN_ArrayGetStringLength");
        bindFunction(cast(void**)&DTWAIN_ArrayGetType, "DTWAIN_ArrayGetType");
        bindFunction(cast(void**)&DTWAIN_ArrayInit, "DTWAIN_ArrayInit");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAt, "DTWAIN_ArrayInsertAt");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtANSIString, "DTWAIN_ArrayInsertAtANSIString");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtANSIStringN, "DTWAIN_ArrayInsertAtANSIStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloat, "DTWAIN_ArrayInsertAtFloat");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloatN, "DTWAIN_ArrayInsertAtFloatN");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloatString, "DTWAIN_ArrayInsertAtFloatString");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloatStringA, "DTWAIN_ArrayInsertAtFloatStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloatStringN, "DTWAIN_ArrayInsertAtFloatStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloatStringNA, "DTWAIN_ArrayInsertAtFloatStringNA");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloatStringNW, "DTWAIN_ArrayInsertAtFloatStringNW");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFloatStringW, "DTWAIN_ArrayInsertAtFloatStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFrame, "DTWAIN_ArrayInsertAtFrame");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtFrameN, "DTWAIN_ArrayInsertAtFrameN");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtLong, "DTWAIN_ArrayInsertAtLong");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtLong64, "DTWAIN_ArrayInsertAtLong64");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtLong64N, "DTWAIN_ArrayInsertAtLong64N");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtLongN, "DTWAIN_ArrayInsertAtLongN");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtN, "DTWAIN_ArrayInsertAtN");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtString, "DTWAIN_ArrayInsertAtString");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtStringA, "DTWAIN_ArrayInsertAtStringA");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtStringN, "DTWAIN_ArrayInsertAtStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtStringNA, "DTWAIN_ArrayInsertAtStringNA");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtStringNW, "DTWAIN_ArrayInsertAtStringNW");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtStringW, "DTWAIN_ArrayInsertAtStringW");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtWideString, "DTWAIN_ArrayInsertAtWideString");
        bindFunction(cast(void**)&DTWAIN_ArrayInsertAtWideStringN, "DTWAIN_ArrayInsertAtWideStringN");
        bindFunction(cast(void**)&DTWAIN_ArrayRemoveAll, "DTWAIN_ArrayRemoveAll");
        bindFunction(cast(void**)&DTWAIN_ArrayRemoveAt, "DTWAIN_ArrayRemoveAt");
        bindFunction(cast(void**)&DTWAIN_ArrayRemoveAtN, "DTWAIN_ArrayRemoveAtN");
        bindFunction(cast(void**)&DTWAIN_ArrayResize, "DTWAIN_ArrayResize");
        bindFunction(cast(void**)&DTWAIN_ArraySetAt, "DTWAIN_ArraySetAt");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtANSIString, "DTWAIN_ArraySetAtANSIString");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFloat, "DTWAIN_ArraySetAtFloat");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFloatString, "DTWAIN_ArraySetAtFloatString");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFloatStringA, "DTWAIN_ArraySetAtFloatStringA");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFloatStringW, "DTWAIN_ArraySetAtFloatStringW");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFrame, "DTWAIN_ArraySetAtFrame");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFrameEx, "DTWAIN_ArraySetAtFrameEx");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFrameString, "DTWAIN_ArraySetAtFrameString");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFrameStringA, "DTWAIN_ArraySetAtFrameStringA");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtFrameStringW, "DTWAIN_ArraySetAtFrameStringW");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtLong, "DTWAIN_ArraySetAtLong");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtLong64, "DTWAIN_ArraySetAtLong64");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtString, "DTWAIN_ArraySetAtString");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtStringA, "DTWAIN_ArraySetAtStringA");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtStringW, "DTWAIN_ArraySetAtStringW");
        bindFunction(cast(void**)&DTWAIN_ArraySetAtWideString, "DTWAIN_ArraySetAtWideString");
        bindFunction(cast(void**)&DTWAIN_ArrayStringToFloat, "DTWAIN_ArrayStringToFloat");
        bindFunction(cast(void**)&DTWAIN_ArrayWideStringToFloat, "DTWAIN_ArrayWideStringToFloat");
        bindFunction(cast(void**)&DTWAIN_CallCallback, "DTWAIN_CallCallback");
        bindFunction(cast(void**)&DTWAIN_CallCallback64, "DTWAIN_CallCallback64");
        bindFunction(cast(void**)&DTWAIN_CallDSMProc, "DTWAIN_CallDSMProc");
        bindFunction(cast(void**)&DTWAIN_CheckHandles, "DTWAIN_CheckHandles");
        bindFunction(cast(void**)&DTWAIN_ClearBuffers, "DTWAIN_ClearBuffers");
        bindFunction(cast(void**)&DTWAIN_ClearErrorBuffer, "DTWAIN_ClearErrorBuffer");
        bindFunction(cast(void**)&DTWAIN_ClearPDFTextElements, "DTWAIN_ClearPDFTextElements");
        bindFunction(cast(void**)&DTWAIN_ClearPage, "DTWAIN_ClearPage");
        bindFunction(cast(void**)&DTWAIN_CloseSource, "DTWAIN_CloseSource");
        bindFunction(cast(void**)&DTWAIN_CloseSourceUI, "DTWAIN_CloseSourceUI");
        bindFunction(cast(void**)&DTWAIN_ConvertDIBToBitmap, "DTWAIN_ConvertDIBToBitmap");
        bindFunction(cast(void**)&DTWAIN_ConvertDIBToFullBitmap, "DTWAIN_ConvertDIBToFullBitmap");
        bindFunction(cast(void**)&DTWAIN_ConvertToAPIString, "DTWAIN_ConvertToAPIString");
        bindFunction(cast(void**)&DTWAIN_ConvertToAPIStringA, "DTWAIN_ConvertToAPIStringA");
        bindFunction(cast(void**)&DTWAIN_ConvertToAPIStringEx, "DTWAIN_ConvertToAPIStringEx");
        bindFunction(cast(void**)&DTWAIN_ConvertToAPIStringExA, "DTWAIN_ConvertToAPIStringExA");
        bindFunction(cast(void**)&DTWAIN_ConvertToAPIStringExW, "DTWAIN_ConvertToAPIStringExW");
        bindFunction(cast(void**)&DTWAIN_ConvertToAPIStringW, "DTWAIN_ConvertToAPIStringW");
        bindFunction(cast(void**)&DTWAIN_CreateAcquisitionArray, "DTWAIN_CreateAcquisitionArray");
        bindFunction(cast(void**)&DTWAIN_CreatePDFTextElement, "DTWAIN_CreatePDFTextElement");
        bindFunction(cast(void**)&DTWAIN_CreatePDFTextElementCopy, "DTWAIN_CreatePDFTextElementCopy");
        bindFunction(cast(void**)&DTWAIN_DeleteDIB, "DTWAIN_DeleteDIB");
        bindFunction(cast(void**)&DTWAIN_DestroyAcquisitionArray, "DTWAIN_DestroyAcquisitionArray");
        bindFunction(cast(void**)&DTWAIN_DestroyPDFTextElement, "DTWAIN_DestroyPDFTextElement");
        bindFunction(cast(void**)&DTWAIN_DisableAppWindow, "DTWAIN_DisableAppWindow");
        bindFunction(cast(void**)&DTWAIN_EnableAutoBorderDetect, "DTWAIN_EnableAutoBorderDetect");
        bindFunction(cast(void**)&DTWAIN_EnableAutoBright, "DTWAIN_EnableAutoBright");
        bindFunction(cast(void**)&DTWAIN_EnableAutoDeskew, "DTWAIN_EnableAutoDeskew");
        bindFunction(cast(void**)&DTWAIN_EnableAutoFeed, "DTWAIN_EnableAutoFeed");
        bindFunction(cast(void**)&DTWAIN_EnableAutoRotate, "DTWAIN_EnableAutoRotate");
        bindFunction(cast(void**)&DTWAIN_EnableAutoScan, "DTWAIN_EnableAutoScan");
        bindFunction(cast(void**)&DTWAIN_EnableAutomaticSenseMedium, "DTWAIN_EnableAutomaticSenseMedium");
        bindFunction(cast(void**)&DTWAIN_EnableBarcodeDetection, "DTWAIN_EnableBarcodeDetection");
        bindFunction(cast(void**)&DTWAIN_EnableDuplex, "DTWAIN_EnableDuplex");
        bindFunction(cast(void**)&DTWAIN_EnableFeeder, "DTWAIN_EnableFeeder");
        bindFunction(cast(void**)&DTWAIN_EnableGetMessageLoop, "DTWAIN_EnableGetMessageLoop");
        bindFunction(cast(void**)&DTWAIN_EnableGetMessageLoopDetection, "DTWAIN_EnableGetMessageLoopDetection");
        bindFunction(cast(void**)&DTWAIN_EnableIndicator, "DTWAIN_EnableIndicator");
        bindFunction(cast(void**)&DTWAIN_EnableJobFileHandling, "DTWAIN_EnableJobFileHandling");
        bindFunction(cast(void**)&DTWAIN_EnableLamp, "DTWAIN_EnableLamp");
        bindFunction(cast(void**)&DTWAIN_EnableMsgNotify, "DTWAIN_EnableMsgNotify");
        bindFunction(cast(void**)&DTWAIN_EnablePatchcodeDetection, "DTWAIN_EnablePatchcodeDetection");
        bindFunction(cast(void**)&DTWAIN_EnablePeekMessageLoop, "DTWAIN_EnablePeekMessageLoop");
        bindFunction(cast(void**)&DTWAIN_EnablePrinter, "DTWAIN_EnablePrinter");
        bindFunction(cast(void**)&DTWAIN_EnableThumbnail, "DTWAIN_EnableThumbnail");
        bindFunction(cast(void**)&DTWAIN_EnableTripletsNotify, "DTWAIN_EnableTripletsNotify");
        bindFunction(cast(void**)&DTWAIN_EndThread, "DTWAIN_EndThread");
        bindFunction(cast(void**)&DTWAIN_EndTwainSession, "DTWAIN_EndTwainSession");
        bindFunction(cast(void**)&DTWAIN_EnumAlarmVolumes, "DTWAIN_EnumAlarmVolumes");
        bindFunction(cast(void**)&DTWAIN_EnumAlarmVolumesEx, "DTWAIN_EnumAlarmVolumesEx");
        bindFunction(cast(void**)&DTWAIN_EnumAlarms, "DTWAIN_EnumAlarms");
        bindFunction(cast(void**)&DTWAIN_EnumAlarmsEx, "DTWAIN_EnumAlarmsEx");
        bindFunction(cast(void**)&DTWAIN_EnumAudioXferMechs, "DTWAIN_EnumAudioXferMechs");
        bindFunction(cast(void**)&DTWAIN_EnumAudioXferMechsEx, "DTWAIN_EnumAudioXferMechsEx");
        bindFunction(cast(void**)&DTWAIN_EnumAutoFeedValues, "DTWAIN_EnumAutoFeedValues");
        bindFunction(cast(void**)&DTWAIN_EnumAutoFeedValuesEx, "DTWAIN_EnumAutoFeedValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumAutomaticCaptures, "DTWAIN_EnumAutomaticCaptures");
        bindFunction(cast(void**)&DTWAIN_EnumAutomaticCapturesEx, "DTWAIN_EnumAutomaticCapturesEx");
        bindFunction(cast(void**)&DTWAIN_EnumAutomaticSenseMedium, "DTWAIN_EnumAutomaticSenseMedium");
        bindFunction(cast(void**)&DTWAIN_EnumAutomaticSenseMediumEx, "DTWAIN_EnumAutomaticSenseMediumEx");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeCodes, "DTWAIN_EnumBarcodeCodes");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeCodesEx, "DTWAIN_EnumBarcodeCodesEx");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeMaxPriorities, "DTWAIN_EnumBarcodeMaxPriorities");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeMaxPrioritiesEx, "DTWAIN_EnumBarcodeMaxPrioritiesEx");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeMaxRetries, "DTWAIN_EnumBarcodeMaxRetries");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeMaxRetriesEx, "DTWAIN_EnumBarcodeMaxRetriesEx");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodePriorities, "DTWAIN_EnumBarcodePriorities");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodePrioritiesEx, "DTWAIN_EnumBarcodePrioritiesEx");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeSearchModes, "DTWAIN_EnumBarcodeSearchModes");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeSearchModesEx, "DTWAIN_EnumBarcodeSearchModesEx");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeTimeOutValues, "DTWAIN_EnumBarcodeTimeOutValues");
        bindFunction(cast(void**)&DTWAIN_EnumBarcodeTimeOutValuesEx, "DTWAIN_EnumBarcodeTimeOutValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumBitDepths, "DTWAIN_EnumBitDepths");
        bindFunction(cast(void**)&DTWAIN_EnumBitDepthsEx, "DTWAIN_EnumBitDepthsEx");
        bindFunction(cast(void**)&DTWAIN_EnumBitDepthsEx2, "DTWAIN_EnumBitDepthsEx2");
        bindFunction(cast(void**)&DTWAIN_EnumBottomCameras, "DTWAIN_EnumBottomCameras");
        bindFunction(cast(void**)&DTWAIN_EnumBottomCamerasEx, "DTWAIN_EnumBottomCamerasEx");
        bindFunction(cast(void**)&DTWAIN_EnumBrightnessValues, "DTWAIN_EnumBrightnessValues");
        bindFunction(cast(void**)&DTWAIN_EnumBrightnessValuesEx, "DTWAIN_EnumBrightnessValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumCameras, "DTWAIN_EnumCameras");
        bindFunction(cast(void**)&DTWAIN_EnumCamerasEx, "DTWAIN_EnumCamerasEx");
        bindFunction(cast(void**)&DTWAIN_EnumCamerasEx2, "DTWAIN_EnumCamerasEx2");
        bindFunction(cast(void**)&DTWAIN_EnumCapLabels, "DTWAIN_EnumCapLabels");
        bindFunction(cast(void**)&DTWAIN_EnumCompressionTypes, "DTWAIN_EnumCompressionTypes");
        bindFunction(cast(void**)&DTWAIN_EnumCompressionTypesEx, "DTWAIN_EnumCompressionTypesEx");
        bindFunction(cast(void**)&DTWAIN_EnumCompressionTypesEx2, "DTWAIN_EnumCompressionTypesEx2");
        bindFunction(cast(void**)&DTWAIN_EnumContrastValues, "DTWAIN_EnumContrastValues");
        bindFunction(cast(void**)&DTWAIN_EnumContrastValuesEx, "DTWAIN_EnumContrastValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumCustomCaps, "DTWAIN_EnumCustomCaps");
        bindFunction(cast(void**)&DTWAIN_EnumCustomCapsEx, "DTWAIN_EnumCustomCapsEx");
        bindFunction(cast(void**)&DTWAIN_EnumDoubleFeedDetectLengths, "DTWAIN_EnumDoubleFeedDetectLengths");
        bindFunction(cast(void**)&DTWAIN_EnumDoubleFeedDetectLengthsEx, "DTWAIN_EnumDoubleFeedDetectLengthsEx");
        bindFunction(cast(void**)&DTWAIN_EnumDoubleFeedDetectValues, "DTWAIN_EnumDoubleFeedDetectValues");
        bindFunction(cast(void**)&DTWAIN_EnumDoubleFeedDetectValuesEx, "DTWAIN_EnumDoubleFeedDetectValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumExtImageInfoTypes, "DTWAIN_EnumExtImageInfoTypes");
        bindFunction(cast(void**)&DTWAIN_EnumExtImageInfoTypesEx, "DTWAIN_EnumExtImageInfoTypesEx");
        bindFunction(cast(void**)&DTWAIN_EnumExtendedCaps, "DTWAIN_EnumExtendedCaps");
        bindFunction(cast(void**)&DTWAIN_EnumExtendedCapsEx, "DTWAIN_EnumExtendedCapsEx");
        bindFunction(cast(void**)&DTWAIN_EnumExtendedCapsEx2, "DTWAIN_EnumExtendedCapsEx2");
        bindFunction(cast(void**)&DTWAIN_EnumFileTypeBitsPerPixel, "DTWAIN_EnumFileTypeBitsPerPixel");
        bindFunction(cast(void**)&DTWAIN_EnumFileXferFormats, "DTWAIN_EnumFileXferFormats");
        bindFunction(cast(void**)&DTWAIN_EnumFileXferFormatsEx, "DTWAIN_EnumFileXferFormatsEx");
        bindFunction(cast(void**)&DTWAIN_EnumHalftones, "DTWAIN_EnumHalftones");
        bindFunction(cast(void**)&DTWAIN_EnumHalftonesEx, "DTWAIN_EnumHalftonesEx");
        bindFunction(cast(void**)&DTWAIN_EnumHighlightValues, "DTWAIN_EnumHighlightValues");
        bindFunction(cast(void**)&DTWAIN_EnumHighlightValuesEx, "DTWAIN_EnumHighlightValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumJobControls, "DTWAIN_EnumJobControls");
        bindFunction(cast(void**)&DTWAIN_EnumJobControlsEx, "DTWAIN_EnumJobControlsEx");
        bindFunction(cast(void**)&DTWAIN_EnumLightPaths, "DTWAIN_EnumLightPaths");
        bindFunction(cast(void**)&DTWAIN_EnumLightPathsEx, "DTWAIN_EnumLightPathsEx");
        bindFunction(cast(void**)&DTWAIN_EnumLightSources, "DTWAIN_EnumLightSources");
        bindFunction(cast(void**)&DTWAIN_EnumLightSourcesEx, "DTWAIN_EnumLightSourcesEx");
        bindFunction(cast(void**)&DTWAIN_EnumMaxBuffers, "DTWAIN_EnumMaxBuffers");
        bindFunction(cast(void**)&DTWAIN_EnumMaxBuffersEx, "DTWAIN_EnumMaxBuffersEx");
        bindFunction(cast(void**)&DTWAIN_EnumNoiseFilters, "DTWAIN_EnumNoiseFilters");
        bindFunction(cast(void**)&DTWAIN_EnumNoiseFiltersEx, "DTWAIN_EnumNoiseFiltersEx");
        bindFunction(cast(void**)&DTWAIN_EnumOCRInterfaces, "DTWAIN_EnumOCRInterfaces");
        bindFunction(cast(void**)&DTWAIN_EnumOCRInterfacesEx, "DTWAIN_EnumOCRInterfacesEx");
        bindFunction(cast(void**)&DTWAIN_EnumOCRSupportedCaps, "DTWAIN_EnumOCRSupportedCaps");
        bindFunction(cast(void**)&DTWAIN_EnumOrientations, "DTWAIN_EnumOrientations");
        bindFunction(cast(void**)&DTWAIN_EnumOrientationsEx, "DTWAIN_EnumOrientationsEx");
        bindFunction(cast(void**)&DTWAIN_EnumOverscanValues, "DTWAIN_EnumOverscanValues");
        bindFunction(cast(void**)&DTWAIN_EnumOverscanValuesEx, "DTWAIN_EnumOverscanValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPaperSizes, "DTWAIN_EnumPaperSizes");
        bindFunction(cast(void**)&DTWAIN_EnumPaperSizesEx, "DTWAIN_EnumPaperSizesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeCodes, "DTWAIN_EnumPatchcodeCodes");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeCodesEx, "DTWAIN_EnumPatchcodeCodesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeMaxPriorities, "DTWAIN_EnumPatchcodeMaxPriorities");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeMaxPrioritiesEx, "DTWAIN_EnumPatchcodeMaxPrioritiesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeMaxRetries, "DTWAIN_EnumPatchcodeMaxRetries");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeMaxRetriesEx, "DTWAIN_EnumPatchcodeMaxRetriesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodePriorities, "DTWAIN_EnumPatchcodePriorities");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodePrioritiesEx, "DTWAIN_EnumPatchcodePrioritiesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeSearchModes, "DTWAIN_EnumPatchcodeSearchModes");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeSearchModesEx, "DTWAIN_EnumPatchcodeSearchModesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeTimeOutValues, "DTWAIN_EnumPatchcodeTimeOutValues");
        bindFunction(cast(void**)&DTWAIN_EnumPatchcodeTimeOutValuesEx, "DTWAIN_EnumPatchcodeTimeOutValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPixelTypes, "DTWAIN_EnumPixelTypes");
        bindFunction(cast(void**)&DTWAIN_EnumPixelTypesEx, "DTWAIN_EnumPixelTypesEx");
        bindFunction(cast(void**)&DTWAIN_EnumPrinterStringModes, "DTWAIN_EnumPrinterStringModes");
        bindFunction(cast(void**)&DTWAIN_EnumPrinterStringModesEx, "DTWAIN_EnumPrinterStringModesEx");
        bindFunction(cast(void**)&DTWAIN_EnumResolutionValues, "DTWAIN_EnumResolutionValues");
        bindFunction(cast(void**)&DTWAIN_EnumResolutionValuesEx, "DTWAIN_EnumResolutionValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumShadowValues, "DTWAIN_EnumShadowValues");
        bindFunction(cast(void**)&DTWAIN_EnumShadowValuesEx, "DTWAIN_EnumShadowValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumSourceUnits, "DTWAIN_EnumSourceUnits");
        bindFunction(cast(void**)&DTWAIN_EnumSourceUnitsEx, "DTWAIN_EnumSourceUnitsEx");
        bindFunction(cast(void**)&DTWAIN_EnumSourceValues, "DTWAIN_EnumSourceValues");
        bindFunction(cast(void**)&DTWAIN_EnumSourceValuesA, "DTWAIN_EnumSourceValuesA");
        bindFunction(cast(void**)&DTWAIN_EnumSourceValuesW, "DTWAIN_EnumSourceValuesW");
        bindFunction(cast(void**)&DTWAIN_EnumSources, "DTWAIN_EnumSources");
        bindFunction(cast(void**)&DTWAIN_EnumSourcesEx, "DTWAIN_EnumSourcesEx");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedCaps, "DTWAIN_EnumSupportedCaps");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedCapsEx, "DTWAIN_EnumSupportedCapsEx");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedCapsEx2, "DTWAIN_EnumSupportedCapsEx2");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedExtImageInfo, "DTWAIN_EnumSupportedExtImageInfo");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedExtImageInfoEx, "DTWAIN_EnumSupportedExtImageInfoEx");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedFileTypes, "DTWAIN_EnumSupportedFileTypes");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedMultiPageFileTypes, "DTWAIN_EnumSupportedMultiPageFileTypes");
        bindFunction(cast(void**)&DTWAIN_EnumSupportedSinglePageFileTypes, "DTWAIN_EnumSupportedSinglePageFileTypes");
        bindFunction(cast(void**)&DTWAIN_EnumThresholdValues, "DTWAIN_EnumThresholdValues");
        bindFunction(cast(void**)&DTWAIN_EnumThresholdValuesEx, "DTWAIN_EnumThresholdValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumTopCameras, "DTWAIN_EnumTopCameras");
        bindFunction(cast(void**)&DTWAIN_EnumTopCamerasEx, "DTWAIN_EnumTopCamerasEx");
        bindFunction(cast(void**)&DTWAIN_EnumTwainPrinters, "DTWAIN_EnumTwainPrinters");
        bindFunction(cast(void**)&DTWAIN_EnumTwainPrintersEx, "DTWAIN_EnumTwainPrintersEx");
        bindFunction(cast(void**)&DTWAIN_EnumXResolutionValues, "DTWAIN_EnumXResolutionValues");
        bindFunction(cast(void**)&DTWAIN_EnumXResolutionValuesEx, "DTWAIN_EnumXResolutionValuesEx");
        bindFunction(cast(void**)&DTWAIN_EnumYResolutionValues, "DTWAIN_EnumYResolutionValues");
        bindFunction(cast(void**)&DTWAIN_EnumYResolutionValuesEx, "DTWAIN_EnumYResolutionValuesEx");
        bindFunction(cast(void**)&DTWAIN_ExecuteOCR, "DTWAIN_ExecuteOCR");
        bindFunction(cast(void**)&DTWAIN_ExecuteOCRA, "DTWAIN_ExecuteOCRA");
        bindFunction(cast(void**)&DTWAIN_ExecuteOCRW, "DTWAIN_ExecuteOCRW");
        bindFunction(cast(void**)&DTWAIN_FeedPage, "DTWAIN_FeedPage");
        bindFunction(cast(void**)&DTWAIN_FlipBitmap, "DTWAIN_FlipBitmap");
        bindFunction(cast(void**)&DTWAIN_FlushAcquiredPages, "DTWAIN_FlushAcquiredPages");
        bindFunction(cast(void**)&DTWAIN_FrameCreate, "DTWAIN_FrameCreate");
        bindFunction(cast(void**)&DTWAIN_FrameCreateString, "DTWAIN_FrameCreateString");
        bindFunction(cast(void**)&DTWAIN_FrameCreateStringA, "DTWAIN_FrameCreateStringA");
        bindFunction(cast(void**)&DTWAIN_FrameCreateStringW, "DTWAIN_FrameCreateStringW");
        bindFunction(cast(void**)&DTWAIN_FrameDestroy, "DTWAIN_FrameDestroy");
        bindFunction(cast(void**)&DTWAIN_FrameGetAll, "DTWAIN_FrameGetAll");
        bindFunction(cast(void**)&DTWAIN_FrameGetAllString, "DTWAIN_FrameGetAllString");
        bindFunction(cast(void**)&DTWAIN_FrameGetAllStringA, "DTWAIN_FrameGetAllStringA");
        bindFunction(cast(void**)&DTWAIN_FrameGetAllStringW, "DTWAIN_FrameGetAllStringW");
        bindFunction(cast(void**)&DTWAIN_FrameGetValue, "DTWAIN_FrameGetValue");
        bindFunction(cast(void**)&DTWAIN_FrameGetValueString, "DTWAIN_FrameGetValueString");
        bindFunction(cast(void**)&DTWAIN_FrameGetValueStringA, "DTWAIN_FrameGetValueStringA");
        bindFunction(cast(void**)&DTWAIN_FrameGetValueStringW, "DTWAIN_FrameGetValueStringW");
        bindFunction(cast(void**)&DTWAIN_FrameIsValid, "DTWAIN_FrameIsValid");
        bindFunction(cast(void**)&DTWAIN_FrameSetAll, "DTWAIN_FrameSetAll");
        bindFunction(cast(void**)&DTWAIN_FrameSetAllString, "DTWAIN_FrameSetAllString");
        bindFunction(cast(void**)&DTWAIN_FrameSetAllStringA, "DTWAIN_FrameSetAllStringA");
        bindFunction(cast(void**)&DTWAIN_FrameSetAllStringW, "DTWAIN_FrameSetAllStringW");
        bindFunction(cast(void**)&DTWAIN_FrameSetValue, "DTWAIN_FrameSetValue");
        bindFunction(cast(void**)&DTWAIN_FrameSetValueString, "DTWAIN_FrameSetValueString");
        bindFunction(cast(void**)&DTWAIN_FrameSetValueStringA, "DTWAIN_FrameSetValueStringA");
        bindFunction(cast(void**)&DTWAIN_FrameSetValueStringW, "DTWAIN_FrameSetValueStringW");
        bindFunction(cast(void**)&DTWAIN_FreeExtImageInfo, "DTWAIN_FreeExtImageInfo");
        bindFunction(cast(void**)&DTWAIN_FreeMemory, "DTWAIN_FreeMemory");
        bindFunction(cast(void**)&DTWAIN_FreeMemoryEx, "DTWAIN_FreeMemoryEx");
        bindFunction(cast(void**)&DTWAIN_GetAPIHandleStatus, "DTWAIN_GetAPIHandleStatus");
        bindFunction(cast(void**)&DTWAIN_GetAcquireArea, "DTWAIN_GetAcquireArea");
        bindFunction(cast(void**)&DTWAIN_GetAcquireArea2, "DTWAIN_GetAcquireArea2");
        bindFunction(cast(void**)&DTWAIN_GetAcquireArea2String, "DTWAIN_GetAcquireArea2String");
        bindFunction(cast(void**)&DTWAIN_GetAcquireArea2StringA, "DTWAIN_GetAcquireArea2StringA");
        bindFunction(cast(void**)&DTWAIN_GetAcquireArea2StringW, "DTWAIN_GetAcquireArea2StringW");
        bindFunction(cast(void**)&DTWAIN_GetAcquireAreaEx, "DTWAIN_GetAcquireAreaEx");
        bindFunction(cast(void**)&DTWAIN_GetAcquireMetrics, "DTWAIN_GetAcquireMetrics");
        bindFunction(cast(void**)&DTWAIN_GetAcquireStripBuffer, "DTWAIN_GetAcquireStripBuffer");
        bindFunction(cast(void**)&DTWAIN_GetAcquireStripData, "DTWAIN_GetAcquireStripData");
        bindFunction(cast(void**)&DTWAIN_GetAcquireStripSizes, "DTWAIN_GetAcquireStripSizes");
        bindFunction(cast(void**)&DTWAIN_GetAcquiredImage, "DTWAIN_GetAcquiredImage");
        bindFunction(cast(void**)&DTWAIN_GetAcquiredImageArray, "DTWAIN_GetAcquiredImageArray");
        bindFunction(cast(void**)&DTWAIN_GetAcquisitionArray, "DTWAIN_GetAcquisitionArray");
        bindFunction(cast(void**)&DTWAIN_GetActiveDSMPath, "DTWAIN_GetActiveDSMPath");
        bindFunction(cast(void**)&DTWAIN_GetActiveDSMPathA, "DTWAIN_GetActiveDSMPathA");
        bindFunction(cast(void**)&DTWAIN_GetActiveDSMPathW, "DTWAIN_GetActiveDSMPathW");
        bindFunction(cast(void**)&DTWAIN_GetActiveDSMVersionInfo, "DTWAIN_GetActiveDSMVersionInfo");
        bindFunction(cast(void**)&DTWAIN_GetActiveDSMVersionInfoA, "DTWAIN_GetActiveDSMVersionInfoA");
        bindFunction(cast(void**)&DTWAIN_GetActiveDSMVersionInfoW, "DTWAIN_GetActiveDSMVersionInfoW");
        bindFunction(cast(void**)&DTWAIN_GetAlarmVolume, "DTWAIN_GetAlarmVolume");
        bindFunction(cast(void**)&DTWAIN_GetAllSourceDibs, "DTWAIN_GetAllSourceDibs");
        bindFunction(cast(void**)&DTWAIN_GetAppInfo, "DTWAIN_GetAppInfo");
        bindFunction(cast(void**)&DTWAIN_GetAppInfoA, "DTWAIN_GetAppInfoA");
        bindFunction(cast(void**)&DTWAIN_GetAppInfoW, "DTWAIN_GetAppInfoW");
        bindFunction(cast(void**)&DTWAIN_GetAuthor, "DTWAIN_GetAuthor");
        bindFunction(cast(void**)&DTWAIN_GetAuthorA, "DTWAIN_GetAuthorA");
        bindFunction(cast(void**)&DTWAIN_GetAuthorW, "DTWAIN_GetAuthorW");
        bindFunction(cast(void**)&DTWAIN_GetBarcodeMaxPriorities, "DTWAIN_GetBarcodeMaxPriorities");
        bindFunction(cast(void**)&DTWAIN_GetBarcodeMaxRetries, "DTWAIN_GetBarcodeMaxRetries");
        bindFunction(cast(void**)&DTWAIN_GetBarcodePriorities, "DTWAIN_GetBarcodePriorities");
        bindFunction(cast(void**)&DTWAIN_GetBarcodeSearchMode, "DTWAIN_GetBarcodeSearchMode");
        bindFunction(cast(void**)&DTWAIN_GetBarcodeTimeOut, "DTWAIN_GetBarcodeTimeOut");
        bindFunction(cast(void**)&DTWAIN_GetBatteryMinutes, "DTWAIN_GetBatteryMinutes");
        bindFunction(cast(void**)&DTWAIN_GetBatteryPercent, "DTWAIN_GetBatteryPercent");
        bindFunction(cast(void**)&DTWAIN_GetBitDepth, "DTWAIN_GetBitDepth");
        bindFunction(cast(void**)&DTWAIN_GetBitDepthEx, "DTWAIN_GetBitDepthEx");
        bindFunction(cast(void**)&DTWAIN_GetBlankPageAutoDetection, "DTWAIN_GetBlankPageAutoDetection");
        bindFunction(cast(void**)&DTWAIN_GetBrightness, "DTWAIN_GetBrightness");
        bindFunction(cast(void**)&DTWAIN_GetBrightnessEx, "DTWAIN_GetBrightnessEx");
        bindFunction(cast(void**)&DTWAIN_GetBrightnessString, "DTWAIN_GetBrightnessString");
        bindFunction(cast(void**)&DTWAIN_GetBrightnessStringA, "DTWAIN_GetBrightnessStringA");
        bindFunction(cast(void**)&DTWAIN_GetBrightnessStringW, "DTWAIN_GetBrightnessStringW");
        bindFunction(cast(void**)&DTWAIN_GetBufferedTransferInfo, "DTWAIN_GetBufferedTransferInfo");
        bindFunction(cast(void**)&DTWAIN_GetCapArrayType, "DTWAIN_GetCapArrayType");
        bindFunction(cast(void**)&DTWAIN_GetCapContainer, "DTWAIN_GetCapContainer");
        bindFunction(cast(void**)&DTWAIN_GetCapContainerEx, "DTWAIN_GetCapContainerEx");
        bindFunction(cast(void**)&DTWAIN_GetCapContainerEx2, "DTWAIN_GetCapContainerEx2");
        bindFunction(cast(void**)&DTWAIN_GetCapDataType, "DTWAIN_GetCapDataType");
        bindFunction(cast(void**)&DTWAIN_GetCapFromName, "DTWAIN_GetCapFromName");
        bindFunction(cast(void**)&DTWAIN_GetCapFromNameA, "DTWAIN_GetCapFromNameA");
        bindFunction(cast(void**)&DTWAIN_GetCapFromNameW, "DTWAIN_GetCapFromNameW");
        bindFunction(cast(void**)&DTWAIN_GetCapHelp, "DTWAIN_GetCapHelp");
        bindFunction(cast(void**)&DTWAIN_GetCapHelpA, "DTWAIN_GetCapHelpA");
        bindFunction(cast(void**)&DTWAIN_GetCapHelpW, "DTWAIN_GetCapHelpW");
        bindFunction(cast(void**)&DTWAIN_GetCapLabel, "DTWAIN_GetCapLabel");
        bindFunction(cast(void**)&DTWAIN_GetCapLabelA, "DTWAIN_GetCapLabelA");
        bindFunction(cast(void**)&DTWAIN_GetCapLabelW, "DTWAIN_GetCapLabelW");
        bindFunction(cast(void**)&DTWAIN_GetCapOperations, "DTWAIN_GetCapOperations");
        bindFunction(cast(void**)&DTWAIN_GetCapOperationsEx, "DTWAIN_GetCapOperationsEx");
        bindFunction(cast(void**)&DTWAIN_GetCapValues, "DTWAIN_GetCapValues");
        bindFunction(cast(void**)&DTWAIN_GetCapValuesEx, "DTWAIN_GetCapValuesEx");
        bindFunction(cast(void**)&DTWAIN_GetCapValuesEx2, "DTWAIN_GetCapValuesEx2");
        bindFunction(cast(void**)&DTWAIN_GetCaption, "DTWAIN_GetCaption");
        bindFunction(cast(void**)&DTWAIN_GetCaptionA, "DTWAIN_GetCaptionA");
        bindFunction(cast(void**)&DTWAIN_GetCaptionW, "DTWAIN_GetCaptionW");
        bindFunction(cast(void**)&DTWAIN_GetCompressionSize, "DTWAIN_GetCompressionSize");
        bindFunction(cast(void**)&DTWAIN_GetCompressionType, "DTWAIN_GetCompressionType");
        bindFunction(cast(void**)&DTWAIN_GetCompressionTypeEx, "DTWAIN_GetCompressionTypeEx");
        bindFunction(cast(void**)&DTWAIN_GetConditionCodeString, "DTWAIN_GetConditionCodeString");
        bindFunction(cast(void**)&DTWAIN_GetConditionCodeStringA, "DTWAIN_GetConditionCodeStringA");
        bindFunction(cast(void**)&DTWAIN_GetConditionCodeStringW, "DTWAIN_GetConditionCodeStringW");
        bindFunction(cast(void**)&DTWAIN_GetConstantFromTwainName, "DTWAIN_GetConstantFromTwainName");
        bindFunction(cast(void**)&DTWAIN_GetConstantFromTwainNameA, "DTWAIN_GetConstantFromTwainNameA");
        bindFunction(cast(void**)&DTWAIN_GetConstantFromTwainNameW, "DTWAIN_GetConstantFromTwainNameW");
        bindFunction(cast(void**)&DTWAIN_GetContrast, "DTWAIN_GetContrast");
        bindFunction(cast(void**)&DTWAIN_GetContrastEx, "DTWAIN_GetContrastEx");
        bindFunction(cast(void**)&DTWAIN_GetContrastString, "DTWAIN_GetContrastString");
        bindFunction(cast(void**)&DTWAIN_GetContrastStringA, "DTWAIN_GetContrastStringA");
        bindFunction(cast(void**)&DTWAIN_GetContrastStringW, "DTWAIN_GetContrastStringW");
        bindFunction(cast(void**)&DTWAIN_GetCountry, "DTWAIN_GetCountry");
        bindFunction(cast(void**)&DTWAIN_GetCurrentAcquiredImage, "DTWAIN_GetCurrentAcquiredImage");
        bindFunction(cast(void**)&DTWAIN_GetCurrentFileName, "DTWAIN_GetCurrentFileName");
        bindFunction(cast(void**)&DTWAIN_GetCurrentFileNameA, "DTWAIN_GetCurrentFileNameA");
        bindFunction(cast(void**)&DTWAIN_GetCurrentFileNameW, "DTWAIN_GetCurrentFileNameW");
        bindFunction(cast(void**)&DTWAIN_GetCurrentPageNum, "DTWAIN_GetCurrentPageNum");
        bindFunction(cast(void**)&DTWAIN_GetCurrentRetryCount, "DTWAIN_GetCurrentRetryCount");
        bindFunction(cast(void**)&DTWAIN_GetCurrentTwainTriplet, "DTWAIN_GetCurrentTwainTriplet");
        bindFunction(cast(void**)&DTWAIN_GetCustomDSData, "DTWAIN_GetCustomDSData");
        bindFunction(cast(void**)&DTWAIN_GetDSMFullName, "DTWAIN_GetDSMFullName");
        bindFunction(cast(void**)&DTWAIN_GetDSMFullNameA, "DTWAIN_GetDSMFullNameA");
        bindFunction(cast(void**)&DTWAIN_GetDSMFullNameW, "DTWAIN_GetDSMFullNameW");
        bindFunction(cast(void**)&DTWAIN_GetDSMSearchOrder, "DTWAIN_GetDSMSearchOrder");
        bindFunction(cast(void**)&DTWAIN_GetDSMSearchOrderEx, "DTWAIN_GetDSMSearchOrderEx");
        bindFunction(cast(void**)&DTWAIN_GetDSMSearchOrderExA, "DTWAIN_GetDSMSearchOrderExA");
        bindFunction(cast(void**)&DTWAIN_GetDSMSearchOrderExW, "DTWAIN_GetDSMSearchOrderExW");
        bindFunction(cast(void**)&DTWAIN_GetDTWAINHandle, "DTWAIN_GetDTWAINHandle");
        bindFunction(cast(void**)&DTWAIN_GetDeviceEvent, "DTWAIN_GetDeviceEvent");
        bindFunction(cast(void**)&DTWAIN_GetDeviceEventEx, "DTWAIN_GetDeviceEventEx");
        bindFunction(cast(void**)&DTWAIN_GetDeviceEventInfo, "DTWAIN_GetDeviceEventInfo");
        bindFunction(cast(void**)&DTWAIN_GetDeviceNotifications, "DTWAIN_GetDeviceNotifications");
        bindFunction(cast(void**)&DTWAIN_GetDeviceTimeDate, "DTWAIN_GetDeviceTimeDate");
        bindFunction(cast(void**)&DTWAIN_GetDeviceTimeDateA, "DTWAIN_GetDeviceTimeDateA");
        bindFunction(cast(void**)&DTWAIN_GetDeviceTimeDateW, "DTWAIN_GetDeviceTimeDateW");
        bindFunction(cast(void**)&DTWAIN_GetDoubleFeedDetectLength, "DTWAIN_GetDoubleFeedDetectLength");
        bindFunction(cast(void**)&DTWAIN_GetDoubleFeedDetectValues, "DTWAIN_GetDoubleFeedDetectValues");
        bindFunction(cast(void**)&DTWAIN_GetDuplexType, "DTWAIN_GetDuplexType");
        bindFunction(cast(void**)&DTWAIN_GetDuplexTypeEx, "DTWAIN_GetDuplexTypeEx");
        bindFunction(cast(void**)&DTWAIN_GetErrorBuffer, "DTWAIN_GetErrorBuffer");
        bindFunction(cast(void**)&DTWAIN_GetErrorBufferThreshold, "DTWAIN_GetErrorBufferThreshold");
        bindFunction(cast(void**)&DTWAIN_GetErrorString, "DTWAIN_GetErrorString");
        bindFunction(cast(void**)&DTWAIN_GetErrorStringA, "DTWAIN_GetErrorStringA");
        bindFunction(cast(void**)&DTWAIN_GetErrorStringW, "DTWAIN_GetErrorStringW");
        bindFunction(cast(void**)&DTWAIN_GetExtCapFromName, "DTWAIN_GetExtCapFromName");
        bindFunction(cast(void**)&DTWAIN_GetExtCapFromNameA, "DTWAIN_GetExtCapFromNameA");
        bindFunction(cast(void**)&DTWAIN_GetExtCapFromNameW, "DTWAIN_GetExtCapFromNameW");
        bindFunction(cast(void**)&DTWAIN_GetExtImageInfo, "DTWAIN_GetExtImageInfo");
        bindFunction(cast(void**)&DTWAIN_GetExtImageInfoData, "DTWAIN_GetExtImageInfoData");
        bindFunction(cast(void**)&DTWAIN_GetExtImageInfoDataEx, "DTWAIN_GetExtImageInfoDataEx");
        bindFunction(cast(void**)&DTWAIN_GetExtImageInfoItem, "DTWAIN_GetExtImageInfoItem");
        bindFunction(cast(void**)&DTWAIN_GetExtImageInfoItemEx, "DTWAIN_GetExtImageInfoItemEx");
        bindFunction(cast(void**)&DTWAIN_GetExtNameFromCap, "DTWAIN_GetExtNameFromCap");
        bindFunction(cast(void**)&DTWAIN_GetExtNameFromCapA, "DTWAIN_GetExtNameFromCapA");
        bindFunction(cast(void**)&DTWAIN_GetExtNameFromCapW, "DTWAIN_GetExtNameFromCapW");
        bindFunction(cast(void**)&DTWAIN_GetFeederAlignment, "DTWAIN_GetFeederAlignment");
        bindFunction(cast(void**)&DTWAIN_GetFeederFuncs, "DTWAIN_GetFeederFuncs");
        bindFunction(cast(void**)&DTWAIN_GetFeederOrder, "DTWAIN_GetFeederOrder");
        bindFunction(cast(void**)&DTWAIN_GetFeederWaitTime, "DTWAIN_GetFeederWaitTime");
        bindFunction(cast(void**)&DTWAIN_GetFileCompressionType, "DTWAIN_GetFileCompressionType");
        bindFunction(cast(void**)&DTWAIN_GetFileSavePageCount, "DTWAIN_GetFileSavePageCount");
        bindFunction(cast(void**)&DTWAIN_GetFileTypeExtensions, "DTWAIN_GetFileTypeExtensions");
        bindFunction(cast(void**)&DTWAIN_GetFileTypeExtensionsA, "DTWAIN_GetFileTypeExtensionsA");
        bindFunction(cast(void**)&DTWAIN_GetFileTypeExtensionsW, "DTWAIN_GetFileTypeExtensionsW");
        bindFunction(cast(void**)&DTWAIN_GetFileTypeName, "DTWAIN_GetFileTypeName");
        bindFunction(cast(void**)&DTWAIN_GetFileTypeNameA, "DTWAIN_GetFileTypeNameA");
        bindFunction(cast(void**)&DTWAIN_GetFileTypeNameW, "DTWAIN_GetFileTypeNameW");
        bindFunction(cast(void**)&DTWAIN_GetHalftone, "DTWAIN_GetHalftone");
        bindFunction(cast(void**)&DTWAIN_GetHalftoneA, "DTWAIN_GetHalftoneA");
        bindFunction(cast(void**)&DTWAIN_GetHalftoneW, "DTWAIN_GetHalftoneW");
        bindFunction(cast(void**)&DTWAIN_GetHighlight, "DTWAIN_GetHighlight");
        bindFunction(cast(void**)&DTWAIN_GetHighlightString, "DTWAIN_GetHighlightString");
        bindFunction(cast(void**)&DTWAIN_GetHighlightStringA, "DTWAIN_GetHighlightStringA");
        bindFunction(cast(void**)&DTWAIN_GetHighlightStringW, "DTWAIN_GetHighlightStringW");
        bindFunction(cast(void**)&DTWAIN_GetImageInfo, "DTWAIN_GetImageInfo");
        bindFunction(cast(void**)&DTWAIN_GetImageInfoString, "DTWAIN_GetImageInfoString");
        bindFunction(cast(void**)&DTWAIN_GetImageInfoStringA, "DTWAIN_GetImageInfoStringA");
        bindFunction(cast(void**)&DTWAIN_GetImageInfoStringW, "DTWAIN_GetImageInfoStringW");
        bindFunction(cast(void**)&DTWAIN_GetJobControl, "DTWAIN_GetJobControl");
        bindFunction(cast(void**)&DTWAIN_GetJobControlEx, "DTWAIN_GetJobControlEx");
        bindFunction(cast(void**)&DTWAIN_GetJpegValues, "DTWAIN_GetJpegValues");
        bindFunction(cast(void**)&DTWAIN_GetJpegXRValues, "DTWAIN_GetJpegXRValues");
        bindFunction(cast(void**)&DTWAIN_GetLanguage, "DTWAIN_GetLanguage");
        bindFunction(cast(void**)&DTWAIN_GetLastError, "DTWAIN_GetLastError");
        bindFunction(cast(void**)&DTWAIN_GetLibraryPath, "DTWAIN_GetLibraryPath");
        bindFunction(cast(void**)&DTWAIN_GetLibraryPathA, "DTWAIN_GetLibraryPathA");
        bindFunction(cast(void**)&DTWAIN_GetLibraryPathW, "DTWAIN_GetLibraryPathW");
        bindFunction(cast(void**)&DTWAIN_GetLightPath, "DTWAIN_GetLightPath");
        bindFunction(cast(void**)&DTWAIN_GetLightPathEx, "DTWAIN_GetLightPathEx");
        bindFunction(cast(void**)&DTWAIN_GetLightSource, "DTWAIN_GetLightSource");
        bindFunction(cast(void**)&DTWAIN_GetLightSources, "DTWAIN_GetLightSources");
        bindFunction(cast(void**)&DTWAIN_GetLightSourcesEx, "DTWAIN_GetLightSourcesEx");
        bindFunction(cast(void**)&DTWAIN_GetManualDuplexCount, "DTWAIN_GetManualDuplexCount");
        bindFunction(cast(void**)&DTWAIN_GetMaxAcquisitions, "DTWAIN_GetMaxAcquisitions");
        bindFunction(cast(void**)&DTWAIN_GetMaxBuffers, "DTWAIN_GetMaxBuffers");
        bindFunction(cast(void**)&DTWAIN_GetMaxPagesToAcquire, "DTWAIN_GetMaxPagesToAcquire");
        bindFunction(cast(void**)&DTWAIN_GetMaxRetryAttempts, "DTWAIN_GetMaxRetryAttempts");
        bindFunction(cast(void**)&DTWAIN_GetNameFromCap, "DTWAIN_GetNameFromCap");
        bindFunction(cast(void**)&DTWAIN_GetNameFromCapA, "DTWAIN_GetNameFromCapA");
        bindFunction(cast(void**)&DTWAIN_GetNameFromCapW, "DTWAIN_GetNameFromCapW");
        bindFunction(cast(void**)&DTWAIN_GetNoiseFilter, "DTWAIN_GetNoiseFilter");
        bindFunction(cast(void**)&DTWAIN_GetNumAcquiredImages, "DTWAIN_GetNumAcquiredImages");
        bindFunction(cast(void**)&DTWAIN_GetNumAcquisitions, "DTWAIN_GetNumAcquisitions");
        bindFunction(cast(void**)&DTWAIN_GetOCRCapValues, "DTWAIN_GetOCRCapValues");
        bindFunction(cast(void**)&DTWAIN_GetOCRErrorString, "DTWAIN_GetOCRErrorString");
        bindFunction(cast(void**)&DTWAIN_GetOCRErrorStringA, "DTWAIN_GetOCRErrorStringA");
        bindFunction(cast(void**)&DTWAIN_GetOCRErrorStringW, "DTWAIN_GetOCRErrorStringW");
        bindFunction(cast(void**)&DTWAIN_GetOCRLastError, "DTWAIN_GetOCRLastError");
        bindFunction(cast(void**)&DTWAIN_GetOCRMajorMinorVersion, "DTWAIN_GetOCRMajorMinorVersion");
        bindFunction(cast(void**)&DTWAIN_GetOCRManufacturer, "DTWAIN_GetOCRManufacturer");
        bindFunction(cast(void**)&DTWAIN_GetOCRManufacturerA, "DTWAIN_GetOCRManufacturerA");
        bindFunction(cast(void**)&DTWAIN_GetOCRManufacturerW, "DTWAIN_GetOCRManufacturerW");
        bindFunction(cast(void**)&DTWAIN_GetOCRProductFamily, "DTWAIN_GetOCRProductFamily");
        bindFunction(cast(void**)&DTWAIN_GetOCRProductFamilyA, "DTWAIN_GetOCRProductFamilyA");
        bindFunction(cast(void**)&DTWAIN_GetOCRProductFamilyW, "DTWAIN_GetOCRProductFamilyW");
        bindFunction(cast(void**)&DTWAIN_GetOCRProductName, "DTWAIN_GetOCRProductName");
        bindFunction(cast(void**)&DTWAIN_GetOCRProductNameA, "DTWAIN_GetOCRProductNameA");
        bindFunction(cast(void**)&DTWAIN_GetOCRProductNameW, "DTWAIN_GetOCRProductNameW");
        bindFunction(cast(void**)&DTWAIN_GetOCRText, "DTWAIN_GetOCRText");
        bindFunction(cast(void**)&DTWAIN_GetOCRTextA, "DTWAIN_GetOCRTextA");
        bindFunction(cast(void**)&DTWAIN_GetOCRTextInfoFloat, "DTWAIN_GetOCRTextInfoFloat");
        bindFunction(cast(void**)&DTWAIN_GetOCRTextInfoFloatEx, "DTWAIN_GetOCRTextInfoFloatEx");
        bindFunction(cast(void**)&DTWAIN_GetOCRTextInfoHandle, "DTWAIN_GetOCRTextInfoHandle");
        bindFunction(cast(void**)&DTWAIN_GetOCRTextInfoLong, "DTWAIN_GetOCRTextInfoLong");
        bindFunction(cast(void**)&DTWAIN_GetOCRTextInfoLongEx, "DTWAIN_GetOCRTextInfoLongEx");
        bindFunction(cast(void**)&DTWAIN_GetOCRTextW, "DTWAIN_GetOCRTextW");
        bindFunction(cast(void**)&DTWAIN_GetOCRVersionInfo, "DTWAIN_GetOCRVersionInfo");
        bindFunction(cast(void**)&DTWAIN_GetOCRVersionInfoA, "DTWAIN_GetOCRVersionInfoA");
        bindFunction(cast(void**)&DTWAIN_GetOCRVersionInfoW, "DTWAIN_GetOCRVersionInfoW");
        bindFunction(cast(void**)&DTWAIN_GetOrientation, "DTWAIN_GetOrientation");
        bindFunction(cast(void**)&DTWAIN_GetOrientationEx, "DTWAIN_GetOrientationEx");
        bindFunction(cast(void**)&DTWAIN_GetOverscan, "DTWAIN_GetOverscan");
        bindFunction(cast(void**)&DTWAIN_GetPDFTextElementFloat, "DTWAIN_GetPDFTextElementFloat");
        bindFunction(cast(void**)&DTWAIN_GetPDFTextElementLong, "DTWAIN_GetPDFTextElementLong");
        bindFunction(cast(void**)&DTWAIN_GetPDFTextElementString, "DTWAIN_GetPDFTextElementString");
        bindFunction(cast(void**)&DTWAIN_GetPDFTextElementStringA, "DTWAIN_GetPDFTextElementStringA");
        bindFunction(cast(void**)&DTWAIN_GetPDFTextElementStringW, "DTWAIN_GetPDFTextElementStringW");
        bindFunction(cast(void**)&DTWAIN_GetPDFType1FontName, "DTWAIN_GetPDFType1FontName");
        bindFunction(cast(void**)&DTWAIN_GetPDFType1FontNameA, "DTWAIN_GetPDFType1FontNameA");
        bindFunction(cast(void**)&DTWAIN_GetPDFType1FontNameW, "DTWAIN_GetPDFType1FontNameW");
        bindFunction(cast(void**)&DTWAIN_GetPaperSize, "DTWAIN_GetPaperSize");
        bindFunction(cast(void**)&DTWAIN_GetPaperSizeName, "DTWAIN_GetPaperSizeName");
        bindFunction(cast(void**)&DTWAIN_GetPaperSizeNameA, "DTWAIN_GetPaperSizeNameA");
        bindFunction(cast(void**)&DTWAIN_GetPaperSizeNameW, "DTWAIN_GetPaperSizeNameW");
        bindFunction(cast(void**)&DTWAIN_GetPatchcodeMaxPriorities, "DTWAIN_GetPatchcodeMaxPriorities");
        bindFunction(cast(void**)&DTWAIN_GetPatchcodeMaxRetries, "DTWAIN_GetPatchcodeMaxRetries");
        bindFunction(cast(void**)&DTWAIN_GetPatchcodePriorities, "DTWAIN_GetPatchcodePriorities");
        bindFunction(cast(void**)&DTWAIN_GetPatchcodeSearchMode, "DTWAIN_GetPatchcodeSearchMode");
        bindFunction(cast(void**)&DTWAIN_GetPatchcodeTimeOut, "DTWAIN_GetPatchcodeTimeOut");
        bindFunction(cast(void**)&DTWAIN_GetPixelFlavor, "DTWAIN_GetPixelFlavor");
        bindFunction(cast(void**)&DTWAIN_GetPixelType, "DTWAIN_GetPixelType");
        bindFunction(cast(void**)&DTWAIN_GetPrinter, "DTWAIN_GetPrinter");
        bindFunction(cast(void**)&DTWAIN_GetPrinterEx, "DTWAIN_GetPrinterEx");
        bindFunction(cast(void**)&DTWAIN_GetPrinterStartNumber, "DTWAIN_GetPrinterStartNumber");
        bindFunction(cast(void**)&DTWAIN_GetPrinterStartNumberEx, "DTWAIN_GetPrinterStartNumberEx");
        bindFunction(cast(void**)&DTWAIN_GetPrinterStringMode, "DTWAIN_GetPrinterStringMode");
        bindFunction(cast(void**)&DTWAIN_GetPrinterStringModeEx, "DTWAIN_GetPrinterStringModeEx");
        bindFunction(cast(void**)&DTWAIN_GetPrinterStrings, "DTWAIN_GetPrinterStrings");
        bindFunction(cast(void**)&DTWAIN_GetPrinterStringsEx, "DTWAIN_GetPrinterStringsEx");
        bindFunction(cast(void**)&DTWAIN_GetPrinterSuffixString, "DTWAIN_GetPrinterSuffixString");
        bindFunction(cast(void**)&DTWAIN_GetPrinterSuffixStringA, "DTWAIN_GetPrinterSuffixStringA");
        bindFunction(cast(void**)&DTWAIN_GetPrinterSuffixStringW, "DTWAIN_GetPrinterSuffixStringW");
        bindFunction(cast(void**)&DTWAIN_GetRegisteredMsg, "DTWAIN_GetRegisteredMsg");
        bindFunction(cast(void**)&DTWAIN_GetResolution, "DTWAIN_GetResolution");
        bindFunction(cast(void**)&DTWAIN_GetResolutionEx, "DTWAIN_GetResolutionEx");
        bindFunction(cast(void**)&DTWAIN_GetResolutionString, "DTWAIN_GetResolutionString");
        bindFunction(cast(void**)&DTWAIN_GetResolutionStringA, "DTWAIN_GetResolutionStringA");
        bindFunction(cast(void**)&DTWAIN_GetResolutionStringW, "DTWAIN_GetResolutionStringW");
        bindFunction(cast(void**)&DTWAIN_GetResourceString, "DTWAIN_GetResourceString");
        bindFunction(cast(void**)&DTWAIN_GetResourceStringA, "DTWAIN_GetResourceStringA");
        bindFunction(cast(void**)&DTWAIN_GetResourceStringW, "DTWAIN_GetResourceStringW");
        bindFunction(cast(void**)&DTWAIN_GetRotation, "DTWAIN_GetRotation");
        bindFunction(cast(void**)&DTWAIN_GetRotationEx, "DTWAIN_GetRotationEx");
        bindFunction(cast(void**)&DTWAIN_GetRotationString, "DTWAIN_GetRotationString");
        bindFunction(cast(void**)&DTWAIN_GetRotationStringA, "DTWAIN_GetRotationStringA");
        bindFunction(cast(void**)&DTWAIN_GetRotationStringW, "DTWAIN_GetRotationStringW");
        bindFunction(cast(void**)&DTWAIN_GetSaveFileName, "DTWAIN_GetSaveFileName");
        bindFunction(cast(void**)&DTWAIN_GetSaveFileNameA, "DTWAIN_GetSaveFileNameA");
        bindFunction(cast(void**)&DTWAIN_GetSaveFileNameW, "DTWAIN_GetSaveFileNameW");
        bindFunction(cast(void**)&DTWAIN_GetSessionDetails, "DTWAIN_GetSessionDetails");
        bindFunction(cast(void**)&DTWAIN_GetSessionDetailsA, "DTWAIN_GetSessionDetailsA");
        bindFunction(cast(void**)&DTWAIN_GetSessionDetailsW, "DTWAIN_GetSessionDetailsW");
        bindFunction(cast(void**)&DTWAIN_GetShadow, "DTWAIN_GetShadow");
        bindFunction(cast(void**)&DTWAIN_GetShadowString, "DTWAIN_GetShadowString");
        bindFunction(cast(void**)&DTWAIN_GetShadowStringA, "DTWAIN_GetShadowStringA");
        bindFunction(cast(void**)&DTWAIN_GetShadowStringW, "DTWAIN_GetShadowStringW");
        bindFunction(cast(void**)&DTWAIN_GetShortVersionString, "DTWAIN_GetShortVersionString");
        bindFunction(cast(void**)&DTWAIN_GetShortVersionStringA, "DTWAIN_GetShortVersionStringA");
        bindFunction(cast(void**)&DTWAIN_GetShortVersionStringW, "DTWAIN_GetShortVersionStringW");
        bindFunction(cast(void**)&DTWAIN_GetSourceAcquisitions, "DTWAIN_GetSourceAcquisitions");
        bindFunction(cast(void**)&DTWAIN_GetSourceDetails, "DTWAIN_GetSourceDetails");
        bindFunction(cast(void**)&DTWAIN_GetSourceDetailsA, "DTWAIN_GetSourceDetailsA");
        bindFunction(cast(void**)&DTWAIN_GetSourceDetailsW, "DTWAIN_GetSourceDetailsW");
        bindFunction(cast(void**)&DTWAIN_GetSourceID, "DTWAIN_GetSourceID");
        bindFunction(cast(void**)&DTWAIN_GetSourceIDEx, "DTWAIN_GetSourceIDEx");
        bindFunction(cast(void**)&DTWAIN_GetSourceManufacturer, "DTWAIN_GetSourceManufacturer");
        bindFunction(cast(void**)&DTWAIN_GetSourceManufacturerA, "DTWAIN_GetSourceManufacturerA");
        bindFunction(cast(void**)&DTWAIN_GetSourceManufacturerW, "DTWAIN_GetSourceManufacturerW");
        bindFunction(cast(void**)&DTWAIN_GetSourceProductFamily, "DTWAIN_GetSourceProductFamily");
        bindFunction(cast(void**)&DTWAIN_GetSourceProductFamilyA, "DTWAIN_GetSourceProductFamilyA");
        bindFunction(cast(void**)&DTWAIN_GetSourceProductFamilyW, "DTWAIN_GetSourceProductFamilyW");
        bindFunction(cast(void**)&DTWAIN_GetSourceProductName, "DTWAIN_GetSourceProductName");
        bindFunction(cast(void**)&DTWAIN_GetSourceProductNameA, "DTWAIN_GetSourceProductNameA");
        bindFunction(cast(void**)&DTWAIN_GetSourceProductNameW, "DTWAIN_GetSourceProductNameW");
        bindFunction(cast(void**)&DTWAIN_GetSourceUnit, "DTWAIN_GetSourceUnit");
        bindFunction(cast(void**)&DTWAIN_GetSourceUnitEx, "DTWAIN_GetSourceUnitEx");
        bindFunction(cast(void**)&DTWAIN_GetSourceVersionInfo, "DTWAIN_GetSourceVersionInfo");
        bindFunction(cast(void**)&DTWAIN_GetSourceVersionInfoA, "DTWAIN_GetSourceVersionInfoA");
        bindFunction(cast(void**)&DTWAIN_GetSourceVersionInfoW, "DTWAIN_GetSourceVersionInfoW");
        bindFunction(cast(void**)&DTWAIN_GetSourceVersionNumber, "DTWAIN_GetSourceVersionNumber");
        bindFunction(cast(void**)&DTWAIN_GetStaticLibVersion, "DTWAIN_GetStaticLibVersion");
        bindFunction(cast(void**)&DTWAIN_GetTempFileDirectory, "DTWAIN_GetTempFileDirectory");
        bindFunction(cast(void**)&DTWAIN_GetTempFileDirectoryA, "DTWAIN_GetTempFileDirectoryA");
        bindFunction(cast(void**)&DTWAIN_GetTempFileDirectoryW, "DTWAIN_GetTempFileDirectoryW");
        bindFunction(cast(void**)&DTWAIN_GetThreshold, "DTWAIN_GetThreshold");
        bindFunction(cast(void**)&DTWAIN_GetThresholdString, "DTWAIN_GetThresholdString");
        bindFunction(cast(void**)&DTWAIN_GetThresholdStringA, "DTWAIN_GetThresholdStringA");
        bindFunction(cast(void**)&DTWAIN_GetThresholdStringW, "DTWAIN_GetThresholdStringW");
        bindFunction(cast(void**)&DTWAIN_GetTimeDate, "DTWAIN_GetTimeDate");
        bindFunction(cast(void**)&DTWAIN_GetTimeDateA, "DTWAIN_GetTimeDateA");
        bindFunction(cast(void**)&DTWAIN_GetTimeDateW, "DTWAIN_GetTimeDateW");
        bindFunction(cast(void**)&DTWAIN_GetTwainAppID, "DTWAIN_GetTwainAppID");
        bindFunction(cast(void**)&DTWAIN_GetTwainAppIDEx, "DTWAIN_GetTwainAppIDEx");
        bindFunction(cast(void**)&DTWAIN_GetTwainAvailability, "DTWAIN_GetTwainAvailability");
        bindFunction(cast(void**)&DTWAIN_GetTwainAvailabilityEx, "DTWAIN_GetTwainAvailabilityEx");
        bindFunction(cast(void**)&DTWAIN_GetTwainAvailabilityExA, "DTWAIN_GetTwainAvailabilityExA");
        bindFunction(cast(void**)&DTWAIN_GetTwainAvailabilityExW, "DTWAIN_GetTwainAvailabilityExW");
        bindFunction(cast(void**)&DTWAIN_GetTwainHwnd, "DTWAIN_GetTwainHwnd");
        bindFunction(cast(void**)&DTWAIN_GetTwainMode, "DTWAIN_GetTwainMode");
        bindFunction(cast(void**)&DTWAIN_GetTwainNameFromConstant, "DTWAIN_GetTwainNameFromConstant");
        bindFunction(cast(void**)&DTWAIN_GetTwainNameFromConstantA, "DTWAIN_GetTwainNameFromConstantA");
        bindFunction(cast(void**)&DTWAIN_GetTwainNameFromConstantEx, "DTWAIN_GetTwainNameFromConstantEx");
        bindFunction(cast(void**)&DTWAIN_GetTwainNameFromConstantExA, "DTWAIN_GetTwainNameFromConstantExA");
        bindFunction(cast(void**)&DTWAIN_GetTwainNameFromConstantExW, "DTWAIN_GetTwainNameFromConstantExW");
        bindFunction(cast(void**)&DTWAIN_GetTwainNameFromConstantW, "DTWAIN_GetTwainNameFromConstantW");
        bindFunction(cast(void**)&DTWAIN_GetTwainTimeout, "DTWAIN_GetTwainTimeout");
        bindFunction(cast(void**)&DTWAIN_GetVersion, "DTWAIN_GetVersion");
        bindFunction(cast(void**)&DTWAIN_GetVersionCopyright, "DTWAIN_GetVersionCopyright");
        bindFunction(cast(void**)&DTWAIN_GetVersionCopyrightA, "DTWAIN_GetVersionCopyrightA");
        bindFunction(cast(void**)&DTWAIN_GetVersionCopyrightW, "DTWAIN_GetVersionCopyrightW");
        bindFunction(cast(void**)&DTWAIN_GetVersionEx, "DTWAIN_GetVersionEx");
        bindFunction(cast(void**)&DTWAIN_GetVersionInfo, "DTWAIN_GetVersionInfo");
        bindFunction(cast(void**)&DTWAIN_GetVersionInfoA, "DTWAIN_GetVersionInfoA");
        bindFunction(cast(void**)&DTWAIN_GetVersionInfoW, "DTWAIN_GetVersionInfoW");
        bindFunction(cast(void**)&DTWAIN_GetVersionString, "DTWAIN_GetVersionString");
        bindFunction(cast(void**)&DTWAIN_GetVersionStringA, "DTWAIN_GetVersionStringA");
        bindFunction(cast(void**)&DTWAIN_GetVersionStringW, "DTWAIN_GetVersionStringW");
        bindFunction(cast(void**)&DTWAIN_GetWindowsVersionInfo, "DTWAIN_GetWindowsVersionInfo");
        bindFunction(cast(void**)&DTWAIN_GetWindowsVersionInfoA, "DTWAIN_GetWindowsVersionInfoA");
        bindFunction(cast(void**)&DTWAIN_GetWindowsVersionInfoW, "DTWAIN_GetWindowsVersionInfoW");
        bindFunction(cast(void**)&DTWAIN_GetXResolution, "DTWAIN_GetXResolution");
        bindFunction(cast(void**)&DTWAIN_GetXResolutionString, "DTWAIN_GetXResolutionString");
        bindFunction(cast(void**)&DTWAIN_GetXResolutionStringA, "DTWAIN_GetXResolutionStringA");
        bindFunction(cast(void**)&DTWAIN_GetXResolutionStringW, "DTWAIN_GetXResolutionStringW");
        bindFunction(cast(void**)&DTWAIN_GetYResolution, "DTWAIN_GetYResolution");
        bindFunction(cast(void**)&DTWAIN_GetYResolutionString, "DTWAIN_GetYResolutionString");
        bindFunction(cast(void**)&DTWAIN_GetYResolutionStringA, "DTWAIN_GetYResolutionStringA");
        bindFunction(cast(void**)&DTWAIN_GetYResolutionStringW, "DTWAIN_GetYResolutionStringW");
        bindFunction(cast(void**)&DTWAIN_InitExtImageInfo, "DTWAIN_InitExtImageInfo");
        bindFunction(cast(void**)&DTWAIN_InitImageFileAppend, "DTWAIN_InitImageFileAppend");
        bindFunction(cast(void**)&DTWAIN_InitImageFileAppendA, "DTWAIN_InitImageFileAppendA");
        bindFunction(cast(void**)&DTWAIN_InitImageFileAppendW, "DTWAIN_InitImageFileAppendW");
        bindFunction(cast(void**)&DTWAIN_InitOCRInterface, "DTWAIN_InitOCRInterface");
        bindFunction(cast(void**)&DTWAIN_IsAcquiring, "DTWAIN_IsAcquiring");
        bindFunction(cast(void**)&DTWAIN_IsAudioXferSupported, "DTWAIN_IsAudioXferSupported");
        bindFunction(cast(void**)&DTWAIN_IsAutoBorderDetectEnabled, "DTWAIN_IsAutoBorderDetectEnabled");
        bindFunction(cast(void**)&DTWAIN_IsAutoBorderDetectSupported, "DTWAIN_IsAutoBorderDetectSupported");
        bindFunction(cast(void**)&DTWAIN_IsAutoBrightEnabled, "DTWAIN_IsAutoBrightEnabled");
        bindFunction(cast(void**)&DTWAIN_IsAutoBrightSupported, "DTWAIN_IsAutoBrightSupported");
        bindFunction(cast(void**)&DTWAIN_IsAutoDeskewEnabled, "DTWAIN_IsAutoDeskewEnabled");
        bindFunction(cast(void**)&DTWAIN_IsAutoDeskewSupported, "DTWAIN_IsAutoDeskewSupported");
        bindFunction(cast(void**)&DTWAIN_IsAutoFeedEnabled, "DTWAIN_IsAutoFeedEnabled");
        bindFunction(cast(void**)&DTWAIN_IsAutoFeedSupported, "DTWAIN_IsAutoFeedSupported");
        bindFunction(cast(void**)&DTWAIN_IsAutoRotateEnabled, "DTWAIN_IsAutoRotateEnabled");
        bindFunction(cast(void**)&DTWAIN_IsAutoRotateSupported, "DTWAIN_IsAutoRotateSupported");
        bindFunction(cast(void**)&DTWAIN_IsAutoScanEnabled, "DTWAIN_IsAutoScanEnabled");
        bindFunction(cast(void**)&DTWAIN_IsAutomaticSenseMediumEnabled, "DTWAIN_IsAutomaticSenseMediumEnabled");
        bindFunction(cast(void**)&DTWAIN_IsAutomaticSenseMediumSupported, "DTWAIN_IsAutomaticSenseMediumSupported");
        bindFunction(cast(void**)&DTWAIN_IsBarcodeCapsSupported, "DTWAIN_IsBarcodeCapsSupported");
        bindFunction(cast(void**)&DTWAIN_IsBarcodeDetectionEnabled, "DTWAIN_IsBarcodeDetectionEnabled");
        bindFunction(cast(void**)&DTWAIN_IsBarcodeSupported, "DTWAIN_IsBarcodeSupported");
        bindFunction(cast(void**)&DTWAIN_IsBlankPageDetectionOn, "DTWAIN_IsBlankPageDetectionOn");
        bindFunction(cast(void**)&DTWAIN_IsBufferedTileModeOn, "DTWAIN_IsBufferedTileModeOn");
        bindFunction(cast(void**)&DTWAIN_IsBufferedTileModeSupported, "DTWAIN_IsBufferedTileModeSupported");
        bindFunction(cast(void**)&DTWAIN_IsCapSupported, "DTWAIN_IsCapSupported");
        bindFunction(cast(void**)&DTWAIN_IsCompressionSupported, "DTWAIN_IsCompressionSupported");
        bindFunction(cast(void**)&DTWAIN_IsCustomDSDataSupported, "DTWAIN_IsCustomDSDataSupported");
        bindFunction(cast(void**)&DTWAIN_IsDIBBlank, "DTWAIN_IsDIBBlank");
        bindFunction(cast(void**)&DTWAIN_IsDIBBlankString, "DTWAIN_IsDIBBlankString");
        bindFunction(cast(void**)&DTWAIN_IsDIBBlankStringA, "DTWAIN_IsDIBBlankStringA");
        bindFunction(cast(void**)&DTWAIN_IsDIBBlankStringW, "DTWAIN_IsDIBBlankStringW");
        bindFunction(cast(void**)&DTWAIN_IsDeviceEventSupported, "DTWAIN_IsDeviceEventSupported");
        bindFunction(cast(void**)&DTWAIN_IsDeviceOnLine, "DTWAIN_IsDeviceOnLine");
        bindFunction(cast(void**)&DTWAIN_IsDoubleFeedDetectLengthSupported, "DTWAIN_IsDoubleFeedDetectLengthSupported");
        bindFunction(cast(void**)&DTWAIN_IsDoubleFeedDetectSupported, "DTWAIN_IsDoubleFeedDetectSupported");
        bindFunction(cast(void**)&DTWAIN_IsDoublePageCountOnDuplex, "DTWAIN_IsDoublePageCountOnDuplex");
        bindFunction(cast(void**)&DTWAIN_IsDuplexEnabled, "DTWAIN_IsDuplexEnabled");
        bindFunction(cast(void**)&DTWAIN_IsDuplexSupported, "DTWAIN_IsDuplexSupported");
        bindFunction(cast(void**)&DTWAIN_IsExtImageInfoSupported, "DTWAIN_IsExtImageInfoSupported");
        bindFunction(cast(void**)&DTWAIN_IsFeederEnabled, "DTWAIN_IsFeederEnabled");
        bindFunction(cast(void**)&DTWAIN_IsFeederLoaded, "DTWAIN_IsFeederLoaded");
        bindFunction(cast(void**)&DTWAIN_IsFeederSensitive, "DTWAIN_IsFeederSensitive");
        bindFunction(cast(void**)&DTWAIN_IsFeederSupported, "DTWAIN_IsFeederSupported");
        bindFunction(cast(void**)&DTWAIN_IsFileSystemSupported, "DTWAIN_IsFileSystemSupported");
        bindFunction(cast(void**)&DTWAIN_IsFileXferSupported, "DTWAIN_IsFileXferSupported");
        bindFunction(cast(void**)&DTWAIN_IsGetMessageLoopDetectionOn, "DTWAIN_IsGetMessageLoopDetectionOn");
        bindFunction(cast(void**)&DTWAIN_IsGetMessageLoopEnabled, "DTWAIN_IsGetMessageLoopEnabled");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldALastPageSupported, "DTWAIN_IsIAFieldALastPageSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldALevelSupported, "DTWAIN_IsIAFieldALevelSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldAPrintFormatSupported, "DTWAIN_IsIAFieldAPrintFormatSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldAValueSupported, "DTWAIN_IsIAFieldAValueSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldBLastPageSupported, "DTWAIN_IsIAFieldBLastPageSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldBLevelSupported, "DTWAIN_IsIAFieldBLevelSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldBPrintFormatSupported, "DTWAIN_IsIAFieldBPrintFormatSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldBValueSupported, "DTWAIN_IsIAFieldBValueSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldCLastPageSupported, "DTWAIN_IsIAFieldCLastPageSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldCLevelSupported, "DTWAIN_IsIAFieldCLevelSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldCPrintFormatSupported, "DTWAIN_IsIAFieldCPrintFormatSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldCValueSupported, "DTWAIN_IsIAFieldCValueSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldDLastPageSupported, "DTWAIN_IsIAFieldDLastPageSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldDLevelSupported, "DTWAIN_IsIAFieldDLevelSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldDPrintFormatSupported, "DTWAIN_IsIAFieldDPrintFormatSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldDValueSupported, "DTWAIN_IsIAFieldDValueSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldELastPageSupported, "DTWAIN_IsIAFieldELastPageSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldELevelSupported, "DTWAIN_IsIAFieldELevelSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldEPrintFormatSupported, "DTWAIN_IsIAFieldEPrintFormatSupported");
        bindFunction(cast(void**)&DTWAIN_IsIAFieldEValueSupported, "DTWAIN_IsIAFieldEValueSupported");
        bindFunction(cast(void**)&DTWAIN_IsImageAddressingSupported, "DTWAIN_IsImageAddressingSupported");
        bindFunction(cast(void**)&DTWAIN_IsIndicatorEnabled, "DTWAIN_IsIndicatorEnabled");
        bindFunction(cast(void**)&DTWAIN_IsIndicatorSupported, "DTWAIN_IsIndicatorSupported");
        bindFunction(cast(void**)&DTWAIN_IsInitialized, "DTWAIN_IsInitialized");
        bindFunction(cast(void**)&DTWAIN_IsJobControlSupported, "DTWAIN_IsJobControlSupported");
        bindFunction(cast(void**)&DTWAIN_IsLampEnabled, "DTWAIN_IsLampEnabled");
        bindFunction(cast(void**)&DTWAIN_IsLampSupported, "DTWAIN_IsLampSupported");
        bindFunction(cast(void**)&DTWAIN_IsLightPathSupported, "DTWAIN_IsLightPathSupported");
        bindFunction(cast(void**)&DTWAIN_IsLightSourceSupported, "DTWAIN_IsLightSourceSupported");
        bindFunction(cast(void**)&DTWAIN_IsMaxBuffersSupported, "DTWAIN_IsMaxBuffersSupported");
        bindFunction(cast(void**)&DTWAIN_IsMemFileXferSupported, "DTWAIN_IsMemFileXferSupported");
        bindFunction(cast(void**)&DTWAIN_IsMsgNotifyEnabled, "DTWAIN_IsMsgNotifyEnabled");
        bindFunction(cast(void**)&DTWAIN_IsNotifyTripletsEnabled, "DTWAIN_IsNotifyTripletsEnabled");
        bindFunction(cast(void**)&DTWAIN_IsOCREngineActivated, "DTWAIN_IsOCREngineActivated");
        bindFunction(cast(void**)&DTWAIN_IsOpenSourcesOnSelect, "DTWAIN_IsOpenSourcesOnSelect");
        bindFunction(cast(void**)&DTWAIN_IsOrientationSupported, "DTWAIN_IsOrientationSupported");
        bindFunction(cast(void**)&DTWAIN_IsOverscanSupported, "DTWAIN_IsOverscanSupported");
        bindFunction(cast(void**)&DTWAIN_IsPaperDetectable, "DTWAIN_IsPaperDetectable");
        bindFunction(cast(void**)&DTWAIN_IsPaperSizeSupported, "DTWAIN_IsPaperSizeSupported");
        bindFunction(cast(void**)&DTWAIN_IsPatchcodeCapsSupported, "DTWAIN_IsPatchcodeCapsSupported");
        bindFunction(cast(void**)&DTWAIN_IsPatchcodeDetectionEnabled, "DTWAIN_IsPatchcodeDetectionEnabled");
        bindFunction(cast(void**)&DTWAIN_IsPatchcodeSupported, "DTWAIN_IsPatchcodeSupported");
        bindFunction(cast(void**)&DTWAIN_IsPeekMessageLoopEnabled, "DTWAIN_IsPeekMessageLoopEnabled");
        bindFunction(cast(void**)&DTWAIN_IsPixelTypeSupported, "DTWAIN_IsPixelTypeSupported");
        bindFunction(cast(void**)&DTWAIN_IsPrinterEnabled, "DTWAIN_IsPrinterEnabled");
        bindFunction(cast(void**)&DTWAIN_IsPrinterSupported, "DTWAIN_IsPrinterSupported");
        bindFunction(cast(void**)&DTWAIN_IsRotationSupported, "DTWAIN_IsRotationSupported");
        bindFunction(cast(void**)&DTWAIN_IsSessionEnabled, "DTWAIN_IsSessionEnabled");
        bindFunction(cast(void**)&DTWAIN_IsSkipImageInfoError, "DTWAIN_IsSkipImageInfoError");
        bindFunction(cast(void**)&DTWAIN_IsSourceAcquiring, "DTWAIN_IsSourceAcquiring");
        bindFunction(cast(void**)&DTWAIN_IsSourceAcquiringEx, "DTWAIN_IsSourceAcquiringEx");
        bindFunction(cast(void**)&DTWAIN_IsSourceInUIOnlyMode, "DTWAIN_IsSourceInUIOnlyMode");
        bindFunction(cast(void**)&DTWAIN_IsSourceOpen, "DTWAIN_IsSourceOpen");
        bindFunction(cast(void**)&DTWAIN_IsSourceSelected, "DTWAIN_IsSourceSelected");
        bindFunction(cast(void**)&DTWAIN_IsSourceValid, "DTWAIN_IsSourceValid");
        bindFunction(cast(void**)&DTWAIN_IsThumbnailEnabled, "DTWAIN_IsThumbnailEnabled");
        bindFunction(cast(void**)&DTWAIN_IsThumbnailSupported, "DTWAIN_IsThumbnailSupported");
        bindFunction(cast(void**)&DTWAIN_IsTwainAvailable, "DTWAIN_IsTwainAvailable");
        bindFunction(cast(void**)&DTWAIN_IsTwainAvailableEx, "DTWAIN_IsTwainAvailableEx");
        bindFunction(cast(void**)&DTWAIN_IsTwainAvailableExA, "DTWAIN_IsTwainAvailableExA");
        bindFunction(cast(void**)&DTWAIN_IsTwainAvailableExW, "DTWAIN_IsTwainAvailableExW");
        bindFunction(cast(void**)&DTWAIN_IsTwainMsg, "DTWAIN_IsTwainMsg");
        bindFunction(cast(void**)&DTWAIN_IsUIControllable, "DTWAIN_IsUIControllable");
        bindFunction(cast(void**)&DTWAIN_IsUIEnabled, "DTWAIN_IsUIEnabled");
        bindFunction(cast(void**)&DTWAIN_IsUIOnlySupported, "DTWAIN_IsUIOnlySupported");
        bindFunction(cast(void**)&DTWAIN_LoadCustomStringResources, "DTWAIN_LoadCustomStringResources");
        bindFunction(cast(void**)&DTWAIN_LoadCustomStringResourcesA, "DTWAIN_LoadCustomStringResourcesA");
        bindFunction(cast(void**)&DTWAIN_LoadCustomStringResourcesEx, "DTWAIN_LoadCustomStringResourcesEx");
        bindFunction(cast(void**)&DTWAIN_LoadCustomStringResourcesExA, "DTWAIN_LoadCustomStringResourcesExA");
        bindFunction(cast(void**)&DTWAIN_LoadCustomStringResourcesExW, "DTWAIN_LoadCustomStringResourcesExW");
        bindFunction(cast(void**)&DTWAIN_LoadCustomStringResourcesW, "DTWAIN_LoadCustomStringResourcesW");
        bindFunction(cast(void**)&DTWAIN_LoadLanguageResource, "DTWAIN_LoadLanguageResource");
        bindFunction(cast(void**)&DTWAIN_LockMemory, "DTWAIN_LockMemory");
        bindFunction(cast(void**)&DTWAIN_LockMemoryEx, "DTWAIN_LockMemoryEx");
        bindFunction(cast(void**)&DTWAIN_LogMessage, "DTWAIN_LogMessage");
        bindFunction(cast(void**)&DTWAIN_LogMessageA, "DTWAIN_LogMessageA");
        bindFunction(cast(void**)&DTWAIN_LogMessageW, "DTWAIN_LogMessageW");
        bindFunction(cast(void**)&DTWAIN_MakeRGB, "DTWAIN_MakeRGB");
        bindFunction(cast(void**)&DTWAIN_OpenSource, "DTWAIN_OpenSource");
        bindFunction(cast(void**)&DTWAIN_OpenSourcesOnSelect, "DTWAIN_OpenSourcesOnSelect");
        bindFunction(cast(void**)&DTWAIN_RangeCreate, "DTWAIN_RangeCreate");
        bindFunction(cast(void**)&DTWAIN_RangeCreateFromCap, "DTWAIN_RangeCreateFromCap");
        bindFunction(cast(void**)&DTWAIN_RangeDestroy, "DTWAIN_RangeDestroy");
        bindFunction(cast(void**)&DTWAIN_RangeExpand, "DTWAIN_RangeExpand");
        bindFunction(cast(void**)&DTWAIN_RangeExpandEx, "DTWAIN_RangeExpandEx");
        bindFunction(cast(void**)&DTWAIN_RangeGetAll, "DTWAIN_RangeGetAll");
        bindFunction(cast(void**)&DTWAIN_RangeGetAllFloat, "DTWAIN_RangeGetAllFloat");
        bindFunction(cast(void**)&DTWAIN_RangeGetAllFloatString, "DTWAIN_RangeGetAllFloatString");
        bindFunction(cast(void**)&DTWAIN_RangeGetAllFloatStringA, "DTWAIN_RangeGetAllFloatStringA");
        bindFunction(cast(void**)&DTWAIN_RangeGetAllFloatStringW, "DTWAIN_RangeGetAllFloatStringW");
        bindFunction(cast(void**)&DTWAIN_RangeGetAllLong, "DTWAIN_RangeGetAllLong");
        bindFunction(cast(void**)&DTWAIN_RangeGetCount, "DTWAIN_RangeGetCount");
        bindFunction(cast(void**)&DTWAIN_RangeGetExpValue, "DTWAIN_RangeGetExpValue");
        bindFunction(cast(void**)&DTWAIN_RangeGetExpValueFloat, "DTWAIN_RangeGetExpValueFloat");
        bindFunction(cast(void**)&DTWAIN_RangeGetExpValueFloatString, "DTWAIN_RangeGetExpValueFloatString");
        bindFunction(cast(void**)&DTWAIN_RangeGetExpValueFloatStringA, "DTWAIN_RangeGetExpValueFloatStringA");
        bindFunction(cast(void**)&DTWAIN_RangeGetExpValueFloatStringW, "DTWAIN_RangeGetExpValueFloatStringW");
        bindFunction(cast(void**)&DTWAIN_RangeGetExpValueLong, "DTWAIN_RangeGetExpValueLong");
        bindFunction(cast(void**)&DTWAIN_RangeGetNearestValue, "DTWAIN_RangeGetNearestValue");
        bindFunction(cast(void**)&DTWAIN_RangeGetNearestValueFloat, "DTWAIN_RangeGetNearestValueFloat");
        bindFunction(cast(void**)&DTWAIN_RangeGetNearestValueFloatString, "DTWAIN_RangeGetNearestValueFloatString");
        bindFunction(cast(void**)&DTWAIN_RangeGetNearestValueFloatStringA, "DTWAIN_RangeGetNearestValueFloatStringA");
        bindFunction(cast(void**)&DTWAIN_RangeGetNearestValueFloatStringW, "DTWAIN_RangeGetNearestValueFloatStringW");
        bindFunction(cast(void**)&DTWAIN_RangeGetNearestValueLong, "DTWAIN_RangeGetNearestValueLong");
        bindFunction(cast(void**)&DTWAIN_RangeGetPos, "DTWAIN_RangeGetPos");
        bindFunction(cast(void**)&DTWAIN_RangeGetPosFloat, "DTWAIN_RangeGetPosFloat");
        bindFunction(cast(void**)&DTWAIN_RangeGetPosFloatString, "DTWAIN_RangeGetPosFloatString");
        bindFunction(cast(void**)&DTWAIN_RangeGetPosFloatStringA, "DTWAIN_RangeGetPosFloatStringA");
        bindFunction(cast(void**)&DTWAIN_RangeGetPosFloatStringW, "DTWAIN_RangeGetPosFloatStringW");
        bindFunction(cast(void**)&DTWAIN_RangeGetPosLong, "DTWAIN_RangeGetPosLong");
        bindFunction(cast(void**)&DTWAIN_RangeGetValue, "DTWAIN_RangeGetValue");
        bindFunction(cast(void**)&DTWAIN_RangeGetValueFloat, "DTWAIN_RangeGetValueFloat");
        bindFunction(cast(void**)&DTWAIN_RangeGetValueFloatString, "DTWAIN_RangeGetValueFloatString");
        bindFunction(cast(void**)&DTWAIN_RangeGetValueFloatStringA, "DTWAIN_RangeGetValueFloatStringA");
        bindFunction(cast(void**)&DTWAIN_RangeGetValueFloatStringW, "DTWAIN_RangeGetValueFloatStringW");
        bindFunction(cast(void**)&DTWAIN_RangeGetValueLong, "DTWAIN_RangeGetValueLong");
        bindFunction(cast(void**)&DTWAIN_RangeIsValid, "DTWAIN_RangeIsValid");
        bindFunction(cast(void**)&DTWAIN_RangeSetAll, "DTWAIN_RangeSetAll");
        bindFunction(cast(void**)&DTWAIN_RangeSetAllFloat, "DTWAIN_RangeSetAllFloat");
        bindFunction(cast(void**)&DTWAIN_RangeSetAllFloatString, "DTWAIN_RangeSetAllFloatString");
        bindFunction(cast(void**)&DTWAIN_RangeSetAllFloatStringA, "DTWAIN_RangeSetAllFloatStringA");
        bindFunction(cast(void**)&DTWAIN_RangeSetAllFloatStringW, "DTWAIN_RangeSetAllFloatStringW");
        bindFunction(cast(void**)&DTWAIN_RangeSetAllLong, "DTWAIN_RangeSetAllLong");
        bindFunction(cast(void**)&DTWAIN_RangeSetValue, "DTWAIN_RangeSetValue");
        bindFunction(cast(void**)&DTWAIN_RangeSetValueFloat, "DTWAIN_RangeSetValueFloat");
        bindFunction(cast(void**)&DTWAIN_RangeSetValueFloatString, "DTWAIN_RangeSetValueFloatString");
        bindFunction(cast(void**)&DTWAIN_RangeSetValueFloatStringA, "DTWAIN_RangeSetValueFloatStringA");
        bindFunction(cast(void**)&DTWAIN_RangeSetValueFloatStringW, "DTWAIN_RangeSetValueFloatStringW");
        bindFunction(cast(void**)&DTWAIN_RangeSetValueLong, "DTWAIN_RangeSetValueLong");
        bindFunction(cast(void**)&DTWAIN_RemovePDFTextElement, "DTWAIN_RemovePDFTextElement");
        bindFunction(cast(void**)&DTWAIN_ResetPDFTextElement, "DTWAIN_ResetPDFTextElement");
        bindFunction(cast(void**)&DTWAIN_RewindPage, "DTWAIN_RewindPage");
        bindFunction(cast(void**)&DTWAIN_RotateImage, "DTWAIN_RotateImage");
        bindFunction(cast(void**)&DTWAIN_RotateImageString, "DTWAIN_RotateImageString");
        bindFunction(cast(void**)&DTWAIN_RotateImageStringA, "DTWAIN_RotateImageStringA");
        bindFunction(cast(void**)&DTWAIN_RotateImageStringW, "DTWAIN_RotateImageStringW");
        bindFunction(cast(void**)&DTWAIN_SelectDefaultOCREngine, "DTWAIN_SelectDefaultOCREngine");
        bindFunction(cast(void**)&DTWAIN_SelectDefaultSource, "DTWAIN_SelectDefaultSource");
        bindFunction(cast(void**)&DTWAIN_SelectDefaultSourceWithOpen, "DTWAIN_SelectDefaultSourceWithOpen");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngine, "DTWAIN_SelectOCREngine");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngine2, "DTWAIN_SelectOCREngine2");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngine2A, "DTWAIN_SelectOCREngine2A");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngine2Ex, "DTWAIN_SelectOCREngine2Ex");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngine2ExA, "DTWAIN_SelectOCREngine2ExA");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngine2ExW, "DTWAIN_SelectOCREngine2ExW");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngine2W, "DTWAIN_SelectOCREngine2W");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngineByName, "DTWAIN_SelectOCREngineByName");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngineByNameA, "DTWAIN_SelectOCREngineByNameA");
        bindFunction(cast(void**)&DTWAIN_SelectOCREngineByNameW, "DTWAIN_SelectOCREngineByNameW");
        bindFunction(cast(void**)&DTWAIN_SelectSource, "DTWAIN_SelectSource");
        bindFunction(cast(void**)&DTWAIN_SelectSource2, "DTWAIN_SelectSource2");
        bindFunction(cast(void**)&DTWAIN_SelectSource2A, "DTWAIN_SelectSource2A");
        bindFunction(cast(void**)&DTWAIN_SelectSource2Ex, "DTWAIN_SelectSource2Ex");
        bindFunction(cast(void**)&DTWAIN_SelectSource2ExA, "DTWAIN_SelectSource2ExA");
        bindFunction(cast(void**)&DTWAIN_SelectSource2ExW, "DTWAIN_SelectSource2ExW");
        bindFunction(cast(void**)&DTWAIN_SelectSource2W, "DTWAIN_SelectSource2W");
        bindFunction(cast(void**)&DTWAIN_SelectSourceByName, "DTWAIN_SelectSourceByName");
        bindFunction(cast(void**)&DTWAIN_SelectSourceByNameA, "DTWAIN_SelectSourceByNameA");
        bindFunction(cast(void**)&DTWAIN_SelectSourceByNameW, "DTWAIN_SelectSourceByNameW");
        bindFunction(cast(void**)&DTWAIN_SelectSourceByNameWithOpen, "DTWAIN_SelectSourceByNameWithOpen");
        bindFunction(cast(void**)&DTWAIN_SelectSourceByNameWithOpenA, "DTWAIN_SelectSourceByNameWithOpenA");
        bindFunction(cast(void**)&DTWAIN_SelectSourceByNameWithOpenW, "DTWAIN_SelectSourceByNameWithOpenW");
        bindFunction(cast(void**)&DTWAIN_SelectSourceWithOpen, "DTWAIN_SelectSourceWithOpen");
        bindFunction(cast(void**)&DTWAIN_SetAcquireArea, "DTWAIN_SetAcquireArea");
        bindFunction(cast(void**)&DTWAIN_SetAcquireArea2, "DTWAIN_SetAcquireArea2");
        bindFunction(cast(void**)&DTWAIN_SetAcquireArea2String, "DTWAIN_SetAcquireArea2String");
        bindFunction(cast(void**)&DTWAIN_SetAcquireArea2StringA, "DTWAIN_SetAcquireArea2StringA");
        bindFunction(cast(void**)&DTWAIN_SetAcquireArea2StringW, "DTWAIN_SetAcquireArea2StringW");
        bindFunction(cast(void**)&DTWAIN_SetAcquireImageNegative, "DTWAIN_SetAcquireImageNegative");
        bindFunction(cast(void**)&DTWAIN_SetAcquireImageScale, "DTWAIN_SetAcquireImageScale");
        bindFunction(cast(void**)&DTWAIN_SetAcquireImageScaleString, "DTWAIN_SetAcquireImageScaleString");
        bindFunction(cast(void**)&DTWAIN_SetAcquireImageScaleStringA, "DTWAIN_SetAcquireImageScaleStringA");
        bindFunction(cast(void**)&DTWAIN_SetAcquireImageScaleStringW, "DTWAIN_SetAcquireImageScaleStringW");
        bindFunction(cast(void**)&DTWAIN_SetAcquireStripBuffer, "DTWAIN_SetAcquireStripBuffer");
        bindFunction(cast(void**)&DTWAIN_SetAcquireStripSize, "DTWAIN_SetAcquireStripSize");
        bindFunction(cast(void**)&DTWAIN_SetAlarmVolume, "DTWAIN_SetAlarmVolume");
        bindFunction(cast(void**)&DTWAIN_SetAlarms, "DTWAIN_SetAlarms");
        bindFunction(cast(void**)&DTWAIN_SetAllCapsToDefault, "DTWAIN_SetAllCapsToDefault");
        bindFunction(cast(void**)&DTWAIN_SetAppInfo, "DTWAIN_SetAppInfo");
        bindFunction(cast(void**)&DTWAIN_SetAppInfoA, "DTWAIN_SetAppInfoA");
        bindFunction(cast(void**)&DTWAIN_SetAppInfoW, "DTWAIN_SetAppInfoW");
        bindFunction(cast(void**)&DTWAIN_SetAuthor, "DTWAIN_SetAuthor");
        bindFunction(cast(void**)&DTWAIN_SetAuthorA, "DTWAIN_SetAuthorA");
        bindFunction(cast(void**)&DTWAIN_SetAuthorW, "DTWAIN_SetAuthorW");
        bindFunction(cast(void**)&DTWAIN_SetAvailablePrinters, "DTWAIN_SetAvailablePrinters");
        bindFunction(cast(void**)&DTWAIN_SetAvailablePrintersArray, "DTWAIN_SetAvailablePrintersArray");
        bindFunction(cast(void**)&DTWAIN_SetBarcodeMaxPriorities, "DTWAIN_SetBarcodeMaxPriorities");
        bindFunction(cast(void**)&DTWAIN_SetBarcodeMaxRetries, "DTWAIN_SetBarcodeMaxRetries");
        bindFunction(cast(void**)&DTWAIN_SetBarcodePriorities, "DTWAIN_SetBarcodePriorities");
        bindFunction(cast(void**)&DTWAIN_SetBarcodeSearchMode, "DTWAIN_SetBarcodeSearchMode");
        bindFunction(cast(void**)&DTWAIN_SetBarcodeTimeOut, "DTWAIN_SetBarcodeTimeOut");
        bindFunction(cast(void**)&DTWAIN_SetBitDepth, "DTWAIN_SetBitDepth");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetection, "DTWAIN_SetBlankPageDetection");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetectionEx, "DTWAIN_SetBlankPageDetectionEx");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetectionExString, "DTWAIN_SetBlankPageDetectionExString");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetectionExStringA, "DTWAIN_SetBlankPageDetectionExStringA");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetectionExStringW, "DTWAIN_SetBlankPageDetectionExStringW");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetectionString, "DTWAIN_SetBlankPageDetectionString");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetectionStringA, "DTWAIN_SetBlankPageDetectionStringA");
        bindFunction(cast(void**)&DTWAIN_SetBlankPageDetectionStringW, "DTWAIN_SetBlankPageDetectionStringW");
        bindFunction(cast(void**)&DTWAIN_SetBrightness, "DTWAIN_SetBrightness");
        bindFunction(cast(void**)&DTWAIN_SetBrightnessString, "DTWAIN_SetBrightnessString");
        bindFunction(cast(void**)&DTWAIN_SetBrightnessStringA, "DTWAIN_SetBrightnessStringA");
        bindFunction(cast(void**)&DTWAIN_SetBrightnessStringW, "DTWAIN_SetBrightnessStringW");
        bindFunction(cast(void**)&DTWAIN_SetBufferedTileMode, "DTWAIN_SetBufferedTileMode");
        bindFunction(cast(void**)&DTWAIN_SetCamera, "DTWAIN_SetCamera");
        bindFunction(cast(void**)&DTWAIN_SetCameraA, "DTWAIN_SetCameraA");
        bindFunction(cast(void**)&DTWAIN_SetCameraW, "DTWAIN_SetCameraW");
        bindFunction(cast(void**)&DTWAIN_SetCapValues, "DTWAIN_SetCapValues");
        bindFunction(cast(void**)&DTWAIN_SetCapValuesEx, "DTWAIN_SetCapValuesEx");
        bindFunction(cast(void**)&DTWAIN_SetCapValuesEx2, "DTWAIN_SetCapValuesEx2");
        bindFunction(cast(void**)&DTWAIN_SetCaption, "DTWAIN_SetCaption");
        bindFunction(cast(void**)&DTWAIN_SetCaptionA, "DTWAIN_SetCaptionA");
        bindFunction(cast(void**)&DTWAIN_SetCaptionW, "DTWAIN_SetCaptionW");
        bindFunction(cast(void**)&DTWAIN_SetCompressionType, "DTWAIN_SetCompressionType");
        bindFunction(cast(void**)&DTWAIN_SetContrast, "DTWAIN_SetContrast");
        bindFunction(cast(void**)&DTWAIN_SetContrastString, "DTWAIN_SetContrastString");
        bindFunction(cast(void**)&DTWAIN_SetContrastStringA, "DTWAIN_SetContrastStringA");
        bindFunction(cast(void**)&DTWAIN_SetContrastStringW, "DTWAIN_SetContrastStringW");
        bindFunction(cast(void**)&DTWAIN_SetCountry, "DTWAIN_SetCountry");
        bindFunction(cast(void**)&DTWAIN_SetCurrentRetryCount, "DTWAIN_SetCurrentRetryCount");
        bindFunction(cast(void**)&DTWAIN_SetCustomDSData, "DTWAIN_SetCustomDSData");
        bindFunction(cast(void**)&DTWAIN_SetDSMSearchOrder, "DTWAIN_SetDSMSearchOrder");
        bindFunction(cast(void**)&DTWAIN_SetDSMSearchOrderEx, "DTWAIN_SetDSMSearchOrderEx");
        bindFunction(cast(void**)&DTWAIN_SetDSMSearchOrderExA, "DTWAIN_SetDSMSearchOrderExA");
        bindFunction(cast(void**)&DTWAIN_SetDSMSearchOrderExW, "DTWAIN_SetDSMSearchOrderExW");
        bindFunction(cast(void**)&DTWAIN_SetDefaultSource, "DTWAIN_SetDefaultSource");
        bindFunction(cast(void**)&DTWAIN_SetDeviceNotifications, "DTWAIN_SetDeviceNotifications");
        bindFunction(cast(void**)&DTWAIN_SetDeviceTimeDate, "DTWAIN_SetDeviceTimeDate");
        bindFunction(cast(void**)&DTWAIN_SetDeviceTimeDateA, "DTWAIN_SetDeviceTimeDateA");
        bindFunction(cast(void**)&DTWAIN_SetDeviceTimeDateW, "DTWAIN_SetDeviceTimeDateW");
        bindFunction(cast(void**)&DTWAIN_SetDoubleFeedDetectLength, "DTWAIN_SetDoubleFeedDetectLength");
        bindFunction(cast(void**)&DTWAIN_SetDoubleFeedDetectLengthString, "DTWAIN_SetDoubleFeedDetectLengthString");
        bindFunction(cast(void**)&DTWAIN_SetDoubleFeedDetectLengthStringA, "DTWAIN_SetDoubleFeedDetectLengthStringA");
        bindFunction(cast(void**)&DTWAIN_SetDoubleFeedDetectLengthStringW, "DTWAIN_SetDoubleFeedDetectLengthStringW");
        bindFunction(cast(void**)&DTWAIN_SetDoubleFeedDetectValues, "DTWAIN_SetDoubleFeedDetectValues");
        bindFunction(cast(void**)&DTWAIN_SetDoublePageCountOnDuplex, "DTWAIN_SetDoublePageCountOnDuplex");
        bindFunction(cast(void**)&DTWAIN_SetEOJDetectValue, "DTWAIN_SetEOJDetectValue");
        bindFunction(cast(void**)&DTWAIN_SetErrorBufferThreshold, "DTWAIN_SetErrorBufferThreshold");
        bindFunction(cast(void**)&DTWAIN_SetFeederAlignment, "DTWAIN_SetFeederAlignment");
        bindFunction(cast(void**)&DTWAIN_SetFeederOrder, "DTWAIN_SetFeederOrder");
        bindFunction(cast(void**)&DTWAIN_SetFeederWaitTime, "DTWAIN_SetFeederWaitTime");
        bindFunction(cast(void**)&DTWAIN_SetFileAutoIncrement, "DTWAIN_SetFileAutoIncrement");
        bindFunction(cast(void**)&DTWAIN_SetFileCompressionType, "DTWAIN_SetFileCompressionType");
        bindFunction(cast(void**)&DTWAIN_SetFileSavePos, "DTWAIN_SetFileSavePos");
        bindFunction(cast(void**)&DTWAIN_SetFileSavePosA, "DTWAIN_SetFileSavePosA");
        bindFunction(cast(void**)&DTWAIN_SetFileSavePosW, "DTWAIN_SetFileSavePosW");
        bindFunction(cast(void**)&DTWAIN_SetFileXferFormat, "DTWAIN_SetFileXferFormat");
        bindFunction(cast(void**)&DTWAIN_SetHalftone, "DTWAIN_SetHalftone");
        bindFunction(cast(void**)&DTWAIN_SetHalftoneA, "DTWAIN_SetHalftoneA");
        bindFunction(cast(void**)&DTWAIN_SetHalftoneW, "DTWAIN_SetHalftoneW");
        bindFunction(cast(void**)&DTWAIN_SetHighlight, "DTWAIN_SetHighlight");
        bindFunction(cast(void**)&DTWAIN_SetHighlightString, "DTWAIN_SetHighlightString");
        bindFunction(cast(void**)&DTWAIN_SetHighlightStringA, "DTWAIN_SetHighlightStringA");
        bindFunction(cast(void**)&DTWAIN_SetHighlightStringW, "DTWAIN_SetHighlightStringW");
        bindFunction(cast(void**)&DTWAIN_SetJobControl, "DTWAIN_SetJobControl");
        bindFunction(cast(void**)&DTWAIN_SetJpegValues, "DTWAIN_SetJpegValues");
        bindFunction(cast(void**)&DTWAIN_SetJpegXRValues, "DTWAIN_SetJpegXRValues");
        bindFunction(cast(void**)&DTWAIN_SetLanguage, "DTWAIN_SetLanguage");
        bindFunction(cast(void**)&DTWAIN_SetLastError, "DTWAIN_SetLastError");
        bindFunction(cast(void**)&DTWAIN_SetLightPath, "DTWAIN_SetLightPath");
        bindFunction(cast(void**)&DTWAIN_SetLightPathEx, "DTWAIN_SetLightPathEx");
        bindFunction(cast(void**)&DTWAIN_SetLightSource, "DTWAIN_SetLightSource");
        bindFunction(cast(void**)&DTWAIN_SetLightSources, "DTWAIN_SetLightSources");
        bindFunction(cast(void**)&DTWAIN_SetLogSaveThreshold, "DTWAIN_SetLogSaveThreshold");
        bindFunction(cast(void**)&DTWAIN_SetManualDuplexMode, "DTWAIN_SetManualDuplexMode");
        bindFunction(cast(void**)&DTWAIN_SetMaxAcquisitions, "DTWAIN_SetMaxAcquisitions");
        bindFunction(cast(void**)&DTWAIN_SetMaxBuffers, "DTWAIN_SetMaxBuffers");
        bindFunction(cast(void**)&DTWAIN_SetMaxRetryAttempts, "DTWAIN_SetMaxRetryAttempts");
        bindFunction(cast(void**)&DTWAIN_SetMultipageScanMode, "DTWAIN_SetMultipageScanMode");
        bindFunction(cast(void**)&DTWAIN_SetNoiseFilter, "DTWAIN_SetNoiseFilter");
        bindFunction(cast(void**)&DTWAIN_SetOCRCapValues, "DTWAIN_SetOCRCapValues");
        bindFunction(cast(void**)&DTWAIN_SetOrientation, "DTWAIN_SetOrientation");
        bindFunction(cast(void**)&DTWAIN_SetOverscan, "DTWAIN_SetOverscan");
        bindFunction(cast(void**)&DTWAIN_SetPDFAESEncryption, "DTWAIN_SetPDFAESEncryption");
        bindFunction(cast(void**)&DTWAIN_SetPDFASCIICompression, "DTWAIN_SetPDFASCIICompression");
        bindFunction(cast(void**)&DTWAIN_SetPDFAuthor, "DTWAIN_SetPDFAuthor");
        bindFunction(cast(void**)&DTWAIN_SetPDFAuthorA, "DTWAIN_SetPDFAuthorA");
        bindFunction(cast(void**)&DTWAIN_SetPDFAuthorW, "DTWAIN_SetPDFAuthorW");
        bindFunction(cast(void**)&DTWAIN_SetPDFCompression, "DTWAIN_SetPDFCompression");
        bindFunction(cast(void**)&DTWAIN_SetPDFCreator, "DTWAIN_SetPDFCreator");
        bindFunction(cast(void**)&DTWAIN_SetPDFCreatorA, "DTWAIN_SetPDFCreatorA");
        bindFunction(cast(void**)&DTWAIN_SetPDFCreatorW, "DTWAIN_SetPDFCreatorW");
        bindFunction(cast(void**)&DTWAIN_SetPDFEncryption, "DTWAIN_SetPDFEncryption");
        bindFunction(cast(void**)&DTWAIN_SetPDFEncryptionA, "DTWAIN_SetPDFEncryptionA");
        bindFunction(cast(void**)&DTWAIN_SetPDFEncryptionW, "DTWAIN_SetPDFEncryptionW");
        bindFunction(cast(void**)&DTWAIN_SetPDFJpegQuality, "DTWAIN_SetPDFJpegQuality");
        bindFunction(cast(void**)&DTWAIN_SetPDFKeywords, "DTWAIN_SetPDFKeywords");
        bindFunction(cast(void**)&DTWAIN_SetPDFKeywordsA, "DTWAIN_SetPDFKeywordsA");
        bindFunction(cast(void**)&DTWAIN_SetPDFKeywordsW, "DTWAIN_SetPDFKeywordsW");
        bindFunction(cast(void**)&DTWAIN_SetPDFOCRConversion, "DTWAIN_SetPDFOCRConversion");
        bindFunction(cast(void**)&DTWAIN_SetPDFOCRMode, "DTWAIN_SetPDFOCRMode");
        bindFunction(cast(void**)&DTWAIN_SetPDFOrientation, "DTWAIN_SetPDFOrientation");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageScale, "DTWAIN_SetPDFPageScale");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageScaleString, "DTWAIN_SetPDFPageScaleString");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageScaleStringA, "DTWAIN_SetPDFPageScaleStringA");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageScaleStringW, "DTWAIN_SetPDFPageScaleStringW");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageSize, "DTWAIN_SetPDFPageSize");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageSizeString, "DTWAIN_SetPDFPageSizeString");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageSizeStringA, "DTWAIN_SetPDFPageSizeStringA");
        bindFunction(cast(void**)&DTWAIN_SetPDFPageSizeStringW, "DTWAIN_SetPDFPageSizeStringW");
        bindFunction(cast(void**)&DTWAIN_SetPDFPolarity, "DTWAIN_SetPDFPolarity");
        bindFunction(cast(void**)&DTWAIN_SetPDFProducer, "DTWAIN_SetPDFProducer");
        bindFunction(cast(void**)&DTWAIN_SetPDFProducerA, "DTWAIN_SetPDFProducerA");
        bindFunction(cast(void**)&DTWAIN_SetPDFProducerW, "DTWAIN_SetPDFProducerW");
        bindFunction(cast(void**)&DTWAIN_SetPDFSubject, "DTWAIN_SetPDFSubject");
        bindFunction(cast(void**)&DTWAIN_SetPDFSubjectA, "DTWAIN_SetPDFSubjectA");
        bindFunction(cast(void**)&DTWAIN_SetPDFSubjectW, "DTWAIN_SetPDFSubjectW");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementFloat, "DTWAIN_SetPDFTextElementFloat");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementFloatString, "DTWAIN_SetPDFTextElementFloatString");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementFloatStringA, "DTWAIN_SetPDFTextElementFloatStringA");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementFloatStringW, "DTWAIN_SetPDFTextElementFloatStringW");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementLong, "DTWAIN_SetPDFTextElementLong");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementString, "DTWAIN_SetPDFTextElementString");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementStringA, "DTWAIN_SetPDFTextElementStringA");
        bindFunction(cast(void**)&DTWAIN_SetPDFTextElementStringW, "DTWAIN_SetPDFTextElementStringW");
        bindFunction(cast(void**)&DTWAIN_SetPDFTitle, "DTWAIN_SetPDFTitle");
        bindFunction(cast(void**)&DTWAIN_SetPDFTitleA, "DTWAIN_SetPDFTitleA");
        bindFunction(cast(void**)&DTWAIN_SetPDFTitleW, "DTWAIN_SetPDFTitleW");
        bindFunction(cast(void**)&DTWAIN_SetPaperSize, "DTWAIN_SetPaperSize");
        bindFunction(cast(void**)&DTWAIN_SetPatchcodeMaxPriorities, "DTWAIN_SetPatchcodeMaxPriorities");
        bindFunction(cast(void**)&DTWAIN_SetPatchcodeMaxRetries, "DTWAIN_SetPatchcodeMaxRetries");
        bindFunction(cast(void**)&DTWAIN_SetPatchcodePriorities, "DTWAIN_SetPatchcodePriorities");
        bindFunction(cast(void**)&DTWAIN_SetPatchcodeSearchMode, "DTWAIN_SetPatchcodeSearchMode");
        bindFunction(cast(void**)&DTWAIN_SetPatchcodeTimeOut, "DTWAIN_SetPatchcodeTimeOut");
        bindFunction(cast(void**)&DTWAIN_SetPixelFlavor, "DTWAIN_SetPixelFlavor");
        bindFunction(cast(void**)&DTWAIN_SetPixelType, "DTWAIN_SetPixelType");
        bindFunction(cast(void**)&DTWAIN_SetPostScriptTitle, "DTWAIN_SetPostScriptTitle");
        bindFunction(cast(void**)&DTWAIN_SetPostScriptTitleA, "DTWAIN_SetPostScriptTitleA");
        bindFunction(cast(void**)&DTWAIN_SetPostScriptTitleW, "DTWAIN_SetPostScriptTitleW");
        bindFunction(cast(void**)&DTWAIN_SetPostScriptType, "DTWAIN_SetPostScriptType");
        bindFunction(cast(void**)&DTWAIN_SetPrinter, "DTWAIN_SetPrinter");
        bindFunction(cast(void**)&DTWAIN_SetPrinterEx, "DTWAIN_SetPrinterEx");
        bindFunction(cast(void**)&DTWAIN_SetPrinterStartNumber, "DTWAIN_SetPrinterStartNumber");
        bindFunction(cast(void**)&DTWAIN_SetPrinterStringMode, "DTWAIN_SetPrinterStringMode");
        bindFunction(cast(void**)&DTWAIN_SetPrinterStrings, "DTWAIN_SetPrinterStrings");
        bindFunction(cast(void**)&DTWAIN_SetPrinterSuffixString, "DTWAIN_SetPrinterSuffixString");
        bindFunction(cast(void**)&DTWAIN_SetPrinterSuffixStringA, "DTWAIN_SetPrinterSuffixStringA");
        bindFunction(cast(void**)&DTWAIN_SetPrinterSuffixStringW, "DTWAIN_SetPrinterSuffixStringW");
        bindFunction(cast(void**)&DTWAIN_SetQueryCapSupport, "DTWAIN_SetQueryCapSupport");
        bindFunction(cast(void**)&DTWAIN_SetResolution, "DTWAIN_SetResolution");
        bindFunction(cast(void**)&DTWAIN_SetResolutionString, "DTWAIN_SetResolutionString");
        bindFunction(cast(void**)&DTWAIN_SetResolutionStringA, "DTWAIN_SetResolutionStringA");
        bindFunction(cast(void**)&DTWAIN_SetResolutionStringW, "DTWAIN_SetResolutionStringW");
        bindFunction(cast(void**)&DTWAIN_SetResourcePath, "DTWAIN_SetResourcePath");
        bindFunction(cast(void**)&DTWAIN_SetResourcePathA, "DTWAIN_SetResourcePathA");
        bindFunction(cast(void**)&DTWAIN_SetResourcePathW, "DTWAIN_SetResourcePathW");
        bindFunction(cast(void**)&DTWAIN_SetRotation, "DTWAIN_SetRotation");
        bindFunction(cast(void**)&DTWAIN_SetRotationString, "DTWAIN_SetRotationString");
        bindFunction(cast(void**)&DTWAIN_SetRotationStringA, "DTWAIN_SetRotationStringA");
        bindFunction(cast(void**)&DTWAIN_SetRotationStringW, "DTWAIN_SetRotationStringW");
        bindFunction(cast(void**)&DTWAIN_SetSaveFileName, "DTWAIN_SetSaveFileName");
        bindFunction(cast(void**)&DTWAIN_SetSaveFileNameA, "DTWAIN_SetSaveFileNameA");
        bindFunction(cast(void**)&DTWAIN_SetSaveFileNameW, "DTWAIN_SetSaveFileNameW");
        bindFunction(cast(void**)&DTWAIN_SetShadow, "DTWAIN_SetShadow");
        bindFunction(cast(void**)&DTWAIN_SetShadowString, "DTWAIN_SetShadowString");
        bindFunction(cast(void**)&DTWAIN_SetShadowStringA, "DTWAIN_SetShadowStringA");
        bindFunction(cast(void**)&DTWAIN_SetShadowStringW, "DTWAIN_SetShadowStringW");
        bindFunction(cast(void**)&DTWAIN_SetSourceUnit, "DTWAIN_SetSourceUnit");
        bindFunction(cast(void**)&DTWAIN_SetTIFFCompressType, "DTWAIN_SetTIFFCompressType");
        bindFunction(cast(void**)&DTWAIN_SetTIFFInvert, "DTWAIN_SetTIFFInvert");
        bindFunction(cast(void**)&DTWAIN_SetTempFileDirectory, "DTWAIN_SetTempFileDirectory");
        bindFunction(cast(void**)&DTWAIN_SetTempFileDirectoryA, "DTWAIN_SetTempFileDirectoryA");
        bindFunction(cast(void**)&DTWAIN_SetTempFileDirectoryEx, "DTWAIN_SetTempFileDirectoryEx");
        bindFunction(cast(void**)&DTWAIN_SetTempFileDirectoryExA, "DTWAIN_SetTempFileDirectoryExA");
        bindFunction(cast(void**)&DTWAIN_SetTempFileDirectoryExW, "DTWAIN_SetTempFileDirectoryExW");
        bindFunction(cast(void**)&DTWAIN_SetTempFileDirectoryW, "DTWAIN_SetTempFileDirectoryW");
        bindFunction(cast(void**)&DTWAIN_SetThreshold, "DTWAIN_SetThreshold");
        bindFunction(cast(void**)&DTWAIN_SetThresholdString, "DTWAIN_SetThresholdString");
        bindFunction(cast(void**)&DTWAIN_SetThresholdStringA, "DTWAIN_SetThresholdStringA");
        bindFunction(cast(void**)&DTWAIN_SetThresholdStringW, "DTWAIN_SetThresholdStringW");
        bindFunction(cast(void**)&DTWAIN_SetTwainDSM, "DTWAIN_SetTwainDSM");
        bindFunction(cast(void**)&DTWAIN_SetTwainDialogFont, "DTWAIN_SetTwainDialogFont");
        bindFunction(cast(void**)&DTWAIN_SetTwainLog, "DTWAIN_SetTwainLog");
        bindFunction(cast(void**)&DTWAIN_SetTwainLogA, "DTWAIN_SetTwainLogA");
        bindFunction(cast(void**)&DTWAIN_SetTwainLogW, "DTWAIN_SetTwainLogW");
        bindFunction(cast(void**)&DTWAIN_SetTwainMode, "DTWAIN_SetTwainMode");
        bindFunction(cast(void**)&DTWAIN_SetTwainTimeout, "DTWAIN_SetTwainTimeout");
        bindFunction(cast(void**)&DTWAIN_SetXResolution, "DTWAIN_SetXResolution");
        bindFunction(cast(void**)&DTWAIN_SetXResolutionString, "DTWAIN_SetXResolutionString");
        bindFunction(cast(void**)&DTWAIN_SetXResolutionStringA, "DTWAIN_SetXResolutionStringA");
        bindFunction(cast(void**)&DTWAIN_SetXResolutionStringW, "DTWAIN_SetXResolutionStringW");
        bindFunction(cast(void**)&DTWAIN_SetYResolution, "DTWAIN_SetYResolution");
        bindFunction(cast(void**)&DTWAIN_SetYResolutionString, "DTWAIN_SetYResolutionString");
        bindFunction(cast(void**)&DTWAIN_SetYResolutionStringA, "DTWAIN_SetYResolutionStringA");
        bindFunction(cast(void**)&DTWAIN_SetYResolutionStringW, "DTWAIN_SetYResolutionStringW");
        bindFunction(cast(void**)&DTWAIN_ShowUIOnly, "DTWAIN_ShowUIOnly");
        bindFunction(cast(void**)&DTWAIN_ShutdownOCREngine, "DTWAIN_ShutdownOCREngine");
        bindFunction(cast(void**)&DTWAIN_SkipImageInfoError, "DTWAIN_SkipImageInfoError");
        bindFunction(cast(void**)&DTWAIN_StartThread, "DTWAIN_StartThread");
        bindFunction(cast(void**)&DTWAIN_StartTwainSession, "DTWAIN_StartTwainSession");
        bindFunction(cast(void**)&DTWAIN_StartTwainSessionA, "DTWAIN_StartTwainSessionA");
        bindFunction(cast(void**)&DTWAIN_StartTwainSessionW, "DTWAIN_StartTwainSessionW");
        bindFunction(cast(void**)&DTWAIN_SysDestroy, "DTWAIN_SysDestroy");
        bindFunction(cast(void**)&DTWAIN_SysInitialize, "DTWAIN_SysInitialize");
        bindFunction(cast(void**)&DTWAIN_SysInitializeEx, "DTWAIN_SysInitializeEx");
        bindFunction(cast(void**)&DTWAIN_SysInitializeEx2, "DTWAIN_SysInitializeEx2");
        bindFunction(cast(void**)&DTWAIN_SysInitializeEx2A, "DTWAIN_SysInitializeEx2A");
        bindFunction(cast(void**)&DTWAIN_SysInitializeEx2W, "DTWAIN_SysInitializeEx2W");
        bindFunction(cast(void**)&DTWAIN_SysInitializeExA, "DTWAIN_SysInitializeExA");
        bindFunction(cast(void**)&DTWAIN_SysInitializeExW, "DTWAIN_SysInitializeExW");
        bindFunction(cast(void**)&DTWAIN_SysInitializeLib, "DTWAIN_SysInitializeLib");
        bindFunction(cast(void**)&DTWAIN_SysInitializeLibEx, "DTWAIN_SysInitializeLibEx");
        bindFunction(cast(void**)&DTWAIN_SysInitializeLibEx2, "DTWAIN_SysInitializeLibEx2");
        bindFunction(cast(void**)&DTWAIN_SysInitializeLibEx2A, "DTWAIN_SysInitializeLibEx2A");
        bindFunction(cast(void**)&DTWAIN_SysInitializeLibEx2W, "DTWAIN_SysInitializeLibEx2W");
        bindFunction(cast(void**)&DTWAIN_SysInitializeLibExA, "DTWAIN_SysInitializeLibExA");
        bindFunction(cast(void**)&DTWAIN_SysInitializeLibExW, "DTWAIN_SysInitializeLibExW");
        bindFunction(cast(void**)&DTWAIN_SysInitializeNoBlocking, "DTWAIN_SysInitializeNoBlocking");
        bindFunction(cast(void**)&DTWAIN_TestGetCap, "DTWAIN_TestGetCap");
        bindFunction(cast(void**)&DTWAIN_UnlockMemory, "DTWAIN_UnlockMemory");
        bindFunction(cast(void**)&DTWAIN_UnlockMemoryEx, "DTWAIN_UnlockMemoryEx");
        bindFunction(cast(void**)&DTWAIN_UpdateCurrentAcquiredImage, "DTWAIN_UpdateCurrentAcquiredImage");
        bindFunction(cast(void**)&DTWAIN_UseMultipleThreads, "DTWAIN_UseMultipleThreads");
        bindFunction(cast(void**)&DTWAIN_GetCallback, "DTWAIN_GetCallback");
        bindFunction(cast(void**)&DTWAIN_GetCallback64, "DTWAIN_GetCallback64");
        bindFunction(cast(void**)&DTWAIN_GetErrorCallback, "DTWAIN_GetErrorCallback");
        bindFunction(cast(void**)&DTWAIN_GetErrorCallback64, "DTWAIN_GetErrorCallback64");
        bindFunction(cast(void**)&DTWAIN_GetLoggerCallback, "DTWAIN_GetLoggerCallback");
        bindFunction(cast(void**)&DTWAIN_GetLoggerCallbackA, "DTWAIN_GetLoggerCallbackA");
        bindFunction(cast(void**)&DTWAIN_GetLoggerCallbackW, "DTWAIN_GetLoggerCallbackW");
        bindFunction(cast(void**)&DTWAIN_SetCallback, "DTWAIN_SetCallback");
        bindFunction(cast(void**)&DTWAIN_SetCallback64, "DTWAIN_SetCallback64");
        bindFunction(cast(void**)&DTWAIN_SetErrorCallback, "DTWAIN_SetErrorCallback");
        bindFunction(cast(void**)&DTWAIN_SetErrorCallback64, "DTWAIN_SetErrorCallback64");
        bindFunction(cast(void**)&DTWAIN_SetLoggerCallback, "DTWAIN_SetLoggerCallback");
        bindFunction(cast(void**)&DTWAIN_SetLoggerCallbackA, "DTWAIN_SetLoggerCallbackA");
        bindFunction(cast(void**)&DTWAIN_SetLoggerCallbackW, "DTWAIN_SetLoggerCallbackW");
        bindFunction(cast(void**)&DTWAIN_SetUpdateDibProc, "DTWAIN_SetUpdateDibProc");
    }
}

