/*
    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.
*/
#ifndef DTWAINX2_H
#define DTWAINX2_H

#include <dtwainc.h>
#include <capconst.h>
#ifdef _WIN32
   #include <commdlg.h>
#endif
#include <twain.h>
#include <winconst.h>
#include <dtwaindefs.h>
#include <dtwain_version.h>
#include <dtwpdft.h>
#ifndef DTWAIN_NOIMPORTLIB
    #define DTWAIN_NOIMPORTLIB
#endif
#include <dtwain_library_selector.h>
#ifdef __cplusplus
#include <string>
extern "C" {
#endif


typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREAUDIOFILEFUNC)                     (DTWAIN_SOURCE, LPCTSTR, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREAUDIOFILEAFUNC)                    (DTWAIN_SOURCE, LPCSTR, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREAUDIOFILEWFUNC)                    (DTWAIN_SOURCE, LPCWSTR, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ACQUIREAUDIONATIVEFUNC)                  (DTWAIN_SOURCE, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREAUDIONATIVEEXFUNC)                 (DTWAIN_SOURCE, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_ARRAY, LPLONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ACQUIREBUFFEREDFUNC)                     (DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREBUFFEREDEXFUNC)                    (DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_ARRAY, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREFILEFUNC)                          (DTWAIN_SOURCE, LPCTSTR, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREFILEAFUNC)                         (DTWAIN_SOURCE, LPCSTR, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREFILEEXFUNC)                        (DTWAIN_SOURCE, DTWAIN_ARRAY, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIREFILEWFUNC)                         (DTWAIN_SOURCE, LPCWSTR, LONG, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ACQUIRENATIVEFUNC)                       (DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ACQUIRENATIVEEXFUNC)                      (DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_ARRAY, LPLONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ACQUIRETOCLIPBOARDFUNC)                  (DTWAIN_SOURCE, LONG, LONG, LONG, DTWAIN_BOOL, DTWAIN_BOOL, DTWAIN_BOOL, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDEXTIMAGEINFOQUERYFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDFILETOAPPENDFUNC)                      (LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDFILETOAPPENDAFUNC)                     (LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDFILETOAPPENDWFUNC)                     (LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTFUNC)                           (DTWAIN_SOURCE, LPCTSTR, LONG, LONG, LPCTSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTAFUNC)                          (DTWAIN_SOURCE, LPCSTR, LONG, LONG, LPCSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTELEMENTFUNC)                    (DTWAIN_SOURCE, DTWAIN_PDFTEXTELEMENT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTEXFUNC)                         (DTWAIN_SOURCE, LPCTSTR, LONG, LONG, LPCTSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTEXAFUNC)                        (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);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTEXWFUNC)                        (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);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTSTRINGFUNC)                     (DTWAIN_SOURCE, LPCTSTR, LONG, LONG, LPCTSTR, LPCTSTR, LONG, LONG, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR, DWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTSTRINGAFUNC)                    (DTWAIN_SOURCE, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LPCSTR, LPCSTR, DWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTSTRINGWFUNC)                    (DTWAIN_SOURCE, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, DWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ADDPDFTEXTWFUNC)                          (DTWAIN_SOURCE, LPCWSTR, LONG, LONG, LPCWSTR, DTWAIN_FLOAT, LONG, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DWORD);
typedef HANDLE (DLLENTRY_DEF * D_ALLOCATEMEMORYFUNC)                            (DWORD);
typedef HANDLE (DLLENTRY_DEF * D_ALLOCATEMEMORY64FUNC)                          (ULONG64);
typedef HANDLE (DLLENTRY_DEF * D_ALLOCATEMEMORYEXFUNC)                          (DWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_APPHANDLESEXCEPTIONSFUNC)                 (DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYANSISTRINGTOFLOATFUNC)              (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFUNC)                             (DTWAIN_ARRAY, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDANSISTRINGFUNC)                   (DTWAIN_ARRAY, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDANSISTRINGNFUNC)                  (DTWAIN_ARRAY, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATFUNC)                        (DTWAIN_ARRAY, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATNFUNC)                       (DTWAIN_ARRAY, DTWAIN_FLOAT, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATSTRINGFUNC)                  (DTWAIN_ARRAY, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATSTRINGAFUNC)                 (DTWAIN_ARRAY, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATSTRINGNFUNC)                 (DTWAIN_ARRAY, LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATSTRINGNAFUNC)                (DTWAIN_ARRAY, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATSTRINGNWFUNC)                (DTWAIN_ARRAY, LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFLOATSTRINGWFUNC)                 (DTWAIN_ARRAY, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFRAMEFUNC)                        (DTWAIN_ARRAY, DTWAIN_FRAME);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDFRAMENFUNC)                       (DTWAIN_ARRAY, DTWAIN_FRAME, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDLONGFUNC)                         (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDLONG64FUNC)                       (DTWAIN_ARRAY, LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDLONG64NFUNC)                      (DTWAIN_ARRAY, LONG64, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDLONGNFUNC)                        (DTWAIN_ARRAY, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDNFUNC)                            (DTWAIN_ARRAY, LPVOID, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDSTRINGFUNC)                       (DTWAIN_ARRAY, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDSTRINGAFUNC)                      (DTWAIN_ARRAY, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDSTRINGNFUNC)                      (DTWAIN_ARRAY, LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDSTRINGNAFUNC)                     (DTWAIN_ARRAY, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDSTRINGNWFUNC)                     (DTWAIN_ARRAY, LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDSTRINGWFUNC)                      (DTWAIN_ARRAY, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDWIDESTRINGFUNC)                   (DTWAIN_ARRAY, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYADDWIDESTRINGNFUNC)                  (DTWAIN_ARRAY, LPCWSTR, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCONVERTFIX32TOFLOATFUNC)            (DTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCONVERTFLOATTOFIX32FUNC)            (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYCOPYFUNC)                            (DTWAIN_ARRAY, DTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFUNC)                         (LONG, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATECOPYFUNC)                     (DTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFROMCAPFUNC)                  (DTWAIN_SOURCE, LONG, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFROMLONG64SFUNC)              (LPLONG64, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFROMLONGSFUNC)                (LPLONG, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFROMREALSFUNC)                (double*, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFROMSTRINGSFUNC)              (LPCTSTR*, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFROMSTRINGSAFUNC)             (LPCSTR*, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYCREATEFROMSTRINGSWFUNC)             (LPCWSTR*, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYDESTROYFUNC)                         (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYDESTROYFRAMESFUNC)                   (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYDUMPTOLOGFUNC)                       (DTWAIN_ARRAY);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDFUNC)                                   (DTWAIN_ARRAY, LPVOID);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDANSISTRINGFUNC)                         (DTWAIN_ARRAY, LPCSTR);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDFLOATFUNC)                              (DTWAIN_ARRAY, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDFLOATSTRINGFUNC)                        (DTWAIN_ARRAY, LPCTSTR, LPCTSTR);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDFLOATSTRINGAFUNC)                       (DTWAIN_ARRAY, LPCSTR, LPCSTR);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDFLOATSTRINGWFUNC)                       (DTWAIN_ARRAY, LPCWSTR, LPCWSTR);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDLONGFUNC)                               (DTWAIN_ARRAY, LONG);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDLONG64FUNC)                             (DTWAIN_ARRAY, LONG64);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDSTRINGFUNC)                             (DTWAIN_ARRAY, LPCTSTR);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDSTRINGAFUNC)                            (DTWAIN_ARRAY, LPCSTR);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDSTRINGWFUNC)                            (DTWAIN_ARRAY, LPCWSTR);
typedef LONG (DLLENTRY_DEF * D_ARRAYFINDWIDESTRINGFUNC)                         (DTWAIN_ARRAY, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYFIX32GETATFUNC)                      (DTWAIN_ARRAY, DTWAIN_LONG, LPLONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYFIX32SETATFUNC)                      (DTWAIN_ARRAY, DTWAIN_LONG, DTWAIN_LONG, DTWAIN_LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYFLOATTOANSISTRINGFUNC)              (DTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYFLOATTOSTRINGFUNC)                  (DTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYFLOATTOWIDESTRINGFUNC)              (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFUNC)                           (DTWAIN_ARRAY, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATANSISTRINGFUNC)                 (DTWAIN_ARRAY, LONG, LPSTR);
typedef LPCSTR (DLLENTRY_DEF * D_ARRAYGETATANSISTRINGPTRFUNC)                   (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFLOATFUNC)                      (DTWAIN_ARRAY, LONG, LPDTWAIN_FLOAT);
typedef DTWAIN_FLOAT (DLLENTRY_DEF * D_ARRAYGETATFLOATEXFUNC)                   (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFLOATSTRINGFUNC)                (DTWAIN_ARRAY, LONG, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFLOATSTRINGAFUNC)               (DTWAIN_ARRAY, LONG, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFLOATSTRINGWFUNC)               (DTWAIN_ARRAY, LONG, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFRAMEFUNC)                      (DTWAIN_ARRAY, LONG, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFRAMEEXFUNC)                    (DTWAIN_ARRAY, LONG, DTWAIN_FRAME);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFRAMESTRINGFUNC)                (DTWAIN_ARRAY, LONG, LPTSTR, LPTSTR, LPTSTR, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFRAMESTRINGAFUNC)               (DTWAIN_ARRAY, LONG, LPSTR, LPSTR, LPSTR, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATFRAMESTRINGWFUNC)               (DTWAIN_ARRAY, LONG, LPWSTR, LPWSTR, LPWSTR, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATLONGFUNC)                       (DTWAIN_ARRAY, LONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATLONG64FUNC)                     (DTWAIN_ARRAY, LONG, LPLONG64);
typedef LONG64 (DLLENTRY_DEF * D_ARRAYGETATLONG64EXFUNC)                        (DTWAIN_ARRAY, LONG);
typedef LONG (DLLENTRY_DEF * D_ARRAYGETATLONGEXFUNC)                            (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATSOURCEFUNC)                     (DTWAIN_ARRAY, LONG, DTWAIN_SOURCE*);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_ARRAYGETATSOURCEEXFUNC)                 (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATSTRINGFUNC)                     (DTWAIN_ARRAY, LONG, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATSTRINGAFUNC)                    (DTWAIN_ARRAY, LONG, LPSTR);
typedef LPCTSTR (DLLENTRY_DEF * D_ARRAYGETATSTRINGPTRFUNC)                      (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATSTRINGWFUNC)                    (DTWAIN_ARRAY, LONG, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETATWIDESTRINGFUNC)                 (DTWAIN_ARRAY, LONG, LPWSTR);
typedef LPCWSTR (DLLENTRY_DEF * D_ARRAYGETATWIDESTRINGPTRFUNC)                  (DTWAIN_ARRAY, LONG);
typedef LPVOID (DLLENTRY_DEF * D_ARRAYGETBUFFERFUNC)                            (DTWAIN_ARRAY, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYGETCAPVALUESFUNC)                   (DTWAIN_SOURCE, LONG, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYGETCAPVALUESEXFUNC)                 (DTWAIN_SOURCE, LONG, LONG, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYGETCAPVALUESEX2FUNC)                (DTWAIN_SOURCE, LONG, LONG, LONG, LONG);
typedef LONG (DLLENTRY_DEF * D_ARRAYGETCOUNTFUNC)                               (DTWAIN_ARRAY);
typedef LONG (DLLENTRY_DEF * D_ARRAYGETMAXSTRINGLENGTHFUNC)                     (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYGETSOURCEATFUNC)                     (DTWAIN_ARRAY, LONG, DTWAIN_SOURCE*);
typedef LONG (DLLENTRY_DEF * D_ARRAYGETSTRINGLENGTHFUNC)                        (DTWAIN_ARRAY, LONG);
typedef LONG (DLLENTRY_DEF * D_ARRAYGETTYPEFUNC)                                (DTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYINITFUNC)                           (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFUNC)                        (DTWAIN_ARRAY, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATANSISTRINGFUNC)              (DTWAIN_ARRAY, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATANSISTRINGNFUNC)             (DTWAIN_ARRAY, LONG, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATFUNC)                   (DTWAIN_ARRAY, LONG, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATNFUNC)                  (DTWAIN_ARRAY, LONG, DTWAIN_FLOAT, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATSTRINGFUNC)             (DTWAIN_ARRAY, LONG, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATSTRINGAFUNC)            (DTWAIN_ARRAY, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATSTRINGNFUNC)            (DTWAIN_ARRAY, LONG, LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATSTRINGNAFUNC)           (DTWAIN_ARRAY, LONG, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATSTRINGNWFUNC)           (DTWAIN_ARRAY, LONG, LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFLOATSTRINGWFUNC)            (DTWAIN_ARRAY, LONG, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFRAMEFUNC)                   (DTWAIN_ARRAY, LONG, DTWAIN_FRAME);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATFRAMENFUNC)                  (DTWAIN_ARRAY, LONG, DTWAIN_FRAME, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATLONGFUNC)                    (DTWAIN_ARRAY, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATLONG64FUNC)                  (DTWAIN_ARRAY, LONG, LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATLONG64NFUNC)                 (DTWAIN_ARRAY, LONG, LONG64, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATLONGNFUNC)                   (DTWAIN_ARRAY, LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATNFUNC)                       (DTWAIN_ARRAY, LONG, LPVOID, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATSTRINGFUNC)                  (DTWAIN_ARRAY, LONG, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATSTRINGAFUNC)                 (DTWAIN_ARRAY, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATSTRINGNFUNC)                 (DTWAIN_ARRAY, LONG, LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATSTRINGNAFUNC)                (DTWAIN_ARRAY, LONG, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATSTRINGNWFUNC)                (DTWAIN_ARRAY, LONG, LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATSTRINGWFUNC)                 (DTWAIN_ARRAY, LONG, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATWIDESTRINGFUNC)              (DTWAIN_ARRAY, LONG, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYINSERTATWIDESTRINGNFUNC)             (DTWAIN_ARRAY, LONG, LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYREMOVEALLFUNC)                       (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYREMOVEATFUNC)                        (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYREMOVEATNFUNC)                       (DTWAIN_ARRAY, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYRESIZEFUNC)                          (DTWAIN_ARRAY, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFUNC)                           (DTWAIN_ARRAY, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATANSISTRINGFUNC)                 (DTWAIN_ARRAY, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFLOATFUNC)                      (DTWAIN_ARRAY, LONG, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFLOATSTRINGFUNC)                (DTWAIN_ARRAY, LONG, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFLOATSTRINGAFUNC)               (DTWAIN_ARRAY, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFLOATSTRINGWFUNC)               (DTWAIN_ARRAY, LONG, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFRAMEFUNC)                      (DTWAIN_ARRAY, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFRAMEEXFUNC)                    (DTWAIN_ARRAY, LONG, DTWAIN_FRAME);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFRAMESTRINGFUNC)                (DTWAIN_ARRAY, LONG, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFRAMESTRINGAFUNC)               (DTWAIN_ARRAY, LONG, LPCSTR, LPCSTR, LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATFRAMESTRINGWFUNC)               (DTWAIN_ARRAY, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATLONGFUNC)                       (DTWAIN_ARRAY, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATLONG64FUNC)                     (DTWAIN_ARRAY, LONG, LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATSTRINGFUNC)                     (DTWAIN_ARRAY, LONG, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATSTRINGAFUNC)                    (DTWAIN_ARRAY, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATSTRINGWFUNC)                    (DTWAIN_ARRAY, LONG, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ARRAYSETATWIDESTRINGFUNC)                 (DTWAIN_ARRAY, LONG, LPCWSTR);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYSTRINGTOFLOATFUNC)                  (DTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ARRAYWIDESTRINGTOFLOATFUNC)              (DTWAIN_ARRAY);
typedef LONG (DLLENTRY_DEF * D_CALLCALLBACKFUNC)                                (WPARAM, LPARAM, LONG);
typedef LONG (DLLENTRY_DEF * D_CALLCALLBACK64FUNC)                              (WPARAM, LPARAM, LONGLONG);
typedef LONG (DLLENTRY_DEF * D_CALLDSMPROCFUNC)                                 (DTWAIN_IDENTITY, DTWAIN_IDENTITY, LONG, LONG, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_CHECKHANDLESFUNC)                         (DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_CLEARBUFFERSFUNC)                         (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_CLEARERRORBUFFERFUNC)                     (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_CLEARPDFTEXTELEMENTSFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_CLEARPAGEFUNC)                            (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_CLOSESOURCEFUNC)                          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_CLOSESOURCEUIFUNC)                        (DTWAIN_SOURCE);
typedef HANDLE (DLLENTRY_DEF * D_CONVERTDIBTOBITMAPFUNC)                        (HANDLE, HANDLE);
typedef HANDLE (DLLENTRY_DEF * D_CONVERTDIBTOFULLBITMAPFUNC)                    (HANDLE, DTWAIN_BOOL);
typedef HANDLE (DLLENTRY_DEF * D_CONVERTTOAPISTRINGFUNC)                        (LPCTSTR);
typedef HANDLE (DLLENTRY_DEF * D_CONVERTTOAPISTRINGAFUNC)                       (LPCSTR);
typedef LONG (DLLENTRY_DEF * D_CONVERTTOAPISTRINGEXFUNC)                        (LPCTSTR, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_CONVERTTOAPISTRINGEXAFUNC)                       (LPCSTR, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_CONVERTTOAPISTRINGEXWFUNC)                       (LPCWSTR, LPWSTR, LONG);
typedef HANDLE (DLLENTRY_DEF * D_CONVERTTOAPISTRINGWFUNC)                       (LPCWSTR);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_CREATEACQUISITIONARRAYFUNC)              (VOID_PROTOTYPE);
typedef DTWAIN_PDFTEXTELEMENT (DLLENTRY_DEF * D_CREATEPDFTEXTELEMENTFUNC)       (VOID_PROTOTYPE);
typedef DTWAIN_PDFTEXTELEMENT (DLLENTRY_DEF * D_CREATEPDFTEXTELEMENTCOPYFUNC)   (DTWAIN_PDFTEXTELEMENT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_DELETEDIBFUNC)                            (HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_DESTROYACQUISITIONARRAYFUNC)              (DTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_DESTROYPDFTEXTELEMENTFUNC)                (DTWAIN_PDFTEXTELEMENT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_DISABLEAPPWINDOWFUNC)                     (HWND, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEAUTOBORDERDETECTFUNC)               (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEAUTOBRIGHTFUNC)                     (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEAUTODESKEWFUNC)                     (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEAUTOFEEDFUNC)                       (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEAUTOROTATEFUNC)                     (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEAUTOSCANFUNC)                       (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEAUTOMATICSENSEMEDIUMFUNC)           (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEBARCODEDETECTIONFUNC)               (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEDUPLEXFUNC)                         (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEFEEDERFUNC)                         (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEGETMESSAGELOOPFUNC)                 (DTWAIN_SOURCE, BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEGETMESSAGELOOPDETECTIONFUNC)        (DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEINDICATORFUNC)                      (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEJOBFILEHANDLINGFUNC)                (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLELAMPFUNC)                           (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEMSGNOTIFYFUNC)                      (DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEPATCHCODEDETECTIONFUNC)             (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEPEEKMESSAGELOOPFUNC)                (DTWAIN_SOURCE, BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLEPRINTERFUNC)                        (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLETHUMBNAILFUNC)                      (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENABLETRIPLETSNOTIFYFUNC)                 (DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENDTHREADFUNC)                            (DTWAIN_HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENDTWAINSESSIONFUNC)                      (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMALARMVOLUMESFUNC)                     (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMALARMVOLUMESEXFUNC)                  (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMALARMSFUNC)                           (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMALARMSEXFUNC)                        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMAUDIOXFERMECHSFUNC)                   (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMAUDIOXFERMECHSEXFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMAUTOFEEDVALUESFUNC)                   (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMAUTOFEEDVALUESEXFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMAUTOMATICCAPTURESFUNC)                (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMAUTOMATICCAPTURESEXFUNC)             (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMAUTOMATICSENSEMEDIUMFUNC)             (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMAUTOMATICSENSEMEDIUMEXFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBARCODECODESFUNC)                     (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBARCODECODESEXFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBARCODEMAXPRIORITIESFUNC)             (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBARCODEMAXPRIORITIESEXFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBARCODEMAXRETRIESFUNC)                (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBARCODEMAXRETRIESEXFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBARCODEPRIORITIESFUNC)                (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBARCODEPRIORITIESEXFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBARCODESEARCHMODESFUNC)               (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBARCODESEARCHMODESEXFUNC)            (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBARCODETIMEOUTVALUESFUNC)             (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBARCODETIMEOUTVALUESEXFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBITDEPTHSFUNC)                        (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBITDEPTHSEXFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBITDEPTHSEX2FUNC)                    (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMBOTTOMCAMERASFUNC)                    (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBOTTOMCAMERASEXFUNC)                 (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_ENUMBRIGHTNESSVALUESFUNC)                        (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMBRIGHTNESSVALUESEXFUNC)              (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMCAMERASFUNC)                          (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMCAMERASEXFUNC)                       (DTWAIN_SOURCE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMCAMERASEX2FUNC)                      (DTWAIN_SOURCE, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMCAPLABELSFUNC)                       (LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMCOMPRESSIONTYPESFUNC)                 (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMCOMPRESSIONTYPESEXFUNC)              (DTWAIN_SOURCE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMCOMPRESSIONTYPESEX2FUNC)             (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_ENUMCONTRASTVALUESFUNC)                          (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMCONTRASTVALUESEXFUNC)                (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMCUSTOMCAPSFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMCUSTOMCAPSEXFUNC)                    (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_ENUMDOUBLEFEEDDETECTLENGTHSFUNC)                 (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMDOUBLEFEEDDETECTLENGTHSEXFUNC)       (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_ENUMDOUBLEFEEDDETECTVALUESFUNC)                  (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMDOUBLEFEEDDETECTVALUESEXFUNC)        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMEXTIMAGEINFOTYPESFUNC)                (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMEXTIMAGEINFOTYPESEXFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMEXTENDEDCAPSFUNC)                     (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMEXTENDEDCAPSEXFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMEXTENDEDCAPSEX2FUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMFILETYPEBITSPERPIXELFUNC)             (LONG, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMFILEXFERFORMATSFUNC)                  (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMFILEXFERFORMATSEXFUNC)               (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMHALFTONESFUNC)                        (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMHALFTONESEXFUNC)                     (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_ENUMHIGHLIGHTVALUESFUNC)                         (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMHIGHLIGHTVALUESEXFUNC)               (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMJOBCONTROLSFUNC)                      (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMJOBCONTROLSEXFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMLIGHTPATHSFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMLIGHTPATHSEXFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMLIGHTSOURCESFUNC)                     (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMLIGHTSOURCESEXFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMMAXBUFFERSFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMMAXBUFFERSEXFUNC)                    (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMNOISEFILTERSFUNC)                     (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMNOISEFILTERSEXFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMOCRINTERFACESFUNC)                    (LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMOCRINTERFACESEXFUNC)                 (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMOCRSUPPORTEDCAPSFUNC)                 (DTWAIN_OCRENGINE, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMORIENTATIONSFUNC)                     (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMORIENTATIONSEXFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMOVERSCANVALUESFUNC)                   (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMOVERSCANVALUESEXFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPAPERSIZESFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPAPERSIZESEXFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPATCHCODECODESFUNC)                   (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPATCHCODECODESEXFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPATCHCODEMAXPRIORITIESFUNC)           (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPATCHCODEMAXPRIORITIESEXFUNC)        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPATCHCODEMAXRETRIESFUNC)              (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPATCHCODEMAXRETRIESEXFUNC)           (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPATCHCODEPRIORITIESFUNC)              (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPATCHCODEPRIORITIESEXFUNC)           (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPATCHCODESEARCHMODESFUNC)             (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPATCHCODESEARCHMODESEXFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPATCHCODETIMEOUTVALUESFUNC)           (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPATCHCODETIMEOUTVALUESEXFUNC)        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPIXELTYPESFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPIXELTYPESEXFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMPRINTERSTRINGMODESFUNC)               (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMPRINTERSTRINGMODESEXFUNC)            (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_ENUMRESOLUTIONVALUESFUNC)                        (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMRESOLUTIONVALUESEXFUNC)              (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_ENUMSHADOWVALUESFUNC)                            (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSHADOWVALUESEXFUNC)                  (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMSOURCEUNITSFUNC)                      (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSOURCEUNITSEXFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMSOURCEVALUESFUNC)                     (DTWAIN_SOURCE, LPCTSTR, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMSOURCEVALUESAFUNC)                    (DTWAIN_SOURCE, LPCSTR, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMSOURCEVALUESWFUNC)                    (DTWAIN_SOURCE, LPCWSTR, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMSOURCESFUNC)                          (LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSOURCESEXFUNC)                       (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMSUPPORTEDCAPSFUNC)                    (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSUPPORTEDCAPSEXFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSUPPORTEDCAPSEX2FUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMSUPPORTEDEXTIMAGEINFOFUNC)            (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSUPPORTEDEXTIMAGEINFOEXFUNC)         (DTWAIN_SOURCE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSUPPORTEDFILETYPESFUNC)              (VOID_PROTOTYPE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSUPPORTEDMULTIPAGEFILETYPESFUNC)     (VOID_PROTOTYPE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMSUPPORTEDSINGLEPAGEFILETYPESFUNC)    (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_ENUMTHRESHOLDVALUESFUNC)                         (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMTHRESHOLDVALUESEXFUNC)               (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMTOPCAMERASFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMTOPCAMERASEXFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ENUMTWAINPRINTERSFUNC)                    (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMTWAINPRINTERSEXFUNC)                 (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_ENUMXRESOLUTIONVALUESFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMXRESOLUTIONVALUESEXFUNC)             (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_ENUMYRESOLUTIONVALUESFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_ARRAY, DTWAIN_BOOL);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_ENUMYRESOLUTIONVALUESEXFUNC)             (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_EXECUTEOCRFUNC)                           (DTWAIN_OCRENGINE, LPCTSTR, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_EXECUTEOCRAFUNC)                          (DTWAIN_OCRENGINE, LPCSTR, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_EXECUTEOCRWFUNC)                          (DTWAIN_OCRENGINE, LPCWSTR, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FEEDPAGEFUNC)                             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FLIPBITMAPFUNC)                           (HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FLUSHACQUIREDPAGESFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_FRAME (DLLENTRY_DEF * D_FRAMECREATEFUNC)                         (DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef DTWAIN_FRAME (DLLENTRY_DEF * D_FRAMECREATESTRINGFUNC)                   (LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR);
typedef DTWAIN_FRAME (DLLENTRY_DEF * D_FRAMECREATESTRINGAFUNC)                  (LPCSTR, LPCSTR, LPCSTR, LPCSTR);
typedef DTWAIN_FRAME (DLLENTRY_DEF * D_FRAMECREATESTRINGWFUNC)                  (LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEDESTROYFUNC)                         (DTWAIN_FRAME);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETALLFUNC)                          (DTWAIN_FRAME, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETALLSTRINGFUNC)                    (DTWAIN_FRAME, LPTSTR, LPTSTR, LPTSTR, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETALLSTRINGAFUNC)                   (DTWAIN_FRAME, LPSTR, LPSTR, LPSTR, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETALLSTRINGWFUNC)                   (DTWAIN_FRAME, LPWSTR, LPWSTR, LPWSTR, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETVALUEFUNC)                        (DTWAIN_FRAME, LONG, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETVALUESTRINGFUNC)                  (DTWAIN_FRAME, LONG, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETVALUESTRINGAFUNC)                 (DTWAIN_FRAME, LONG, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEGETVALUESTRINGWFUNC)                 (DTWAIN_FRAME, LONG, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMEISVALIDFUNC)                         (DTWAIN_FRAME);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETALLFUNC)                          (DTWAIN_FRAME, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETALLSTRINGFUNC)                    (DTWAIN_FRAME, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETALLSTRINGAFUNC)                   (DTWAIN_FRAME, LPCSTR, LPCSTR, LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETALLSTRINGWFUNC)                   (DTWAIN_FRAME, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETVALUEFUNC)                        (DTWAIN_FRAME, LONG, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETVALUESTRINGFUNC)                  (DTWAIN_FRAME, LONG, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETVALUESTRINGAFUNC)                 (DTWAIN_FRAME, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FRAMESETVALUESTRINGWFUNC)                 (DTWAIN_FRAME, LONG, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FREEEXTIMAGEINFOFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FREEMEMORYFUNC)                           (HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_FREEMEMORYEXFUNC)                         (HANDLE);
typedef LONG (DLLENTRY_DEF * D_GETAPIHANDLESTATUSFUNC)                          (DTWAIN_HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIREAREAFUNC)                       (DTWAIN_SOURCE, LONG, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIREAREA2FUNC)                      (DTWAIN_SOURCE, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIREAREA2STRINGFUNC)                (DTWAIN_SOURCE, LPTSTR, LPTSTR, LPTSTR, LPTSTR, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIREAREA2STRINGAFUNC)               (DTWAIN_SOURCE, LPSTR, LPSTR, LPSTR, LPSTR, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIREAREA2STRINGWFUNC)               (DTWAIN_SOURCE, LPWSTR, LPWSTR, LPWSTR, LPWSTR, LPLONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETACQUIREAREAEXFUNC)                    (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIREMETRICSFUNC)                    (DTWAIN_SOURCE, LPLONG, LPLONG);
typedef HANDLE (DLLENTRY_DEF * D_GETACQUIRESTRIPBUFFERFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIRESTRIPDATAFUNC)                  (DTWAIN_SOURCE, LPLONG, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETACQUIRESTRIPSIZESFUNC)                 (DTWAIN_SOURCE, LPDWORD, LPDWORD, LPDWORD);
typedef HANDLE (DLLENTRY_DEF * D_GETACQUIREDIMAGEFUNC)                          (DTWAIN_ARRAY, LONG, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETACQUIREDIMAGEARRAYFUNC)               (DTWAIN_ARRAY, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETACQUISITIONARRAYFUNC)                 (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETACTIVEDSMPATHFUNC)                            (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETACTIVEDSMPATHAFUNC)                           (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETACTIVEDSMPATHWFUNC)                           (LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETACTIVEDSMVERSIONINFOFUNC)                     (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETACTIVEDSMVERSIONINFOAFUNC)                    (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETACTIVEDSMVERSIONINFOWFUNC)                    (LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETALARMVOLUMEFUNC)                       (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETALLSOURCEDIBSFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETAPPINFOFUNC)                           (LPTSTR, LPTSTR, LPTSTR, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETAPPINFOAFUNC)                          (LPSTR, LPSTR, LPSTR, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETAPPINFOWFUNC)                          (LPWSTR, LPWSTR, LPWSTR, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETAUTHORFUNC)                            (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETAUTHORAFUNC)                           (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETAUTHORWFUNC)                           (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBARCODEMAXPRIORITIESFUNC)              (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBARCODEMAXRETRIESFUNC)                 (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBARCODEPRIORITIESFUNC)                 (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBARCODESEARCHMODEFUNC)                 (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBARCODETIMEOUTFUNC)                    (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBATTERYMINUTESFUNC)                    (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBATTERYPERCENTFUNC)                    (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBITDEPTHFUNC)                          (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETBITDEPTHEXFUNC)                               (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETBLANKPAGEAUTODETECTIONFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBRIGHTNESSFUNC)                        (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_FLOAT (DLLENTRY_DEF * D_GETBRIGHTNESSEXFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBRIGHTNESSSTRINGFUNC)                  (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBRIGHTNESSSTRINGAFUNC)                 (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETBRIGHTNESSSTRINGWFUNC)                 (DTWAIN_SOURCE, LPWSTR);
typedef HANDLE (DLLENTRY_DEF * D_GETBUFFEREDTRANSFERINFOFUNC)                   (DTWAIN_SOURCE, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD, LPDWORD);
typedef DTWAIN_CALLBACK_PROC (DLLENTRY_DEF * D_GETCALLBACKFUNC)                 (VOID_PROTOTYPE);
typedef DTWAIN_CALLBACK_PROC64 (DLLENTRY_DEF * D_GETCALLBACK64FUNC)             (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETCAPARRAYTYPEFUNC)                             (DTWAIN_SOURCE, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPCONTAINERFUNC)                             (DTWAIN_SOURCE, LONG, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPCONTAINEREXFUNC)                           (LONG, DTWAIN_BOOL, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETCAPCONTAINEREX2FUNC)                  (LONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETCAPDATATYPEFUNC)                              (DTWAIN_SOURCE, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPFROMNAMEFUNC)                              (LPCTSTR);
typedef LONG (DLLENTRY_DEF * D_GETCAPFROMNAMEAFUNC)                             (LPCSTR);
typedef LONG (DLLENTRY_DEF * D_GETCAPFROMNAMEWFUNC)                             (LPCWSTR);
typedef LONG (DLLENTRY_DEF * D_GETCAPHELPFUNC)                                  (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPHELPAFUNC)                                 (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPHELPWFUNC)                                 (LONG, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPLABELFUNC)                                 (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPLABELAFUNC)                                (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPLABELWFUNC)                                (LONG, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCAPOPERATIONSFUNC)                     (DTWAIN_SOURCE, LONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETCAPOPERATIONSEXFUNC)                          (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCAPVALUESFUNC)                         (DTWAIN_SOURCE, LONG, LONG, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCAPVALUESEXFUNC)                       (DTWAIN_SOURCE, LONG, LONG, LONG, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCAPVALUESEX2FUNC)                      (DTWAIN_SOURCE, LONG, LONG, LONG, LONG, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCAPTIONFUNC)                           (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCAPTIONAFUNC)                          (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCAPTIONWFUNC)                          (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCOMPRESSIONSIZEFUNC)                   (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCOMPRESSIONTYPEFUNC)                   (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETCOMPRESSIONTYPEEXFUNC)                        (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETCONDITIONCODESTRINGFUNC)                      (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCONDITIONCODESTRINGAFUNC)                     (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCONDITIONCODESTRINGWFUNC)                     (LONG, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCONSTANTFROMTWAINNAMEFUNC)                    (LPCTSTR);
typedef LONG (DLLENTRY_DEF * D_GETCONSTANTFROMTWAINNAMEAFUNC)                   (LPCSTR);
typedef LONG (DLLENTRY_DEF * D_GETCONSTANTFROMTWAINNAMEWFUNC)                   (LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCONTRASTFUNC)                          (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_FLOAT (DLLENTRY_DEF * D_GETCONTRASTEXFUNC)                       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCONTRASTSTRINGFUNC)                    (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCONTRASTSTRINGAFUNC)                   (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCONTRASTSTRINGWFUNC)                   (DTWAIN_SOURCE, LPWSTR);
typedef LONG (DLLENTRY_DEF * D_GETCOUNTRYFUNC)                                  (VOID_PROTOTYPE);
typedef HANDLE (DLLENTRY_DEF * D_GETCURRENTACQUIREDIMAGEFUNC)                   (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETCURRENTFILENAMEFUNC)                          (DTWAIN_SOURCE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCURRENTFILENAMEAFUNC)                         (DTWAIN_SOURCE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCURRENTFILENAMEWFUNC)                         (DTWAIN_SOURCE, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETCURRENTPAGENUMFUNC)                           (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETCURRENTRETRYCOUNTFUNC)                        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETCURRENTTWAINTRIPLETFUNC)               (TW_IDENTITY*, TW_IDENTITY*, LPLONG, LPLONG, LPLONG, LPLONG64);
typedef HANDLE (DLLENTRY_DEF * D_GETCUSTOMDSDATAFUNC)                           (DTWAIN_SOURCE, LPBYTE, DWORD, LPDWORD, LONG);
typedef LONG (DLLENTRY_DEF * D_GETDSMFULLNAMEFUNC)                              (LONG, LPTSTR, LONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETDSMFULLNAMEAFUNC)                             (LONG, LPSTR, LONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETDSMFULLNAMEWFUNC)                             (LONG, LPWSTR, LONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETDSMSEARCHORDERFUNC)                           (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETDSMSEARCHORDEREXFUNC)                         (LPTSTR, LPTSTR);
typedef LONG (DLLENTRY_DEF * D_GETDSMSEARCHORDEREXAFUNC)                        (LPSTR, LPSTR);
typedef LONG (DLLENTRY_DEF * D_GETDSMSEARCHORDEREXWFUNC)                        (LPWSTR, LPWSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_GETDTWAINHANDLEFUNC)                    (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDEVICEEVENTFUNC)                       (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDEVICEEVENTEXFUNC)                     (DTWAIN_SOURCE, LPLONG, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDEVICEEVENTINFOFUNC)                   (DTWAIN_SOURCE, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDEVICENOTIFICATIONSFUNC)               (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDEVICETIMEDATEFUNC)                    (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDEVICETIMEDATEAFUNC)                   (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDEVICETIMEDATEWFUNC)                   (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDOUBLEFEEDDETECTLENGTHFUNC)            (DTWAIN_SOURCE, LPDTWAIN_FLOAT, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDOUBLEFEEDDETECTVALUESFUNC)            (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETDUPLEXTYPEFUNC)                        (DTWAIN_SOURCE, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETDUPLEXTYPEEXFUNC)                             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETERRORBUFFERFUNC)                       (LPDTWAIN_ARRAY);
typedef LONG (DLLENTRY_DEF * D_GETERRORBUFFERTHRESHOLDFUNC)                     (VOID_PROTOTYPE);
typedef DTWAIN_ERROR_PROC (DLLENTRY_DEF * D_GETERRORCALLBACKFUNC)               (VOID_PROTOTYPE);
typedef DTWAIN_ERROR_PROC64 (DLLENTRY_DEF * D_GETERRORCALLBACK64FUNC)           (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETERRORSTRINGFUNC)                              (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETERRORSTRINGAFUNC)                             (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETERRORSTRINGWFUNC)                             (LONG, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETEXTCAPFROMNAMEFUNC)                           (LPCTSTR);
typedef LONG (DLLENTRY_DEF * D_GETEXTCAPFROMNAMEAFUNC)                          (LPCSTR);
typedef LONG (DLLENTRY_DEF * D_GETEXTCAPFROMNAMEWFUNC)                          (LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETEXTIMAGEINFOFUNC)                      (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETEXTIMAGEINFODATAFUNC)                  (DTWAIN_SOURCE, LONG, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETEXTIMAGEINFODATAEXFUNC)               (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETEXTIMAGEINFOITEMFUNC)                  (DTWAIN_SOURCE, LONG, LPLONG, LPLONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETEXTIMAGEINFOITEMEXFUNC)                (DTWAIN_SOURCE, LONG, LPLONG, LPLONG, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETEXTNAMEFROMCAPFUNC)                           (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETEXTNAMEFROMCAPAFUNC)                          (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETEXTNAMEFROMCAPWFUNC)                          (LONG, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETFEEDERALIGNMENTFUNC)                   (DTWAIN_SOURCE, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETFEEDERFUNCSFUNC)                              (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETFEEDERORDERFUNC)                       (DTWAIN_SOURCE, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETFEEDERWAITTIMEFUNC)                           (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETFILECOMPRESSIONTYPEFUNC)                      (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETFILESAVEPAGECOUNTFUNC)                        (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETFILETYPEEXTENSIONSFUNC)                       (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETFILETYPEEXTENSIONSAFUNC)                      (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETFILETYPEEXTENSIONSWFUNC)                      (LONG, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETFILETYPENAMEFUNC)                             (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETFILETYPENAMEAFUNC)                            (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETFILETYPENAMEWFUNC)                            (LONG, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETHALFTONEFUNC)                          (DTWAIN_SOURCE, LPTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETHALFTONEAFUNC)                         (DTWAIN_SOURCE, LPSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETHALFTONEWFUNC)                         (DTWAIN_SOURCE, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETHIGHLIGHTFUNC)                         (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETHIGHLIGHTSTRINGFUNC)                   (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETHIGHLIGHTSTRINGAFUNC)                  (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETHIGHLIGHTSTRINGWFUNC)                  (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETIMAGEINFOFUNC)                         (DTWAIN_SOURCE, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETIMAGEINFOSTRINGFUNC)                   (DTWAIN_SOURCE, LPTSTR, LPTSTR, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETIMAGEINFOSTRINGAFUNC)                  (DTWAIN_SOURCE, LPSTR, LPSTR, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETIMAGEINFOSTRINGWFUNC)                  (DTWAIN_SOURCE, LPWSTR, LPWSTR, LPLONG, LPLONG, LPLONG, LPDTWAIN_ARRAY, LPLONG, LPLONG, LPLONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETJOBCONTROLFUNC)                        (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETJOBCONTROLEXFUNC)                             (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETJPEGVALUESFUNC)                        (DTWAIN_SOURCE, LPLONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETJPEGXRVALUESFUNC)                      (DTWAIN_SOURCE, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETLANGUAGEFUNC)                                 (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETLASTERRORFUNC)                                (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETLIBRARYPATHFUNC)                              (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETLIBRARYPATHAFUNC)                             (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETLIBRARYPATHWFUNC)                             (LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETLIGHTPATHFUNC)                         (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETLIGHTPATHEXFUNC)                       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETLIGHTSOURCEFUNC)                       (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETLIGHTSOURCESFUNC)                      (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETLIGHTSOURCESEXFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_LOGGER_PROC (DLLENTRY_DEF * D_GETLOGGERCALLBACKFUNC)             (VOID_PROTOTYPE);
typedef DTWAIN_LOGGER_PROCA (DLLENTRY_DEF * D_GETLOGGERCALLBACKAFUNC)           (VOID_PROTOTYPE);
typedef DTWAIN_LOGGER_PROCW (DLLENTRY_DEF * D_GETLOGGERCALLBACKWFUNC)           (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETMANUALDUPLEXCOUNTFUNC)                 (DTWAIN_SOURCE, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETMAXACQUISITIONSFUNC)                          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETMAXBUFFERSFUNC)                        (DTWAIN_SOURCE, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETMAXPAGESTOACQUIREFUNC)                        (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETMAXRETRYATTEMPTSFUNC)                         (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETNAMEFROMCAPFUNC)                              (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETNAMEFROMCAPAFUNC)                             (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETNAMEFROMCAPWFUNC)                             (LONG, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETNOISEFILTERFUNC)                       (DTWAIN_SOURCE, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETNUMACQUIREDIMAGESFUNC)                        (DTWAIN_ARRAY, LONG);
typedef LONG (DLLENTRY_DEF * D_GETNUMACQUISITIONSFUNC)                          (DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETOCRCAPVALUESFUNC)                      (DTWAIN_OCRENGINE, LONG, LONG, LPDTWAIN_ARRAY);
typedef LONG (DLLENTRY_DEF * D_GETOCRERRORSTRINGFUNC)                           (DTWAIN_OCRENGINE, LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRERRORSTRINGAFUNC)                          (DTWAIN_OCRENGINE, LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRERRORSTRINGWFUNC)                          (DTWAIN_OCRENGINE, LONG, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRLASTERRORFUNC)                             (DTWAIN_OCRENGINE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETOCRMAJORMINORVERSIONFUNC)              (DTWAIN_OCRENGINE, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRMANUFACTURERFUNC)                          (DTWAIN_OCRENGINE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRMANUFACTURERAFUNC)                         (DTWAIN_OCRENGINE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRMANUFACTURERWFUNC)                         (DTWAIN_OCRENGINE, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRPRODUCTFAMILYFUNC)                         (DTWAIN_OCRENGINE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRPRODUCTFAMILYAFUNC)                        (DTWAIN_OCRENGINE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRPRODUCTFAMILYWFUNC)                        (DTWAIN_OCRENGINE, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRPRODUCTNAMEFUNC)                           (DTWAIN_OCRENGINE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRPRODUCTNAMEAFUNC)                          (DTWAIN_OCRENGINE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRPRODUCTNAMEWFUNC)                          (DTWAIN_OCRENGINE, LPWSTR, LONG);
typedef HANDLE (DLLENTRY_DEF * D_GETOCRTEXTFUNC)                                (DTWAIN_OCRENGINE, LONG, LPTSTR, LONG, LPLONG, LONG);
typedef HANDLE (DLLENTRY_DEF * D_GETOCRTEXTAFUNC)                               (DTWAIN_OCRENGINE, LONG, LPSTR, LONG, LPLONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETOCRTEXTINFOFLOATFUNC)                  (DTWAIN_OCRTEXTINFOHANDLE, LONG, LONG, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETOCRTEXTINFOFLOATEXFUNC)                (DTWAIN_OCRTEXTINFOHANDLE, LONG, LPDTWAIN_FLOAT, LONG);
typedef DTWAIN_OCRTEXTINFOHANDLE (DLLENTRY_DEF * D_GETOCRTEXTINFOHANDLEFUNC)    (DTWAIN_OCRENGINE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETOCRTEXTINFOLONGFUNC)                   (DTWAIN_OCRTEXTINFOHANDLE, LONG, LONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETOCRTEXTINFOLONGEXFUNC)                 (DTWAIN_OCRTEXTINFOHANDLE, LONG, LPLONG, LONG);
typedef HANDLE (DLLENTRY_DEF * D_GETOCRTEXTWFUNC)                               (DTWAIN_OCRENGINE, LONG, LPWSTR, LONG, LPLONG, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRVERSIONINFOFUNC)                           (DTWAIN_OCRENGINE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRVERSIONINFOAFUNC)                          (DTWAIN_OCRENGINE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETOCRVERSIONINFOWFUNC)                          (DTWAIN_OCRENGINE, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETORIENTATIONFUNC)                       (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETORIENTATIONEXFUNC)                            (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETOVERSCANFUNC)                          (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPDFTEXTELEMENTFLOATFUNC)               (DTWAIN_PDFTEXTELEMENT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPDFTEXTELEMENTLONGFUNC)                (DTWAIN_PDFTEXTELEMENT, LPLONG, LPLONG, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPDFTEXTELEMENTSTRINGFUNC)                     (DTWAIN_PDFTEXTELEMENT, LPTSTR, LONG, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPDFTEXTELEMENTSTRINGAFUNC)                    (DTWAIN_PDFTEXTELEMENT, LPSTR, LONG, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPDFTEXTELEMENTSTRINGWFUNC)                    (DTWAIN_PDFTEXTELEMENT, LPWSTR, LONG, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPDFTYPE1FONTNAMEFUNC)                         (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPDFTYPE1FONTNAMEAFUNC)                        (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPDFTYPE1FONTNAMEWFUNC)                        (LONG, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPAPERSIZEFUNC)                         (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETPAPERSIZENAMEFUNC)                            (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPAPERSIZENAMEAFUNC)                           (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETPAPERSIZENAMEWFUNC)                           (LONG, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPATCHCODEMAXPRIORITIESFUNC)            (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPATCHCODEMAXRETRIESFUNC)               (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPATCHCODEPRIORITIESFUNC)               (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPATCHCODESEARCHMODEFUNC)               (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPATCHCODETIMEOUTFUNC)                  (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPIXELFLAVORFUNC)                       (DTWAIN_SOURCE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPIXELTYPEFUNC)                         (DTWAIN_SOURCE, LPLONG, LPLONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPRINTERFUNC)                           (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETPRINTEREXFUNC)                                (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPRINTERSTARTNUMBERFUNC)                (DTWAIN_SOURCE, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETPRINTERSTARTNUMBEREXFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPRINTERSTRINGMODEFUNC)                 (DTWAIN_SOURCE, LPLONG, DTWAIN_BOOL);
typedef LONG (DLLENTRY_DEF * D_GETPRINTERSTRINGMODEEXFUNC)                      (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPRINTERSTRINGSFUNC)                    (DTWAIN_SOURCE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETPRINTERSTRINGSEXFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPRINTERSUFFIXSTRINGFUNC)               (DTWAIN_SOURCE, LPTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPRINTERSUFFIXSTRINGAFUNC)              (DTWAIN_SOURCE, LPSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETPRINTERSUFFIXSTRINGWFUNC)              (DTWAIN_SOURCE, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETREGISTEREDMSGFUNC)                            (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETRESOLUTIONFUNC)                        (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_FLOAT (DLLENTRY_DEF * D_GETRESOLUTIONEXFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETRESOLUTIONSTRINGFUNC)                  (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETRESOLUTIONSTRINGAFUNC)                 (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETRESOLUTIONSTRINGWFUNC)                 (DTWAIN_SOURCE, LPWSTR);
typedef LONG (DLLENTRY_DEF * D_GETRESOURCESTRINGFUNC)                           (LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETRESOURCESTRINGAFUNC)                          (LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETRESOURCESTRINGWFUNC)                          (LONG, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETROTATIONFUNC)                          (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_FLOAT (DLLENTRY_DEF * D_GETROTATIONEXFUNC)                       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETROTATIONSTRINGFUNC)                    (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETROTATIONSTRINGAFUNC)                   (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETROTATIONSTRINGWFUNC)                   (DTWAIN_SOURCE, LPWSTR);
typedef LONG (DLLENTRY_DEF * D_GETSAVEFILENAMEFUNC)                             (DTWAIN_SOURCE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSAVEFILENAMEAFUNC)                            (DTWAIN_SOURCE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSAVEFILENAMEWFUNC)                            (DTWAIN_SOURCE, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSESSIONDETAILSFUNC)                           (LPTSTR, LONG, LONG, BOOL);
typedef LONG (DLLENTRY_DEF * D_GETSESSIONDETAILSAFUNC)                          (LPSTR, LONG, LONG, BOOL);
typedef LONG (DLLENTRY_DEF * D_GETSESSIONDETAILSWFUNC)                          (LPWSTR, LONG, LONG, BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETSHADOWFUNC)                            (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETSHADOWSTRINGFUNC)                      (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETSHADOWSTRINGAFUNC)                     (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETSHADOWSTRINGWFUNC)                     (DTWAIN_SOURCE, LPWSTR);
typedef LONG (DLLENTRY_DEF * D_GETSHORTVERSIONSTRINGFUNC)                       (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSHORTVERSIONSTRINGAFUNC)                      (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSHORTVERSIONSTRINGWFUNC)                      (LPWSTR, LONG);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_GETSOURCEACQUISITIONSFUNC)               (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEDETAILSFUNC)                            (LPCTSTR, LPTSTR, LONG, LONG, BOOL);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEDETAILSAFUNC)                           (LPCSTR, LPSTR, LONG, LONG, BOOL);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEDETAILSWFUNC)                           (LPCWSTR, LPWSTR, LONG, LONG, BOOL);
typedef DTWAIN_IDENTITY (DLLENTRY_DEF * D_GETSOURCEIDFUNC)                      (DTWAIN_SOURCE);
typedef TWAIN_IDENTITY (DLLENTRY_DEF * D_GETSOURCEIDEXFUNC)                     (DTWAIN_SOURCE, TW_IDENTITY*);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEMANUFACTURERFUNC)                       (DTWAIN_SOURCE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEMANUFACTURERAFUNC)                      (DTWAIN_SOURCE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEMANUFACTURERWFUNC)                      (DTWAIN_SOURCE, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEPRODUCTFAMILYFUNC)                      (DTWAIN_SOURCE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEPRODUCTFAMILYAFUNC)                     (DTWAIN_SOURCE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEPRODUCTFAMILYWFUNC)                     (DTWAIN_SOURCE, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEPRODUCTNAMEFUNC)                        (DTWAIN_SOURCE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEPRODUCTNAMEAFUNC)                       (DTWAIN_SOURCE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEPRODUCTNAMEWFUNC)                       (DTWAIN_SOURCE, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETSOURCEUNITFUNC)                        (DTWAIN_SOURCE, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEUNITEXFUNC)                             (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEVERSIONINFOFUNC)                        (DTWAIN_SOURCE, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEVERSIONINFOAFUNC)                       (DTWAIN_SOURCE, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETSOURCEVERSIONINFOWFUNC)                       (DTWAIN_SOURCE, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETSOURCEVERSIONNUMBERFUNC)               (DTWAIN_SOURCE, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETSTATICLIBVERSIONFUNC)                         (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETTEMPFILEDIRECTORYFUNC)                        (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTEMPFILEDIRECTORYAFUNC)                       (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTEMPFILEDIRECTORYWFUNC)                       (LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETTHRESHOLDFUNC)                         (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETTHRESHOLDSTRINGFUNC)                   (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETTHRESHOLDSTRINGAFUNC)                  (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETTHRESHOLDSTRINGWFUNC)                  (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETTIMEDATEFUNC)                          (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETTIMEDATEAFUNC)                         (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETTIMEDATEWFUNC)                         (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_IDENTITY (DLLENTRY_DEF * D_GETTWAINAPPIDFUNC)                    (VOID_PROTOTYPE);
typedef TWAIN_IDENTITY (DLLENTRY_DEF * D_GETTWAINAPPIDEXFUNC)                   (TW_IDENTITY*);
typedef LONG (DLLENTRY_DEF * D_GETTWAINAVAILABILITYFUNC)                        (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETTWAINAVAILABILITYEXFUNC)                      (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINAVAILABILITYEXAFUNC)                     (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINAVAILABILITYEXWFUNC)                     (LPWSTR, LONG);
typedef HWND (DLLENTRY_DEF * D_GETTWAINHWNDFUNC)                                (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETTWAINMODEFUNC)                                (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_GETTWAINNAMEFROMCONSTANTFUNC)                    (LONG, LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINNAMEFROMCONSTANTAFUNC)                   (LONG, LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINNAMEFROMCONSTANTEXFUNC)                  (LONG, LONG, LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINNAMEFROMCONSTANTEXAFUNC)                 (LONG, LONG, LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINNAMEFROMCONSTANTEXWFUNC)                 (LONG, LONG, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINNAMEFROMCONSTANTWFUNC)                   (LONG, LONG, LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETTWAINTIMEOUTFUNC)                             (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETVERSIONFUNC)                           (LPLONG, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONCOPYRIGHTFUNC)                         (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONCOPYRIGHTAFUNC)                        (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONCOPYRIGHTWFUNC)                        (LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETVERSIONEXFUNC)                         (LPLONG, LPLONG, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONINFOFUNC)                              (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONINFOAFUNC)                             (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONINFOWFUNC)                             (LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONSTRINGFUNC)                            (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONSTRINGAFUNC)                           (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETVERSIONSTRINGWFUNC)                           (LPWSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETWINDOWSVERSIONINFOFUNC)                       (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETWINDOWSVERSIONINFOAFUNC)                      (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_GETWINDOWSVERSIONINFOWFUNC)                      (LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETXRESOLUTIONFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETXRESOLUTIONSTRINGFUNC)                 (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETXRESOLUTIONSTRINGAFUNC)                (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETXRESOLUTIONSTRINGWFUNC)                (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETYRESOLUTIONFUNC)                       (DTWAIN_SOURCE, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETYRESOLUTIONSTRINGFUNC)                 (DTWAIN_SOURCE, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETYRESOLUTIONSTRINGAFUNC)                (DTWAIN_SOURCE, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_GETYRESOLUTIONSTRINGWFUNC)                (DTWAIN_SOURCE, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_INITEXTIMAGEINFOFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_INITIMAGEFILEAPPENDFUNC)                  (LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_INITIMAGEFILEAPPENDAFUNC)                 (LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_INITIMAGEFILEAPPENDWFUNC)                 (LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_INITOCRINTERFACEFUNC)                     (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISACQUIRINGFUNC)                          (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUDIOXFERSUPPORTEDFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOBORDERDETECTENABLEDFUNC)            (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOBORDERDETECTSUPPORTEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOBRIGHTENABLEDFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOBRIGHTSUPPORTEDFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTODESKEWENABLEDFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTODESKEWSUPPORTEDFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOFEEDENABLEDFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOFEEDSUPPORTEDFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOROTATEENABLEDFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOROTATESUPPORTEDFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOSCANENABLEDFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOMATICSENSEMEDIUMENABLEDFUNC)        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISAUTOMATICSENSEMEDIUMSUPPORTEDFUNC)      (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISBARCODECAPSSUPPORTEDFUNC)               (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISBARCODEDETECTIONENABLEDFUNC)            (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISBARCODESUPPORTEDFUNC)                   (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISBLANKPAGEDETECTIONONFUNC)               (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISBUFFEREDTILEMODEONFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISBUFFEREDTILEMODESUPPORTEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISCAPSUPPORTEDFUNC)                       (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISCOMPRESSIONSUPPORTEDFUNC)               (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISCUSTOMDSDATASUPPORTEDFUNC)              (DTWAIN_SOURCE);
typedef LONG (DLLENTRY_DEF * D_ISDIBBLANKFUNC)                                  (HANDLE, DTWAIN_FLOAT);
typedef LONG (DLLENTRY_DEF * D_ISDIBBLANKSTRINGFUNC)                            (HANDLE, LPCTSTR);
typedef LONG (DLLENTRY_DEF * D_ISDIBBLANKSTRINGAFUNC)                           (HANDLE, LPCSTR);
typedef LONG (DLLENTRY_DEF * D_ISDIBBLANKSTRINGWFUNC)                           (HANDLE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISDEVICEEVENTSUPPORTEDFUNC)               (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISDEVICEONLINEFUNC)                       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISDOUBLEFEEDDETECTLENGTHSUPPORTEDFUNC)    (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISDOUBLEFEEDDETECTSUPPORTEDFUNC)          (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISDOUBLEPAGECOUNTONDUPLEXFUNC)            (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISDUPLEXENABLEDFUNC)                      (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISDUPLEXSUPPORTEDFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISEXTIMAGEINFOSUPPORTEDFUNC)              (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISFEEDERENABLEDFUNC)                      (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISFEEDERLOADEDFUNC)                       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISFEEDERSENSITIVEFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISFEEDERSUPPORTEDFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISFILESYSTEMSUPPORTEDFUNC)                (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISFILEXFERSUPPORTEDFUNC)                  (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISGETMESSAGELOOPDETECTIONONFUNC)          (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISGETMESSAGELOOPENABLEDFUNC)              (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDALASTPAGESUPPORTEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDALEVELSUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDAPRINTFORMATSUPPORTEDFUNC)       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDAVALUESUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDBLASTPAGESUPPORTEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDBLEVELSUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDBPRINTFORMATSUPPORTEDFUNC)       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDBVALUESUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDCLASTPAGESUPPORTEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDCLEVELSUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDCPRINTFORMATSUPPORTEDFUNC)       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDCVALUESUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDDLASTPAGESUPPORTEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDDLEVELSUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDDPRINTFORMATSUPPORTEDFUNC)       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDDVALUESUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDELASTPAGESUPPORTEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDELEVELSUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDEPRINTFORMATSUPPORTEDFUNC)       (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIAFIELDEVALUESUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISIMAGEADDRESSINGSUPPORTEDFUNC)           (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISINDICATORENABLEDFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISINDICATORSUPPORTEDFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISINITIALIZEDFUNC)                        (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISJOBCONTROLSUPPORTEDFUNC)                (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISLAMPENABLEDFUNC)                        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISLAMPSUPPORTEDFUNC)                      (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISLIGHTPATHSUPPORTEDFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISLIGHTSOURCESUPPORTEDFUNC)               (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISMAXBUFFERSSUPPORTEDFUNC)                (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISMEMFILEXFERSUPPORTEDFUNC)               (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISMSGNOTIFYENABLEDFUNC)                   (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISNOTIFYTRIPLETSENABLEDFUNC)              (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISOCRENGINEACTIVATEDFUNC)                 (DTWAIN_OCRENGINE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISOPENSOURCESONSELECTFUNC)                (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISORIENTATIONSUPPORTEDFUNC)               (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISOVERSCANSUPPORTEDFUNC)                  (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPAPERDETECTABLEFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPAPERSIZESUPPORTEDFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPATCHCODECAPSSUPPORTEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPATCHCODEDETECTIONENABLEDFUNC)          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPATCHCODESUPPORTEDFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPEEKMESSAGELOOPENABLEDFUNC)             (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPIXELTYPESUPPORTEDFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPRINTERENABLEDFUNC)                     (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISPRINTERSUPPORTEDFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISROTATIONSUPPORTEDFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSESSIONENABLEDFUNC)                     (VOID_PROTOTYPE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSKIPIMAGEINFOERRORFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSOURCEACQUIRINGFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSOURCEACQUIRINGEXFUNC)                  (DTWAIN_SOURCE, BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSOURCEINUIONLYMODEFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSOURCEOPENFUNC)                         (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSOURCESELECTEDFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISSOURCEVALIDFUNC)                        (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISTHUMBNAILENABLEDFUNC)                   (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISTHUMBNAILSUPPORTEDFUNC)                 (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISTWAINAVAILABLEFUNC)                     (VOID_PROTOTYPE);
typedef LONG (DLLENTRY_DEF * D_ISTWAINAVAILABLEEXFUNC)                          (LPTSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_ISTWAINAVAILABLEEXAFUNC)                         (LPSTR, LONG);
typedef LONG (DLLENTRY_DEF * D_ISTWAINAVAILABLEEXWFUNC)                         (LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISTWAINMSGFUNC)                           (MSG*);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISUICONTROLLABLEFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISUIENABLEDFUNC)                          (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_ISUIONLYSUPPORTEDFUNC)                    (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOADCUSTOMSTRINGRESOURCESFUNC)            (LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOADCUSTOMSTRINGRESOURCESAFUNC)           (LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOADCUSTOMSTRINGRESOURCESEXFUNC)          (LPCTSTR, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOADCUSTOMSTRINGRESOURCESEXAFUNC)         (LPCSTR, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOADCUSTOMSTRINGRESOURCESEXWFUNC)         (LPCWSTR, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOADCUSTOMSTRINGRESOURCESWFUNC)           (LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOADLANGUAGERESOURCEFUNC)                 (LONG);
typedef DTWAIN_MEMORY_PTR (DLLENTRY_DEF * D_LOCKMEMORYFUNC)                     (HANDLE);
typedef DTWAIN_MEMORY_PTR (DLLENTRY_DEF * D_LOCKMEMORYEXFUNC)                   (HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOGMESSAGEFUNC)                           (LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOGMESSAGEAFUNC)                          (LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_LOGMESSAGEWFUNC)                          (LPCWSTR);
typedef LONG (DLLENTRY_DEF * D_MAKERGBFUNC)                                     (LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_OPENSOURCEFUNC)                           (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_OPENSOURCESONSELECTFUNC)                  (DTWAIN_BOOL);
typedef DTWAIN_RANGE (DLLENTRY_DEF * D_RANGECREATEFUNC)                         (LONG);
typedef DTWAIN_RANGE (DLLENTRY_DEF * D_RANGECREATEFROMCAPFUNC)                  (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEDESTROYFUNC)                         (DTWAIN_RANGE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEEXPANDFUNC)                          (DTWAIN_RANGE, LPDTWAIN_ARRAY);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_RANGEEXPANDEXFUNC)                       (DTWAIN_RANGE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETALLFUNC)                          (DTWAIN_RANGE, LPVOID, LPVOID, LPVOID, LPVOID, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETALLFLOATFUNC)                     (DTWAIN_RANGE, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETALLFLOATSTRINGFUNC)               (DTWAIN_RANGE, LPTSTR, LPTSTR, LPTSTR, LPTSTR, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETALLFLOATSTRINGAFUNC)              (DTWAIN_RANGE, LPSTR, LPSTR, LPSTR, LPSTR, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETALLFLOATSTRINGWFUNC)              (DTWAIN_RANGE, LPWSTR, LPWSTR, LPWSTR, LPWSTR, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETALLLONGFUNC)                      (DTWAIN_RANGE, LPLONG, LPLONG, LPLONG, LPLONG, LPLONG);
typedef LONG (DLLENTRY_DEF * D_RANGEGETCOUNTFUNC)                               (DTWAIN_RANGE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETEXPVALUEFUNC)                     (DTWAIN_RANGE, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETEXPVALUEFLOATFUNC)                (DTWAIN_RANGE, LONG, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETEXPVALUEFLOATSTRINGFUNC)          (DTWAIN_RANGE, LONG, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETEXPVALUEFLOATSTRINGAFUNC)         (DTWAIN_RANGE, LONG, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETEXPVALUEFLOATSTRINGWFUNC)         (DTWAIN_RANGE, LONG, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETEXPVALUELONGFUNC)                 (DTWAIN_RANGE, LONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETNEARESTVALUEFUNC)                 (DTWAIN_RANGE, LPVOID, LPVOID, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETNEARESTVALUEFLOATFUNC)            (DTWAIN_RANGE, DTWAIN_FLOAT, LPDTWAIN_FLOAT, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETNEARESTVALUEFLOATSTRINGFUNC)      (DTWAIN_RANGE, LPCTSTR, LPTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETNEARESTVALUEFLOATSTRINGAFUNC)     (DTWAIN_RANGE, LPCSTR, LPSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETNEARESTVALUEFLOATSTRINGWFUNC)     (DTWAIN_RANGE, LPCWSTR, LPWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETNEARESTVALUELONGFUNC)             (DTWAIN_RANGE, LONG, LPLONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETPOSFUNC)                          (DTWAIN_RANGE, LPVOID, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETPOSFLOATFUNC)                     (DTWAIN_RANGE, DTWAIN_FLOAT, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETPOSFLOATSTRINGFUNC)               (DTWAIN_RANGE, LPCTSTR, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETPOSFLOATSTRINGAFUNC)              (DTWAIN_RANGE, LPCSTR, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETPOSFLOATSTRINGWFUNC)              (DTWAIN_RANGE, LPCWSTR, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETPOSLONGFUNC)                      (DTWAIN_RANGE, LONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETVALUEFUNC)                        (DTWAIN_RANGE, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETVALUEFLOATFUNC)                   (DTWAIN_RANGE, LONG, LPDTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETVALUEFLOATSTRINGFUNC)             (DTWAIN_RANGE, LONG, LPTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETVALUEFLOATSTRINGAFUNC)            (DTWAIN_RANGE, LONG, LPSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETVALUEFLOATSTRINGWFUNC)            (DTWAIN_RANGE, LONG, LPWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEGETVALUELONGFUNC)                    (DTWAIN_RANGE, LONG, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGEISVALIDFUNC)                         (DTWAIN_RANGE, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETALLFUNC)                          (DTWAIN_RANGE, LPVOID, LPVOID, LPVOID, LPVOID, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETALLFLOATFUNC)                     (DTWAIN_RANGE, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETALLFLOATSTRINGFUNC)               (DTWAIN_RANGE, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETALLFLOATSTRINGAFUNC)              (DTWAIN_RANGE, LPCSTR, LPCSTR, LPCSTR, LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETALLFLOATSTRINGWFUNC)              (DTWAIN_RANGE, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETALLLONGFUNC)                      (DTWAIN_RANGE, LONG, LONG, LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETVALUEFUNC)                        (DTWAIN_RANGE, LONG, LPVOID);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETVALUEFLOATFUNC)                   (DTWAIN_RANGE, LONG, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETVALUEFLOATSTRINGFUNC)             (DTWAIN_RANGE, LONG, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETVALUEFLOATSTRINGAFUNC)            (DTWAIN_RANGE, LONG, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETVALUEFLOATSTRINGWFUNC)            (DTWAIN_RANGE, LONG, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RANGESETVALUELONGFUNC)                    (DTWAIN_RANGE, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_REMOVEPDFTEXTELEMENTFUNC)                 (DTWAIN_SOURCE, DTWAIN_PDFTEXTELEMENT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_RESETPDFTEXTELEMENTFUNC)                  (DTWAIN_PDFTEXTELEMENT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_REWINDPAGEFUNC)                           (DTWAIN_SOURCE);
typedef HANDLE (DLLENTRY_DEF * D_ROTATEIMAGEFUNC)                               (HANDLE, DTWAIN_FLOAT);
typedef HANDLE (DLLENTRY_DEF * D_ROTATEIMAGESTRINGFUNC)                         (HANDLE, LPCTSTR);
typedef HANDLE (DLLENTRY_DEF * D_ROTATEIMAGESTRINGAFUNC)                        (HANDLE, LPCSTR);
typedef HANDLE (DLLENTRY_DEF * D_ROTATEIMAGESTRINGWFUNC)                        (HANDLE, LPCWSTR);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTDEFAULTOCRENGINEFUNC)          (VOID_PROTOTYPE);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTDEFAULTSOURCEFUNC)                (VOID_PROTOTYPE);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTDEFAULTSOURCEWITHOPENFUNC)        (DTWAIN_BOOL);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINEFUNC)                 (VOID_PROTOTYPE);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINE2FUNC)                (HWND, LPCTSTR, LONG, LONG, LONG);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINE2AFUNC)               (HWND, LPCSTR, LONG, LONG, LONG);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINE2EXFUNC)              (HWND, LPCTSTR, LONG, LONG, LPCTSTR, LPCTSTR, LPCTSTR, LONG);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINE2EXAFUNC)             (HWND, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LPCSTR, LONG);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINE2EXWFUNC)             (HWND, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LONG);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINE2WFUNC)               (HWND, LPCWSTR, LONG, LONG, LONG);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINEBYNAMEFUNC)           (LPCTSTR);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINEBYNAMEAFUNC)          (LPCSTR);
typedef DTWAIN_OCRENGINE (DLLENTRY_DEF * D_SELECTOCRENGINEBYNAMEWFUNC)          (LPCWSTR);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEFUNC)                       (VOID_PROTOTYPE);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCE2FUNC)                      (HWND, LPCTSTR, LONG, LONG, LONG);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCE2AFUNC)                     (HWND, LPCSTR, LONG, LONG, LONG);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCE2EXFUNC)                    (HWND, LPCTSTR, LONG, LONG, LPCTSTR, LPCTSTR, LPCTSTR, LONG);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCE2EXAFUNC)                   (HWND, LPCSTR, LONG, LONG, LPCSTR, LPCSTR, LPCSTR, LONG);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCE2EXWFUNC)                   (HWND, LPCWSTR, LONG, LONG, LPCWSTR, LPCWSTR, LPCWSTR, LONG);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCE2WFUNC)                     (HWND, LPCWSTR, LONG, LONG, LONG);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEBYNAMEFUNC)                 (LPCTSTR);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEBYNAMEAFUNC)                (LPCSTR);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEBYNAMEWFUNC)                (LPCWSTR);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEBYNAMEWITHOPENFUNC)         (LPCTSTR, DTWAIN_BOOL);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEBYNAMEWITHOPENAFUNC)        (LPCSTR, DTWAIN_BOOL);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEBYNAMEWITHOPENWFUNC)        (LPCWSTR, DTWAIN_BOOL);
typedef DTWAIN_SOURCE (DLLENTRY_DEF * D_SELECTSOURCEWITHOPENFUNC)               (DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREAREAFUNC)                       (DTWAIN_SOURCE, LONG, DTWAIN_ARRAY, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREAREA2FUNC)                      (DTWAIN_SOURCE, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREAREA2STRINGFUNC)                (DTWAIN_SOURCE, LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREAREA2STRINGAFUNC)               (DTWAIN_SOURCE, LPCSTR, LPCSTR, LPCSTR, LPCSTR, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREAREA2STRINGWFUNC)               (DTWAIN_SOURCE, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREIMAGENEGATIVEFUNC)              (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREIMAGESCALEFUNC)                 (DTWAIN_SOURCE, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREIMAGESCALESTRINGFUNC)           (DTWAIN_SOURCE, LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREIMAGESCALESTRINGAFUNC)          (DTWAIN_SOURCE, LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIREIMAGESCALESTRINGWFUNC)          (DTWAIN_SOURCE, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIRESTRIPBUFFERFUNC)                (DTWAIN_SOURCE, HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETACQUIRESTRIPSIZEFUNC)                  (DTWAIN_SOURCE, DWORD);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETALARMVOLUMEFUNC)                       (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETALARMSFUNC)                            (DTWAIN_SOURCE, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETALLCAPSTODEFAULTFUNC)                  (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAPPINFOFUNC)                           (LPCTSTR, LPCTSTR, LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAPPINFOAFUNC)                          (LPCSTR, LPCSTR, LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAPPINFOWFUNC)                          (LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAUTHORFUNC)                            (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAUTHORAFUNC)                           (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAUTHORWFUNC)                           (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAVAILABLEPRINTERSFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETAVAILABLEPRINTERSARRAYFUNC)            (DTWAIN_SOURCE, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBARCODEMAXPRIORITIESFUNC)              (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBARCODEMAXRETRIESFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBARCODEPRIORITIESFUNC)                 (DTWAIN_SOURCE, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBARCODESEARCHMODEFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBARCODETIMEOUTFUNC)                    (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBITDEPTHFUNC)                          (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONFUNC)                (DTWAIN_SOURCE, DTWAIN_FLOAT, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONEXFUNC)              (DTWAIN_SOURCE, DTWAIN_FLOAT, LONG, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONEXSTRINGFUNC)        (DTWAIN_SOURCE, LPCTSTR, LONG, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONEXSTRINGAFUNC)       (DTWAIN_SOURCE, LPCSTR, LONG, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONEXSTRINGWFUNC)       (DTWAIN_SOURCE, LPCWSTR, LONG, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONSTRINGFUNC)          (DTWAIN_SOURCE, LPCTSTR, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONSTRINGAFUNC)         (DTWAIN_SOURCE, LPCSTR, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBLANKPAGEDETECTIONSTRINGWFUNC)         (DTWAIN_SOURCE, LPCWSTR, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBRIGHTNESSFUNC)                        (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBRIGHTNESSSTRINGFUNC)                  (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBRIGHTNESSSTRINGAFUNC)                 (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBRIGHTNESSSTRINGWFUNC)                 (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETBUFFEREDTILEMODEFUNC)                  (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_CALLBACK_PROC (DLLENTRY_DEF * D_SETCALLBACKFUNC)                 (DTWAIN_CALLBACK_PROC, LONG);
typedef DTWAIN_CALLBACK_PROC64 (DLLENTRY_DEF * D_SETCALLBACK64FUNC)             (DTWAIN_CALLBACK_PROC64, DTWAIN_LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAMERAFUNC)                            (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAMERAAFUNC)                           (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAMERAWFUNC)                           (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAPVALUESFUNC)                         (DTWAIN_SOURCE, LONG, LONG, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAPVALUESEXFUNC)                       (DTWAIN_SOURCE, LONG, LONG, LONG, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAPVALUESEX2FUNC)                      (DTWAIN_SOURCE, LONG, LONG, LONG, LONG, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAPTIONFUNC)                           (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAPTIONAFUNC)                          (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCAPTIONWFUNC)                          (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCOMPRESSIONTYPEFUNC)                   (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCONTRASTFUNC)                          (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCONTRASTSTRINGFUNC)                    (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCONTRASTSTRINGAFUNC)                   (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCONTRASTSTRINGWFUNC)                   (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCOUNTRYFUNC)                           (LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCURRENTRETRYCOUNTFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETCUSTOMDSDATAFUNC)                      (DTWAIN_SOURCE, HANDLE, LPCBYTE, DWORD, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDSMSEARCHORDERFUNC)                    (LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDSMSEARCHORDEREXFUNC)                  (LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDSMSEARCHORDEREXAFUNC)                 (LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDSMSEARCHORDEREXWFUNC)                 (LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDEFAULTSOURCEFUNC)                     (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDEVICENOTIFICATIONSFUNC)               (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDEVICETIMEDATEFUNC)                    (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDEVICETIMEDATEAFUNC)                   (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDEVICETIMEDATEWFUNC)                   (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDOUBLEFEEDDETECTLENGTHFUNC)            (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDOUBLEFEEDDETECTLENGTHSTRINGFUNC)      (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDOUBLEFEEDDETECTLENGTHSTRINGAFUNC)     (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDOUBLEFEEDDETECTLENGTHSTRINGWFUNC)     (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDOUBLEFEEDDETECTVALUESFUNC)            (DTWAIN_SOURCE, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETDOUBLEPAGECOUNTONDUPLEXFUNC)           (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETEOJDETECTVALUEFUNC)                    (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETERRORBUFFERTHRESHOLDFUNC)              (LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETERRORCALLBACKFUNC)                     (DTWAIN_ERROR_PROC, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETERRORCALLBACK64FUNC)                   (DTWAIN_ERROR_PROC64, DTWAIN_LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFEEDERALIGNMENTFUNC)                   (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFEEDERORDERFUNC)                       (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFEEDERWAITTIMEFUNC)                    (DTWAIN_SOURCE, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFILEAUTOINCREMENTFUNC)                 (DTWAIN_SOURCE, LONG, DTWAIN_BOOL, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFILECOMPRESSIONTYPEFUNC)               (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFILESAVEPOSFUNC)                       (HWND, LPCTSTR, LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFILESAVEPOSAFUNC)                      (HWND, LPCSTR, LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFILESAVEPOSWFUNC)                      (HWND, LPCWSTR, LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETFILEXFERFORMATFUNC)                    (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETHALFTONEFUNC)                          (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETHALFTONEAFUNC)                         (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETHALFTONEWFUNC)                         (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETHIGHLIGHTFUNC)                         (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETHIGHLIGHTSTRINGFUNC)                   (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETHIGHLIGHTSTRINGAFUNC)                  (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETHIGHLIGHTSTRINGWFUNC)                  (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETJOBCONTROLFUNC)                        (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETJPEGVALUESFUNC)                        (DTWAIN_SOURCE, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETJPEGXRVALUESFUNC)                      (DTWAIN_SOURCE, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLANGUAGEFUNC)                          (LONG);
typedef LONG (DLLENTRY_DEF * D_SETLASTERRORFUNC)                                (LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLIGHTPATHFUNC)                         (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLIGHTPATHEXFUNC)                       (DTWAIN_SOURCE, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLIGHTSOURCEFUNC)                       (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLIGHTSOURCESFUNC)                      (DTWAIN_SOURCE, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLOGSAVETHRESHOLDFUNC)                  (LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLOGGERCALLBACKFUNC)                    (DTWAIN_LOGGER_PROC, DTWAIN_LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLOGGERCALLBACKAFUNC)                   (DTWAIN_LOGGER_PROCA, DTWAIN_LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETLOGGERCALLBACKWFUNC)                   (DTWAIN_LOGGER_PROCW, DTWAIN_LONG64);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETMANUALDUPLEXMODEFUNC)                  (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETMAXACQUISITIONSFUNC)                   (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETMAXBUFFERSFUNC)                        (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETMAXRETRYATTEMPTSFUNC)                  (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETMULTIPAGESCANMODEFUNC)                 (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETNOISEFILTERFUNC)                       (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETOCRCAPVALUESFUNC)                      (DTWAIN_OCRENGINE, LONG, LONG, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETORIENTATIONFUNC)                       (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETOVERSCANFUNC)                          (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFAESENCRYPTIONFUNC)                  (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFASCIICOMPRESSIONFUNC)               (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFAUTHORFUNC)                         (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFAUTHORAFUNC)                        (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFAUTHORWFUNC)                        (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFCOMPRESSIONFUNC)                    (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFCREATORFUNC)                        (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFCREATORAFUNC)                       (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFCREATORWFUNC)                       (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFENCRYPTIONFUNC)                     (DTWAIN_SOURCE, DTWAIN_BOOL, LPCTSTR, LPCTSTR, DWORD, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFENCRYPTIONAFUNC)                    (DTWAIN_SOURCE, DTWAIN_BOOL, LPCSTR, LPCSTR, DWORD, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFENCRYPTIONWFUNC)                    (DTWAIN_SOURCE, DTWAIN_BOOL, LPCWSTR, LPCWSTR, DWORD, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFJPEGQUALITYFUNC)                    (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFKEYWORDSFUNC)                       (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFKEYWORDSAFUNC)                      (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFKEYWORDSWFUNC)                      (DTWAIN_SOURCE, LPCWSTR);
typedef LONG (DLLENTRY_DEF * D_SETPDFOCRCONVERSIONFUNC)                         (DTWAIN_OCRENGINE, LONG, LONG, LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFOCRMODEFUNC)                        (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFORIENTATIONFUNC)                    (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESCALEFUNC)                      (DTWAIN_SOURCE, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESCALESTRINGFUNC)                (DTWAIN_SOURCE, LONG, LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESCALESTRINGAFUNC)               (DTWAIN_SOURCE, LONG, LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESCALESTRINGWFUNC)               (DTWAIN_SOURCE, LONG, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESIZEFUNC)                       (DTWAIN_SOURCE, LONG, DTWAIN_FLOAT, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESIZESTRINGFUNC)                 (DTWAIN_SOURCE, LONG, LPCTSTR, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESIZESTRINGAFUNC)                (DTWAIN_SOURCE, LONG, LPCSTR, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPAGESIZESTRINGWFUNC)                (DTWAIN_SOURCE, LONG, LPCWSTR, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPOLARITYFUNC)                       (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPRODUCERFUNC)                       (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPRODUCERAFUNC)                      (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFPRODUCERWFUNC)                      (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFSUBJECTFUNC)                        (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFSUBJECTAFUNC)                       (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFSUBJECTWFUNC)                       (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTFLOATFUNC)               (DTWAIN_PDFTEXTELEMENT, DTWAIN_FLOAT, DTWAIN_FLOAT, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTFLOATSTRINGFUNC)         (DTWAIN_PDFTEXTELEMENT, LPCTSTR, LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTFLOATSTRINGAFUNC)        (DTWAIN_PDFTEXTELEMENT, LPCSTR, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTFLOATSTRINGWFUNC)        (DTWAIN_PDFTEXTELEMENT, LPCWSTR, LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTLONGFUNC)                (DTWAIN_PDFTEXTELEMENT, LONG, LONG, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTSTRINGFUNC)              (DTWAIN_PDFTEXTELEMENT, LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTSTRINGAFUNC)             (DTWAIN_PDFTEXTELEMENT, LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTEXTELEMENTSTRINGWFUNC)             (DTWAIN_PDFTEXTELEMENT, LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTITLEFUNC)                          (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTITLEAFUNC)                         (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPDFTITLEWFUNC)                         (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPAPERSIZEFUNC)                         (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPATCHCODEMAXPRIORITIESFUNC)            (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPATCHCODEMAXRETRIESFUNC)               (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPATCHCODEPRIORITIESFUNC)               (DTWAIN_SOURCE, DTWAIN_ARRAY);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPATCHCODESEARCHMODEFUNC)               (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPATCHCODETIMEOUTFUNC)                  (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPIXELFLAVORFUNC)                       (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPIXELTYPEFUNC)                         (DTWAIN_SOURCE, LONG, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPOSTSCRIPTTITLEFUNC)                   (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPOSTSCRIPTTITLEAFUNC)                  (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPOSTSCRIPTTITLEWFUNC)                  (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPOSTSCRIPTTYPEFUNC)                    (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTERFUNC)                           (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTEREXFUNC)                         (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTERSTARTNUMBERFUNC)                (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTERSTRINGMODEFUNC)                 (DTWAIN_SOURCE, LONG, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTERSTRINGSFUNC)                    (DTWAIN_SOURCE, DTWAIN_ARRAY, LPLONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTERSUFFIXSTRINGFUNC)               (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTERSUFFIXSTRINGAFUNC)              (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETPRINTERSUFFIXSTRINGWFUNC)              (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETQUERYCAPSUPPORTFUNC)                   (DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETRESOLUTIONFUNC)                        (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETRESOLUTIONSTRINGFUNC)                  (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETRESOLUTIONSTRINGAFUNC)                 (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETRESOLUTIONSTRINGWFUNC)                 (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETRESOURCEPATHFUNC)                      (LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETRESOURCEPATHAFUNC)                     (LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETRESOURCEPATHWFUNC)                     (LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETROTATIONFUNC)                          (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETROTATIONSTRINGFUNC)                    (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETROTATIONSTRINGAFUNC)                   (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETROTATIONSTRINGWFUNC)                   (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSAVEFILENAMEFUNC)                      (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSAVEFILENAMEAFUNC)                     (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSAVEFILENAMEWFUNC)                     (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSHADOWFUNC)                            (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSHADOWSTRINGFUNC)                      (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSHADOWSTRINGAFUNC)                     (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSHADOWSTRINGWFUNC)                     (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETSOURCEUNITFUNC)                        (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTIFFCOMPRESSTYPEFUNC)                  (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTIFFINVERTFUNC)                        (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTEMPFILEDIRECTORYFUNC)                 (LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTEMPFILEDIRECTORYAFUNC)                (LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTEMPFILEDIRECTORYEXFUNC)               (LPCTSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTEMPFILEDIRECTORYEXAFUNC)              (LPCSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTEMPFILEDIRECTORYEXWFUNC)              (LPCWSTR, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTEMPFILEDIRECTORYWFUNC)                (LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTHRESHOLDFUNC)                         (DTWAIN_SOURCE, DTWAIN_FLOAT, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTHRESHOLDSTRINGFUNC)                   (DTWAIN_SOURCE, LPCTSTR, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTHRESHOLDSTRINGAFUNC)                  (DTWAIN_SOURCE, LPCSTR, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTHRESHOLDSTRINGWFUNC)                  (DTWAIN_SOURCE, LPCWSTR, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTWAINDSMFUNC)                          (LONG);
typedef LONG (DLLENTRY_DEF * D_SETTWAINDIALOGFONTFUNC)                          (HFONT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTWAINLOGFUNC)                          (DWORD, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTWAINLOGAFUNC)                         (DWORD, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTWAINLOGWFUNC)                         (DWORD, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTWAINMODEFUNC)                         (LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETTWAINTIMEOUTFUNC)                      (LONG);
typedef DTWAIN_DIBUPDATE_PROC (DLLENTRY_DEF * D_SETUPDATEDIBPROCFUNC)           (DTWAIN_DIBUPDATE_PROC);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETXRESOLUTIONFUNC)                       (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETXRESOLUTIONSTRINGFUNC)                 (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETXRESOLUTIONSTRINGAFUNC)                (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETXRESOLUTIONSTRINGWFUNC)                (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETYRESOLUTIONFUNC)                       (DTWAIN_SOURCE, DTWAIN_FLOAT);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETYRESOLUTIONSTRINGFUNC)                 (DTWAIN_SOURCE, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETYRESOLUTIONSTRINGAFUNC)                (DTWAIN_SOURCE, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SETYRESOLUTIONSTRINGWFUNC)                (DTWAIN_SOURCE, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SHOWUIONLYFUNC)                           (DTWAIN_SOURCE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SHUTDOWNOCRENGINEFUNC)                    (DTWAIN_OCRENGINE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SKIPIMAGEINFOERRORFUNC)                   (DTWAIN_SOURCE, DTWAIN_BOOL);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_STARTTHREADFUNC)                          (DTWAIN_HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_STARTTWAINSESSIONFUNC)                    (HWND, LPCTSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_STARTTWAINSESSIONAFUNC)                   (HWND, LPCSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_STARTTWAINSESSIONWFUNC)                   (HWND, LPCWSTR);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_SYSDESTROYFUNC)                           (VOID_PROTOTYPE);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZEFUNC)                      (VOID_PROTOTYPE);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZEEXFUNC)                    (LPCTSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZEEX2FUNC)                   (LPCTSTR, LPCTSTR, LPCTSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZEEX2AFUNC)                  (LPCSTR, LPCSTR, LPCSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZEEX2WFUNC)                  (LPCWSTR, LPCWSTR, LPCWSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZEEXAFUNC)                   (LPCSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZEEXWFUNC)                   (LPCWSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZELIBFUNC)                   (HINSTANCE);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZELIBEXFUNC)                 (HINSTANCE, LPCTSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZELIBEX2FUNC)                (HINSTANCE, LPCTSTR, LPCTSTR, LPCTSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZELIBEX2AFUNC)               (HINSTANCE, LPCSTR, LPCSTR, LPCSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZELIBEX2WFUNC)               (HINSTANCE, LPCWSTR, LPCWSTR, LPCWSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZELIBEXAFUNC)                (HINSTANCE, LPCSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZELIBEXWFUNC)                (HINSTANCE, LPCWSTR);
typedef DTWAIN_HANDLE (DLLENTRY_DEF * D_SYSINITIALIZENOBLOCKINGFUNC)            (VOID_PROTOTYPE);
typedef DTWAIN_ARRAY (DLLENTRY_DEF * D_TESTGETCAPFUNC)                          (DTWAIN_SOURCE, LONG);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_UNLOCKMEMORYFUNC)                         (HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_UNLOCKMEMORYEXFUNC)                       (HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_UPDATECURRENTACQUIREDIMAGEFUNC)           (DTWAIN_SOURCE, HANDLE);
typedef DTWAIN_BOOL (DLLENTRY_DEF * D_USEMULTIPLETHREADSFUNC)                   (DTWAIN_BOOL);

#ifdef __cplusplus
}
#endif

#ifdef __cplusplus
    #define STATIC  static
    struct  DYNDTWAIN_API {
#else
    #define STATIC
     typedef struct tagDYNDTWAIN_API {
#endif


    STATIC D_ACQUIREAUDIOFILEFUNC                           DTWAIN_AcquireAudioFile;
    STATIC D_ACQUIREAUDIOFILEAFUNC                          DTWAIN_AcquireAudioFileA;
    STATIC D_ACQUIREAUDIOFILEWFUNC                          DTWAIN_AcquireAudioFileW;
    STATIC D_ACQUIREAUDIONATIVEFUNC                         DTWAIN_AcquireAudioNative;
    STATIC D_ACQUIREAUDIONATIVEEXFUNC                       DTWAIN_AcquireAudioNativeEx;
    STATIC D_ACQUIREBUFFEREDFUNC                            DTWAIN_AcquireBuffered;
    STATIC D_ACQUIREBUFFEREDEXFUNC                          DTWAIN_AcquireBufferedEx;
    STATIC D_ACQUIREFILEFUNC                                DTWAIN_AcquireFile;
    STATIC D_ACQUIREFILEAFUNC                               DTWAIN_AcquireFileA;
    STATIC D_ACQUIREFILEEXFUNC                              DTWAIN_AcquireFileEx;
    STATIC D_ACQUIREFILEWFUNC                               DTWAIN_AcquireFileW;
    STATIC D_ACQUIRENATIVEFUNC                              DTWAIN_AcquireNative;
    STATIC D_ACQUIRENATIVEEXFUNC                            DTWAIN_AcquireNativeEx;
    STATIC D_ACQUIRETOCLIPBOARDFUNC                         DTWAIN_AcquireToClipboard;
    STATIC D_ADDEXTIMAGEINFOQUERYFUNC                       DTWAIN_AddExtImageInfoQuery;
    STATIC D_ADDFILETOAPPENDFUNC                            DTWAIN_AddFileToAppend;
    STATIC D_ADDFILETOAPPENDAFUNC                           DTWAIN_AddFileToAppendA;
    STATIC D_ADDFILETOAPPENDWFUNC                           DTWAIN_AddFileToAppendW;
    STATIC D_ADDPDFTEXTFUNC                                 DTWAIN_AddPDFText;
    STATIC D_ADDPDFTEXTAFUNC                                DTWAIN_AddPDFTextA;
    STATIC D_ADDPDFTEXTELEMENTFUNC                          DTWAIN_AddPDFTextElement;
    STATIC D_ADDPDFTEXTEXFUNC                               DTWAIN_AddPDFTextEx;
    STATIC D_ADDPDFTEXTEXAFUNC                              DTWAIN_AddPDFTextExA;
    STATIC D_ADDPDFTEXTEXWFUNC                              DTWAIN_AddPDFTextExW;
    STATIC D_ADDPDFTEXTSTRINGFUNC                           DTWAIN_AddPDFTextString;
    STATIC D_ADDPDFTEXTSTRINGAFUNC                          DTWAIN_AddPDFTextStringA;
    STATIC D_ADDPDFTEXTSTRINGWFUNC                          DTWAIN_AddPDFTextStringW;
    STATIC D_ADDPDFTEXTWFUNC                                DTWAIN_AddPDFTextW;
    STATIC D_ALLOCATEMEMORYFUNC                             DTWAIN_AllocateMemory;
    STATIC D_ALLOCATEMEMORY64FUNC                           DTWAIN_AllocateMemory64;
    STATIC D_ALLOCATEMEMORYEXFUNC                           DTWAIN_AllocateMemoryEx;
    STATIC D_APPHANDLESEXCEPTIONSFUNC                       DTWAIN_AppHandlesExceptions;
    STATIC D_ARRAYANSISTRINGTOFLOATFUNC                     DTWAIN_ArrayANSIStringToFloat;
    STATIC D_ARRAYADDFUNC                                   DTWAIN_ArrayAdd;
    STATIC D_ARRAYADDANSISTRINGFUNC                         DTWAIN_ArrayAddANSIString;
    STATIC D_ARRAYADDANSISTRINGNFUNC                        DTWAIN_ArrayAddANSIStringN;
    STATIC D_ARRAYADDFLOATFUNC                              DTWAIN_ArrayAddFloat;
    STATIC D_ARRAYADDFLOATNFUNC                             DTWAIN_ArrayAddFloatN;
    STATIC D_ARRAYADDFLOATSTRINGFUNC                        DTWAIN_ArrayAddFloatString;
    STATIC D_ARRAYADDFLOATSTRINGAFUNC                       DTWAIN_ArrayAddFloatStringA;
    STATIC D_ARRAYADDFLOATSTRINGNFUNC                       DTWAIN_ArrayAddFloatStringN;
    STATIC D_ARRAYADDFLOATSTRINGNAFUNC                      DTWAIN_ArrayAddFloatStringNA;
    STATIC D_ARRAYADDFLOATSTRINGNWFUNC                      DTWAIN_ArrayAddFloatStringNW;
    STATIC D_ARRAYADDFLOATSTRINGWFUNC                       DTWAIN_ArrayAddFloatStringW;
    STATIC D_ARRAYADDFRAMEFUNC                              DTWAIN_ArrayAddFrame;
    STATIC D_ARRAYADDFRAMENFUNC                             DTWAIN_ArrayAddFrameN;
    STATIC D_ARRAYADDLONGFUNC                               DTWAIN_ArrayAddLong;
    STATIC D_ARRAYADDLONG64FUNC                             DTWAIN_ArrayAddLong64;
    STATIC D_ARRAYADDLONG64NFUNC                            DTWAIN_ArrayAddLong64N;
    STATIC D_ARRAYADDLONGNFUNC                              DTWAIN_ArrayAddLongN;
    STATIC D_ARRAYADDNFUNC                                  DTWAIN_ArrayAddN;
    STATIC D_ARRAYADDSTRINGFUNC                             DTWAIN_ArrayAddString;
    STATIC D_ARRAYADDSTRINGAFUNC                            DTWAIN_ArrayAddStringA;
    STATIC D_ARRAYADDSTRINGNFUNC                            DTWAIN_ArrayAddStringN;
    STATIC D_ARRAYADDSTRINGNAFUNC                           DTWAIN_ArrayAddStringNA;
    STATIC D_ARRAYADDSTRINGNWFUNC                           DTWAIN_ArrayAddStringNW;
    STATIC D_ARRAYADDSTRINGWFUNC                            DTWAIN_ArrayAddStringW;
    STATIC D_ARRAYADDWIDESTRINGFUNC                         DTWAIN_ArrayAddWideString;
    STATIC D_ARRAYADDWIDESTRINGNFUNC                        DTWAIN_ArrayAddWideStringN;
    STATIC D_ARRAYCONVERTFIX32TOFLOATFUNC                   DTWAIN_ArrayConvertFix32ToFloat;
    STATIC D_ARRAYCONVERTFLOATTOFIX32FUNC                   DTWAIN_ArrayConvertFloatToFix32;
    STATIC D_ARRAYCOPYFUNC                                  DTWAIN_ArrayCopy;
    STATIC D_ARRAYCREATEFUNC                                DTWAIN_ArrayCreate;
    STATIC D_ARRAYCREATECOPYFUNC                            DTWAIN_ArrayCreateCopy;
    STATIC D_ARRAYCREATEFROMCAPFUNC                         DTWAIN_ArrayCreateFromCap;
    STATIC D_ARRAYCREATEFROMLONG64SFUNC                     DTWAIN_ArrayCreateFromLong64s;
    STATIC D_ARRAYCREATEFROMLONGSFUNC                       DTWAIN_ArrayCreateFromLongs;
    STATIC D_ARRAYCREATEFROMREALSFUNC                       DTWAIN_ArrayCreateFromReals;
    STATIC D_ARRAYCREATEFROMSTRINGSFUNC                     DTWAIN_ArrayCreateFromStrings;
    STATIC D_ARRAYCREATEFROMSTRINGSAFUNC                    DTWAIN_ArrayCreateFromStringsA;
    STATIC D_ARRAYCREATEFROMSTRINGSWFUNC                    DTWAIN_ArrayCreateFromStringsW;
    STATIC D_ARRAYDESTROYFUNC                               DTWAIN_ArrayDestroy;
    STATIC D_ARRAYDESTROYFRAMESFUNC                         DTWAIN_ArrayDestroyFrames;
    STATIC D_ARRAYDUMPTOLOGFUNC                             DTWAIN_ArrayDumpToLog;
    STATIC D_ARRAYFINDFUNC                                  DTWAIN_ArrayFind;
    STATIC D_ARRAYFINDANSISTRINGFUNC                        DTWAIN_ArrayFindANSIString;
    STATIC D_ARRAYFINDFLOATFUNC                             DTWAIN_ArrayFindFloat;
    STATIC D_ARRAYFINDFLOATSTRINGFUNC                       DTWAIN_ArrayFindFloatString;
    STATIC D_ARRAYFINDFLOATSTRINGAFUNC                      DTWAIN_ArrayFindFloatStringA;
    STATIC D_ARRAYFINDFLOATSTRINGWFUNC                      DTWAIN_ArrayFindFloatStringW;
    STATIC D_ARRAYFINDLONGFUNC                              DTWAIN_ArrayFindLong;
    STATIC D_ARRAYFINDLONG64FUNC                            DTWAIN_ArrayFindLong64;
    STATIC D_ARRAYFINDSTRINGFUNC                            DTWAIN_ArrayFindString;
    STATIC D_ARRAYFINDSTRINGAFUNC                           DTWAIN_ArrayFindStringA;
    STATIC D_ARRAYFINDSTRINGWFUNC                           DTWAIN_ArrayFindStringW;
    STATIC D_ARRAYFINDWIDESTRINGFUNC                        DTWAIN_ArrayFindWideString;
    STATIC D_ARRAYFIX32GETATFUNC                            DTWAIN_ArrayFix32GetAt;
    STATIC D_ARRAYFIX32SETATFUNC                            DTWAIN_ArrayFix32SetAt;
    STATIC D_ARRAYFLOATTOANSISTRINGFUNC                     DTWAIN_ArrayFloatToANSIString;
    STATIC D_ARRAYFLOATTOSTRINGFUNC                         DTWAIN_ArrayFloatToString;
    STATIC D_ARRAYFLOATTOWIDESTRINGFUNC                     DTWAIN_ArrayFloatToWideString;
    STATIC D_ARRAYGETATFUNC                                 DTWAIN_ArrayGetAt;
    STATIC D_ARRAYGETATANSISTRINGFUNC                       DTWAIN_ArrayGetAtANSIString;
    STATIC D_ARRAYGETATANSISTRINGPTRFUNC                    DTWAIN_ArrayGetAtANSIStringPtr;
    STATIC D_ARRAYGETATFLOATFUNC                            DTWAIN_ArrayGetAtFloat;
    STATIC D_ARRAYGETATFLOATEXFUNC                          DTWAIN_ArrayGetAtFloatEx;
    STATIC D_ARRAYGETATFLOATSTRINGFUNC                      DTWAIN_ArrayGetAtFloatString;
    STATIC D_ARRAYGETATFLOATSTRINGAFUNC                     DTWAIN_ArrayGetAtFloatStringA;
    STATIC D_ARRAYGETATFLOATSTRINGWFUNC                     DTWAIN_ArrayGetAtFloatStringW;
    STATIC D_ARRAYGETATFRAMEFUNC                            DTWAIN_ArrayGetAtFrame;
    STATIC D_ARRAYGETATFRAMEEXFUNC                          DTWAIN_ArrayGetAtFrameEx;
    STATIC D_ARRAYGETATFRAMESTRINGFUNC                      DTWAIN_ArrayGetAtFrameString;
    STATIC D_ARRAYGETATFRAMESTRINGAFUNC                     DTWAIN_ArrayGetAtFrameStringA;
    STATIC D_ARRAYGETATFRAMESTRINGWFUNC                     DTWAIN_ArrayGetAtFrameStringW;
    STATIC D_ARRAYGETATLONGFUNC                             DTWAIN_ArrayGetAtLong;
    STATIC D_ARRAYGETATLONG64FUNC                           DTWAIN_ArrayGetAtLong64;
    STATIC D_ARRAYGETATLONG64EXFUNC                         DTWAIN_ArrayGetAtLong64Ex;
    STATIC D_ARRAYGETATLONGEXFUNC                           DTWAIN_ArrayGetAtLongEx;
    STATIC D_ARRAYGETATSOURCEFUNC                           DTWAIN_ArrayGetAtSource;
    STATIC D_ARRAYGETATSOURCEEXFUNC                         DTWAIN_ArrayGetAtSourceEx;
    STATIC D_ARRAYGETATSTRINGFUNC                           DTWAIN_ArrayGetAtString;
    STATIC D_ARRAYGETATSTRINGAFUNC                          DTWAIN_ArrayGetAtStringA;
    STATIC D_ARRAYGETATSTRINGPTRFUNC                        DTWAIN_ArrayGetAtStringPtr;
    STATIC D_ARRAYGETATSTRINGWFUNC                          DTWAIN_ArrayGetAtStringW;
    STATIC D_ARRAYGETATWIDESTRINGFUNC                       DTWAIN_ArrayGetAtWideString;
    STATIC D_ARRAYGETATWIDESTRINGPTRFUNC                    DTWAIN_ArrayGetAtWideStringPtr;
    STATIC D_ARRAYGETBUFFERFUNC                             DTWAIN_ArrayGetBuffer;
    STATIC D_ARRAYGETCAPVALUESFUNC                          DTWAIN_ArrayGetCapValues;
    STATIC D_ARRAYGETCAPVALUESEXFUNC                        DTWAIN_ArrayGetCapValuesEx;
    STATIC D_ARRAYGETCAPVALUESEX2FUNC                       DTWAIN_ArrayGetCapValuesEx2;
    STATIC D_ARRAYGETCOUNTFUNC                              DTWAIN_ArrayGetCount;
    STATIC D_ARRAYGETMAXSTRINGLENGTHFUNC                    DTWAIN_ArrayGetMaxStringLength;
    STATIC D_ARRAYGETSOURCEATFUNC                           DTWAIN_ArrayGetSourceAt;
    STATIC D_ARRAYGETSTRINGLENGTHFUNC                       DTWAIN_ArrayGetStringLength;
    STATIC D_ARRAYGETTYPEFUNC                               DTWAIN_ArrayGetType;
    STATIC D_ARRAYINITFUNC                                  DTWAIN_ArrayInit;
    STATIC D_ARRAYINSERTATFUNC                              DTWAIN_ArrayInsertAt;
    STATIC D_ARRAYINSERTATANSISTRINGFUNC                    DTWAIN_ArrayInsertAtANSIString;
    STATIC D_ARRAYINSERTATANSISTRINGNFUNC                   DTWAIN_ArrayInsertAtANSIStringN;
    STATIC D_ARRAYINSERTATFLOATFUNC                         DTWAIN_ArrayInsertAtFloat;
    STATIC D_ARRAYINSERTATFLOATNFUNC                        DTWAIN_ArrayInsertAtFloatN;
    STATIC D_ARRAYINSERTATFLOATSTRINGFUNC                   DTWAIN_ArrayInsertAtFloatString;
    STATIC D_ARRAYINSERTATFLOATSTRINGAFUNC                  DTWAIN_ArrayInsertAtFloatStringA;
    STATIC D_ARRAYINSERTATFLOATSTRINGNFUNC                  DTWAIN_ArrayInsertAtFloatStringN;
    STATIC D_ARRAYINSERTATFLOATSTRINGNAFUNC                 DTWAIN_ArrayInsertAtFloatStringNA;
    STATIC D_ARRAYINSERTATFLOATSTRINGNWFUNC                 DTWAIN_ArrayInsertAtFloatStringNW;
    STATIC D_ARRAYINSERTATFLOATSTRINGWFUNC                  DTWAIN_ArrayInsertAtFloatStringW;
    STATIC D_ARRAYINSERTATFRAMEFUNC                         DTWAIN_ArrayInsertAtFrame;
    STATIC D_ARRAYINSERTATFRAMENFUNC                        DTWAIN_ArrayInsertAtFrameN;
    STATIC D_ARRAYINSERTATLONGFUNC                          DTWAIN_ArrayInsertAtLong;
    STATIC D_ARRAYINSERTATLONG64FUNC                        DTWAIN_ArrayInsertAtLong64;
    STATIC D_ARRAYINSERTATLONG64NFUNC                       DTWAIN_ArrayInsertAtLong64N;
    STATIC D_ARRAYINSERTATLONGNFUNC                         DTWAIN_ArrayInsertAtLongN;
    STATIC D_ARRAYINSERTATNFUNC                             DTWAIN_ArrayInsertAtN;
    STATIC D_ARRAYINSERTATSTRINGFUNC                        DTWAIN_ArrayInsertAtString;
    STATIC D_ARRAYINSERTATSTRINGAFUNC                       DTWAIN_ArrayInsertAtStringA;
    STATIC D_ARRAYINSERTATSTRINGNFUNC                       DTWAIN_ArrayInsertAtStringN;
    STATIC D_ARRAYINSERTATSTRINGNAFUNC                      DTWAIN_ArrayInsertAtStringNA;
    STATIC D_ARRAYINSERTATSTRINGNWFUNC                      DTWAIN_ArrayInsertAtStringNW;
    STATIC D_ARRAYINSERTATSTRINGWFUNC                       DTWAIN_ArrayInsertAtStringW;
    STATIC D_ARRAYINSERTATWIDESTRINGFUNC                    DTWAIN_ArrayInsertAtWideString;
    STATIC D_ARRAYINSERTATWIDESTRINGNFUNC                   DTWAIN_ArrayInsertAtWideStringN;
    STATIC D_ARRAYREMOVEALLFUNC                             DTWAIN_ArrayRemoveAll;
    STATIC D_ARRAYREMOVEATFUNC                              DTWAIN_ArrayRemoveAt;
    STATIC D_ARRAYREMOVEATNFUNC                             DTWAIN_ArrayRemoveAtN;
    STATIC D_ARRAYRESIZEFUNC                                DTWAIN_ArrayResize;
    STATIC D_ARRAYSETATFUNC                                 DTWAIN_ArraySetAt;
    STATIC D_ARRAYSETATANSISTRINGFUNC                       DTWAIN_ArraySetAtANSIString;
    STATIC D_ARRAYSETATFLOATFUNC                            DTWAIN_ArraySetAtFloat;
    STATIC D_ARRAYSETATFLOATSTRINGFUNC                      DTWAIN_ArraySetAtFloatString;
    STATIC D_ARRAYSETATFLOATSTRINGAFUNC                     DTWAIN_ArraySetAtFloatStringA;
    STATIC D_ARRAYSETATFLOATSTRINGWFUNC                     DTWAIN_ArraySetAtFloatStringW;
    STATIC D_ARRAYSETATFRAMEFUNC                            DTWAIN_ArraySetAtFrame;
    STATIC D_ARRAYSETATFRAMEEXFUNC                          DTWAIN_ArraySetAtFrameEx;
    STATIC D_ARRAYSETATFRAMESTRINGFUNC                      DTWAIN_ArraySetAtFrameString;
    STATIC D_ARRAYSETATFRAMESTRINGAFUNC                     DTWAIN_ArraySetAtFrameStringA;
    STATIC D_ARRAYSETATFRAMESTRINGWFUNC                     DTWAIN_ArraySetAtFrameStringW;
    STATIC D_ARRAYSETATLONGFUNC                             DTWAIN_ArraySetAtLong;
    STATIC D_ARRAYSETATLONG64FUNC                           DTWAIN_ArraySetAtLong64;
    STATIC D_ARRAYSETATSTRINGFUNC                           DTWAIN_ArraySetAtString;
    STATIC D_ARRAYSETATSTRINGAFUNC                          DTWAIN_ArraySetAtStringA;
    STATIC D_ARRAYSETATSTRINGWFUNC                          DTWAIN_ArraySetAtStringW;
    STATIC D_ARRAYSETATWIDESTRINGFUNC                       DTWAIN_ArraySetAtWideString;
    STATIC D_ARRAYSTRINGTOFLOATFUNC                         DTWAIN_ArrayStringToFloat;
    STATIC D_ARRAYWIDESTRINGTOFLOATFUNC                     DTWAIN_ArrayWideStringToFloat;
    STATIC D_CALLCALLBACKFUNC                               DTWAIN_CallCallback;
    STATIC D_CALLCALLBACK64FUNC                             DTWAIN_CallCallback64;
    STATIC D_CALLDSMPROCFUNC                                DTWAIN_CallDSMProc;
    STATIC D_CHECKHANDLESFUNC                               DTWAIN_CheckHandles;
    STATIC D_CLEARBUFFERSFUNC                               DTWAIN_ClearBuffers;
    STATIC D_CLEARERRORBUFFERFUNC                           DTWAIN_ClearErrorBuffer;
    STATIC D_CLEARPDFTEXTELEMENTSFUNC                       DTWAIN_ClearPDFTextElements;
    STATIC D_CLEARPAGEFUNC                                  DTWAIN_ClearPage;
    STATIC D_CLOSESOURCEFUNC                                DTWAIN_CloseSource;
    STATIC D_CLOSESOURCEUIFUNC                              DTWAIN_CloseSourceUI;
    STATIC D_CONVERTDIBTOBITMAPFUNC                         DTWAIN_ConvertDIBToBitmap;
    STATIC D_CONVERTDIBTOFULLBITMAPFUNC                     DTWAIN_ConvertDIBToFullBitmap;
    STATIC D_CONVERTTOAPISTRINGFUNC                         DTWAIN_ConvertToAPIString;
    STATIC D_CONVERTTOAPISTRINGAFUNC                        DTWAIN_ConvertToAPIStringA;
    STATIC D_CONVERTTOAPISTRINGEXFUNC                       DTWAIN_ConvertToAPIStringEx;
    STATIC D_CONVERTTOAPISTRINGEXAFUNC                      DTWAIN_ConvertToAPIStringExA;
    STATIC D_CONVERTTOAPISTRINGEXWFUNC                      DTWAIN_ConvertToAPIStringExW;
    STATIC D_CONVERTTOAPISTRINGWFUNC                        DTWAIN_ConvertToAPIStringW;
    STATIC D_CREATEACQUISITIONARRAYFUNC                     DTWAIN_CreateAcquisitionArray;
    STATIC D_CREATEPDFTEXTELEMENTFUNC                       DTWAIN_CreatePDFTextElement;
    STATIC D_CREATEPDFTEXTELEMENTCOPYFUNC                   DTWAIN_CreatePDFTextElementCopy;
    STATIC D_DELETEDIBFUNC                                  DTWAIN_DeleteDIB;
    STATIC D_DESTROYACQUISITIONARRAYFUNC                    DTWAIN_DestroyAcquisitionArray;
    STATIC D_DESTROYPDFTEXTELEMENTFUNC                      DTWAIN_DestroyPDFTextElement;
    STATIC D_DISABLEAPPWINDOWFUNC                           DTWAIN_DisableAppWindow;
    STATIC D_ENABLEAUTOBORDERDETECTFUNC                     DTWAIN_EnableAutoBorderDetect;
    STATIC D_ENABLEAUTOBRIGHTFUNC                           DTWAIN_EnableAutoBright;
    STATIC D_ENABLEAUTODESKEWFUNC                           DTWAIN_EnableAutoDeskew;
    STATIC D_ENABLEAUTOFEEDFUNC                             DTWAIN_EnableAutoFeed;
    STATIC D_ENABLEAUTOROTATEFUNC                           DTWAIN_EnableAutoRotate;
    STATIC D_ENABLEAUTOSCANFUNC                             DTWAIN_EnableAutoScan;
    STATIC D_ENABLEAUTOMATICSENSEMEDIUMFUNC                 DTWAIN_EnableAutomaticSenseMedium;
    STATIC D_ENABLEBARCODEDETECTIONFUNC                     DTWAIN_EnableBarcodeDetection;
    STATIC D_ENABLEDUPLEXFUNC                               DTWAIN_EnableDuplex;
    STATIC D_ENABLEFEEDERFUNC                               DTWAIN_EnableFeeder;
    STATIC D_ENABLEGETMESSAGELOOPFUNC                       DTWAIN_EnableGetMessageLoop;
    STATIC D_ENABLEGETMESSAGELOOPDETECTIONFUNC              DTWAIN_EnableGetMessageLoopDetection;
    STATIC D_ENABLEINDICATORFUNC                            DTWAIN_EnableIndicator;
    STATIC D_ENABLEJOBFILEHANDLINGFUNC                      DTWAIN_EnableJobFileHandling;
    STATIC D_ENABLELAMPFUNC                                 DTWAIN_EnableLamp;
    STATIC D_ENABLEMSGNOTIFYFUNC                            DTWAIN_EnableMsgNotify;
    STATIC D_ENABLEPATCHCODEDETECTIONFUNC                   DTWAIN_EnablePatchcodeDetection;
    STATIC D_ENABLEPEEKMESSAGELOOPFUNC                      DTWAIN_EnablePeekMessageLoop;
    STATIC D_ENABLEPRINTERFUNC                              DTWAIN_EnablePrinter;
    STATIC D_ENABLETHUMBNAILFUNC                            DTWAIN_EnableThumbnail;
    STATIC D_ENABLETRIPLETSNOTIFYFUNC                       DTWAIN_EnableTripletsNotify;
    STATIC D_ENDTHREADFUNC                                  DTWAIN_EndThread;
    STATIC D_ENDTWAINSESSIONFUNC                            DTWAIN_EndTwainSession;
    STATIC D_ENUMALARMVOLUMESFUNC                           DTWAIN_EnumAlarmVolumes;
    STATIC D_ENUMALARMVOLUMESEXFUNC                         DTWAIN_EnumAlarmVolumesEx;
    STATIC D_ENUMALARMSFUNC                                 DTWAIN_EnumAlarms;
    STATIC D_ENUMALARMSEXFUNC                               DTWAIN_EnumAlarmsEx;
    STATIC D_ENUMAUDIOXFERMECHSFUNC                         DTWAIN_EnumAudioXferMechs;
    STATIC D_ENUMAUDIOXFERMECHSEXFUNC                       DTWAIN_EnumAudioXferMechsEx;
    STATIC D_ENUMAUTOFEEDVALUESFUNC                         DTWAIN_EnumAutoFeedValues;
    STATIC D_ENUMAUTOFEEDVALUESEXFUNC                       DTWAIN_EnumAutoFeedValuesEx;
    STATIC D_ENUMAUTOMATICCAPTURESFUNC                      DTWAIN_EnumAutomaticCaptures;
    STATIC D_ENUMAUTOMATICCAPTURESEXFUNC                    DTWAIN_EnumAutomaticCapturesEx;
    STATIC D_ENUMAUTOMATICSENSEMEDIUMFUNC                   DTWAIN_EnumAutomaticSenseMedium;
    STATIC D_ENUMAUTOMATICSENSEMEDIUMEXFUNC                 DTWAIN_EnumAutomaticSenseMediumEx;
    STATIC D_ENUMBARCODECODESFUNC                           DTWAIN_EnumBarcodeCodes;
    STATIC D_ENUMBARCODECODESEXFUNC                         DTWAIN_EnumBarcodeCodesEx;
    STATIC D_ENUMBARCODEMAXPRIORITIESFUNC                   DTWAIN_EnumBarcodeMaxPriorities;
    STATIC D_ENUMBARCODEMAXPRIORITIESEXFUNC                 DTWAIN_EnumBarcodeMaxPrioritiesEx;
    STATIC D_ENUMBARCODEMAXRETRIESFUNC                      DTWAIN_EnumBarcodeMaxRetries;
    STATIC D_ENUMBARCODEMAXRETRIESEXFUNC                    DTWAIN_EnumBarcodeMaxRetriesEx;
    STATIC D_ENUMBARCODEPRIORITIESFUNC                      DTWAIN_EnumBarcodePriorities;
    STATIC D_ENUMBARCODEPRIORITIESEXFUNC                    DTWAIN_EnumBarcodePrioritiesEx;
    STATIC D_ENUMBARCODESEARCHMODESFUNC                     DTWAIN_EnumBarcodeSearchModes;
    STATIC D_ENUMBARCODESEARCHMODESEXFUNC                   DTWAIN_EnumBarcodeSearchModesEx;
    STATIC D_ENUMBARCODETIMEOUTVALUESFUNC                   DTWAIN_EnumBarcodeTimeOutValues;
    STATIC D_ENUMBARCODETIMEOUTVALUESEXFUNC                 DTWAIN_EnumBarcodeTimeOutValuesEx;
    STATIC D_ENUMBITDEPTHSFUNC                              DTWAIN_EnumBitDepths;
    STATIC D_ENUMBITDEPTHSEXFUNC                            DTWAIN_EnumBitDepthsEx;
    STATIC D_ENUMBITDEPTHSEX2FUNC                           DTWAIN_EnumBitDepthsEx2;
    STATIC D_ENUMBOTTOMCAMERASFUNC                          DTWAIN_EnumBottomCameras;
    STATIC D_ENUMBOTTOMCAMERASEXFUNC                        DTWAIN_EnumBottomCamerasEx;
    STATIC D_ENUMBRIGHTNESSVALUESFUNC                       DTWAIN_EnumBrightnessValues;
    STATIC D_ENUMBRIGHTNESSVALUESEXFUNC                     DTWAIN_EnumBrightnessValuesEx;
    STATIC D_ENUMCAMERASFUNC                                DTWAIN_EnumCameras;
    STATIC D_ENUMCAMERASEXFUNC                              DTWAIN_EnumCamerasEx;
    STATIC D_ENUMCAMERASEX2FUNC                             DTWAIN_EnumCamerasEx2;
    STATIC D_ENUMCAPLABELSFUNC                              DTWAIN_EnumCapLabels;
    STATIC D_ENUMCOMPRESSIONTYPESFUNC                       DTWAIN_EnumCompressionTypes;
    STATIC D_ENUMCOMPRESSIONTYPESEXFUNC                     DTWAIN_EnumCompressionTypesEx;
    STATIC D_ENUMCOMPRESSIONTYPESEX2FUNC                    DTWAIN_EnumCompressionTypesEx2;
    STATIC D_ENUMCONTRASTVALUESFUNC                         DTWAIN_EnumContrastValues;
    STATIC D_ENUMCONTRASTVALUESEXFUNC                       DTWAIN_EnumContrastValuesEx;
    STATIC D_ENUMCUSTOMCAPSFUNC                             DTWAIN_EnumCustomCaps;
    STATIC D_ENUMCUSTOMCAPSEXFUNC                           DTWAIN_EnumCustomCapsEx;
    STATIC D_ENUMDOUBLEFEEDDETECTLENGTHSFUNC                DTWAIN_EnumDoubleFeedDetectLengths;
    STATIC D_ENUMDOUBLEFEEDDETECTLENGTHSEXFUNC              DTWAIN_EnumDoubleFeedDetectLengthsEx;
    STATIC D_ENUMDOUBLEFEEDDETECTVALUESFUNC                 DTWAIN_EnumDoubleFeedDetectValues;
    STATIC D_ENUMDOUBLEFEEDDETECTVALUESEXFUNC               DTWAIN_EnumDoubleFeedDetectValuesEx;
    STATIC D_ENUMEXTIMAGEINFOTYPESFUNC                      DTWAIN_EnumExtImageInfoTypes;
    STATIC D_ENUMEXTIMAGEINFOTYPESEXFUNC                    DTWAIN_EnumExtImageInfoTypesEx;
    STATIC D_ENUMEXTENDEDCAPSFUNC                           DTWAIN_EnumExtendedCaps;
    STATIC D_ENUMEXTENDEDCAPSEXFUNC                         DTWAIN_EnumExtendedCapsEx;
    STATIC D_ENUMEXTENDEDCAPSEX2FUNC                        DTWAIN_EnumExtendedCapsEx2;
    STATIC D_ENUMFILETYPEBITSPERPIXELFUNC                   DTWAIN_EnumFileTypeBitsPerPixel;
    STATIC D_ENUMFILEXFERFORMATSFUNC                        DTWAIN_EnumFileXferFormats;
    STATIC D_ENUMFILEXFERFORMATSEXFUNC                      DTWAIN_EnumFileXferFormatsEx;
    STATIC D_ENUMHALFTONESFUNC                              DTWAIN_EnumHalftones;
    STATIC D_ENUMHALFTONESEXFUNC                            DTWAIN_EnumHalftonesEx;
    STATIC D_ENUMHIGHLIGHTVALUESFUNC                        DTWAIN_EnumHighlightValues;
    STATIC D_ENUMHIGHLIGHTVALUESEXFUNC                      DTWAIN_EnumHighlightValuesEx;
    STATIC D_ENUMJOBCONTROLSFUNC                            DTWAIN_EnumJobControls;
    STATIC D_ENUMJOBCONTROLSEXFUNC                          DTWAIN_EnumJobControlsEx;
    STATIC D_ENUMLIGHTPATHSFUNC                             DTWAIN_EnumLightPaths;
    STATIC D_ENUMLIGHTPATHSEXFUNC                           DTWAIN_EnumLightPathsEx;
    STATIC D_ENUMLIGHTSOURCESFUNC                           DTWAIN_EnumLightSources;
    STATIC D_ENUMLIGHTSOURCESEXFUNC                         DTWAIN_EnumLightSourcesEx;
    STATIC D_ENUMMAXBUFFERSFUNC                             DTWAIN_EnumMaxBuffers;
    STATIC D_ENUMMAXBUFFERSEXFUNC                           DTWAIN_EnumMaxBuffersEx;
    STATIC D_ENUMNOISEFILTERSFUNC                           DTWAIN_EnumNoiseFilters;
    STATIC D_ENUMNOISEFILTERSEXFUNC                         DTWAIN_EnumNoiseFiltersEx;
    STATIC D_ENUMOCRINTERFACESFUNC                          DTWAIN_EnumOCRInterfaces;
    STATIC D_ENUMOCRINTERFACESEXFUNC                        DTWAIN_EnumOCRInterfacesEx;
    STATIC D_ENUMOCRSUPPORTEDCAPSFUNC                       DTWAIN_EnumOCRSupportedCaps;
    STATIC D_ENUMORIENTATIONSFUNC                           DTWAIN_EnumOrientations;
    STATIC D_ENUMORIENTATIONSEXFUNC                         DTWAIN_EnumOrientationsEx;
    STATIC D_ENUMOVERSCANVALUESFUNC                         DTWAIN_EnumOverscanValues;
    STATIC D_ENUMOVERSCANVALUESEXFUNC                       DTWAIN_EnumOverscanValuesEx;
    STATIC D_ENUMPAPERSIZESFUNC                             DTWAIN_EnumPaperSizes;
    STATIC D_ENUMPAPERSIZESEXFUNC                           DTWAIN_EnumPaperSizesEx;
    STATIC D_ENUMPATCHCODECODESFUNC                         DTWAIN_EnumPatchcodeCodes;
    STATIC D_ENUMPATCHCODECODESEXFUNC                       DTWAIN_EnumPatchcodeCodesEx;
    STATIC D_ENUMPATCHCODEMAXPRIORITIESFUNC                 DTWAIN_EnumPatchcodeMaxPriorities;
    STATIC D_ENUMPATCHCODEMAXPRIORITIESEXFUNC               DTWAIN_EnumPatchcodeMaxPrioritiesEx;
    STATIC D_ENUMPATCHCODEMAXRETRIESFUNC                    DTWAIN_EnumPatchcodeMaxRetries;
    STATIC D_ENUMPATCHCODEMAXRETRIESEXFUNC                  DTWAIN_EnumPatchcodeMaxRetriesEx;
    STATIC D_ENUMPATCHCODEPRIORITIESFUNC                    DTWAIN_EnumPatchcodePriorities;
    STATIC D_ENUMPATCHCODEPRIORITIESEXFUNC                  DTWAIN_EnumPatchcodePrioritiesEx;
    STATIC D_ENUMPATCHCODESEARCHMODESFUNC                   DTWAIN_EnumPatchcodeSearchModes;
    STATIC D_ENUMPATCHCODESEARCHMODESEXFUNC                 DTWAIN_EnumPatchcodeSearchModesEx;
    STATIC D_ENUMPATCHCODETIMEOUTVALUESFUNC                 DTWAIN_EnumPatchcodeTimeOutValues;
    STATIC D_ENUMPATCHCODETIMEOUTVALUESEXFUNC               DTWAIN_EnumPatchcodeTimeOutValuesEx;
    STATIC D_ENUMPIXELTYPESFUNC                             DTWAIN_EnumPixelTypes;
    STATIC D_ENUMPIXELTYPESEXFUNC                           DTWAIN_EnumPixelTypesEx;
    STATIC D_ENUMPRINTERSTRINGMODESFUNC                     DTWAIN_EnumPrinterStringModes;
    STATIC D_ENUMPRINTERSTRINGMODESEXFUNC                   DTWAIN_EnumPrinterStringModesEx;
    STATIC D_ENUMRESOLUTIONVALUESFUNC                       DTWAIN_EnumResolutionValues;
    STATIC D_ENUMRESOLUTIONVALUESEXFUNC                     DTWAIN_EnumResolutionValuesEx;
    STATIC D_ENUMSHADOWVALUESFUNC                           DTWAIN_EnumShadowValues;
    STATIC D_ENUMSHADOWVALUESEXFUNC                         DTWAIN_EnumShadowValuesEx;
    STATIC D_ENUMSOURCEUNITSFUNC                            DTWAIN_EnumSourceUnits;
    STATIC D_ENUMSOURCEUNITSEXFUNC                          DTWAIN_EnumSourceUnitsEx;
    STATIC D_ENUMSOURCEVALUESFUNC                           DTWAIN_EnumSourceValues;
    STATIC D_ENUMSOURCEVALUESAFUNC                          DTWAIN_EnumSourceValuesA;
    STATIC D_ENUMSOURCEVALUESWFUNC                          DTWAIN_EnumSourceValuesW;
    STATIC D_ENUMSOURCESFUNC                                DTWAIN_EnumSources;
    STATIC D_ENUMSOURCESEXFUNC                              DTWAIN_EnumSourcesEx;
    STATIC D_ENUMSUPPORTEDCAPSFUNC                          DTWAIN_EnumSupportedCaps;
    STATIC D_ENUMSUPPORTEDCAPSEXFUNC                        DTWAIN_EnumSupportedCapsEx;
    STATIC D_ENUMSUPPORTEDCAPSEX2FUNC                       DTWAIN_EnumSupportedCapsEx2;
    STATIC D_ENUMSUPPORTEDEXTIMAGEINFOFUNC                  DTWAIN_EnumSupportedExtImageInfo;
    STATIC D_ENUMSUPPORTEDEXTIMAGEINFOEXFUNC                DTWAIN_EnumSupportedExtImageInfoEx;
    STATIC D_ENUMSUPPORTEDFILETYPESFUNC                     DTWAIN_EnumSupportedFileTypes;
    STATIC D_ENUMSUPPORTEDMULTIPAGEFILETYPESFUNC            DTWAIN_EnumSupportedMultiPageFileTypes;
    STATIC D_ENUMSUPPORTEDSINGLEPAGEFILETYPESFUNC           DTWAIN_EnumSupportedSinglePageFileTypes;
    STATIC D_ENUMTHRESHOLDVALUESFUNC                        DTWAIN_EnumThresholdValues;
    STATIC D_ENUMTHRESHOLDVALUESEXFUNC                      DTWAIN_EnumThresholdValuesEx;
    STATIC D_ENUMTOPCAMERASFUNC                             DTWAIN_EnumTopCameras;
    STATIC D_ENUMTOPCAMERASEXFUNC                           DTWAIN_EnumTopCamerasEx;
    STATIC D_ENUMTWAINPRINTERSFUNC                          DTWAIN_EnumTwainPrinters;
    STATIC D_ENUMTWAINPRINTERSEXFUNC                        DTWAIN_EnumTwainPrintersEx;
    STATIC D_ENUMXRESOLUTIONVALUESFUNC                      DTWAIN_EnumXResolutionValues;
    STATIC D_ENUMXRESOLUTIONVALUESEXFUNC                    DTWAIN_EnumXResolutionValuesEx;
    STATIC D_ENUMYRESOLUTIONVALUESFUNC                      DTWAIN_EnumYResolutionValues;
    STATIC D_ENUMYRESOLUTIONVALUESEXFUNC                    DTWAIN_EnumYResolutionValuesEx;
    STATIC D_EXECUTEOCRFUNC                                 DTWAIN_ExecuteOCR;
    STATIC D_EXECUTEOCRAFUNC                                DTWAIN_ExecuteOCRA;
    STATIC D_EXECUTEOCRWFUNC                                DTWAIN_ExecuteOCRW;
    STATIC D_FEEDPAGEFUNC                                   DTWAIN_FeedPage;
    STATIC D_FLIPBITMAPFUNC                                 DTWAIN_FlipBitmap;
    STATIC D_FLUSHACQUIREDPAGESFUNC                         DTWAIN_FlushAcquiredPages;
    STATIC D_FRAMECREATEFUNC                                DTWAIN_FrameCreate;
    STATIC D_FRAMECREATESTRINGFUNC                          DTWAIN_FrameCreateString;
    STATIC D_FRAMECREATESTRINGAFUNC                         DTWAIN_FrameCreateStringA;
    STATIC D_FRAMECREATESTRINGWFUNC                         DTWAIN_FrameCreateStringW;
    STATIC D_FRAMEDESTROYFUNC                               DTWAIN_FrameDestroy;
    STATIC D_FRAMEGETALLFUNC                                DTWAIN_FrameGetAll;
    STATIC D_FRAMEGETALLSTRINGFUNC                          DTWAIN_FrameGetAllString;
    STATIC D_FRAMEGETALLSTRINGAFUNC                         DTWAIN_FrameGetAllStringA;
    STATIC D_FRAMEGETALLSTRINGWFUNC                         DTWAIN_FrameGetAllStringW;
    STATIC D_FRAMEGETVALUEFUNC                              DTWAIN_FrameGetValue;
    STATIC D_FRAMEGETVALUESTRINGFUNC                        DTWAIN_FrameGetValueString;
    STATIC D_FRAMEGETVALUESTRINGAFUNC                       DTWAIN_FrameGetValueStringA;
    STATIC D_FRAMEGETVALUESTRINGWFUNC                       DTWAIN_FrameGetValueStringW;
    STATIC D_FRAMEISVALIDFUNC                               DTWAIN_FrameIsValid;
    STATIC D_FRAMESETALLFUNC                                DTWAIN_FrameSetAll;
    STATIC D_FRAMESETALLSTRINGFUNC                          DTWAIN_FrameSetAllString;
    STATIC D_FRAMESETALLSTRINGAFUNC                         DTWAIN_FrameSetAllStringA;
    STATIC D_FRAMESETALLSTRINGWFUNC                         DTWAIN_FrameSetAllStringW;
    STATIC D_FRAMESETVALUEFUNC                              DTWAIN_FrameSetValue;
    STATIC D_FRAMESETVALUESTRINGFUNC                        DTWAIN_FrameSetValueString;
    STATIC D_FRAMESETVALUESTRINGAFUNC                       DTWAIN_FrameSetValueStringA;
    STATIC D_FRAMESETVALUESTRINGWFUNC                       DTWAIN_FrameSetValueStringW;
    STATIC D_FREEEXTIMAGEINFOFUNC                           DTWAIN_FreeExtImageInfo;
    STATIC D_FREEMEMORYFUNC                                 DTWAIN_FreeMemory;
    STATIC D_FREEMEMORYEXFUNC                               DTWAIN_FreeMemoryEx;
    STATIC D_GETAPIHANDLESTATUSFUNC                         DTWAIN_GetAPIHandleStatus;
    STATIC D_GETACQUIREAREAFUNC                             DTWAIN_GetAcquireArea;
    STATIC D_GETACQUIREAREA2FUNC                            DTWAIN_GetAcquireArea2;
    STATIC D_GETACQUIREAREA2STRINGFUNC                      DTWAIN_GetAcquireArea2String;
    STATIC D_GETACQUIREAREA2STRINGAFUNC                     DTWAIN_GetAcquireArea2StringA;
    STATIC D_GETACQUIREAREA2STRINGWFUNC                     DTWAIN_GetAcquireArea2StringW;
    STATIC D_GETACQUIREAREAEXFUNC                           DTWAIN_GetAcquireAreaEx;
    STATIC D_GETACQUIREMETRICSFUNC                          DTWAIN_GetAcquireMetrics;
    STATIC D_GETACQUIRESTRIPBUFFERFUNC                      DTWAIN_GetAcquireStripBuffer;
    STATIC D_GETACQUIRESTRIPDATAFUNC                        DTWAIN_GetAcquireStripData;
    STATIC D_GETACQUIRESTRIPSIZESFUNC                       DTWAIN_GetAcquireStripSizes;
    STATIC D_GETACQUIREDIMAGEFUNC                           DTWAIN_GetAcquiredImage;
    STATIC D_GETACQUIREDIMAGEARRAYFUNC                      DTWAIN_GetAcquiredImageArray;
    STATIC D_GETACQUISITIONARRAYFUNC                        DTWAIN_GetAcquisitionArray;
    STATIC D_GETACTIVEDSMPATHFUNC                           DTWAIN_GetActiveDSMPath;
    STATIC D_GETACTIVEDSMPATHAFUNC                          DTWAIN_GetActiveDSMPathA;
    STATIC D_GETACTIVEDSMPATHWFUNC                          DTWAIN_GetActiveDSMPathW;
    STATIC D_GETACTIVEDSMVERSIONINFOFUNC                    DTWAIN_GetActiveDSMVersionInfo;
    STATIC D_GETACTIVEDSMVERSIONINFOAFUNC                   DTWAIN_GetActiveDSMVersionInfoA;
    STATIC D_GETACTIVEDSMVERSIONINFOWFUNC                   DTWAIN_GetActiveDSMVersionInfoW;
    STATIC D_GETALARMVOLUMEFUNC                             DTWAIN_GetAlarmVolume;
    STATIC D_GETALLSOURCEDIBSFUNC                           DTWAIN_GetAllSourceDibs;
    STATIC D_GETAPPINFOFUNC                                 DTWAIN_GetAppInfo;
    STATIC D_GETAPPINFOAFUNC                                DTWAIN_GetAppInfoA;
    STATIC D_GETAPPINFOWFUNC                                DTWAIN_GetAppInfoW;
    STATIC D_GETAUTHORFUNC                                  DTWAIN_GetAuthor;
    STATIC D_GETAUTHORAFUNC                                 DTWAIN_GetAuthorA;
    STATIC D_GETAUTHORWFUNC                                 DTWAIN_GetAuthorW;
    STATIC D_GETBARCODEMAXPRIORITIESFUNC                    DTWAIN_GetBarcodeMaxPriorities;
    STATIC D_GETBARCODEMAXRETRIESFUNC                       DTWAIN_GetBarcodeMaxRetries;
    STATIC D_GETBARCODEPRIORITIESFUNC                       DTWAIN_GetBarcodePriorities;
    STATIC D_GETBARCODESEARCHMODEFUNC                       DTWAIN_GetBarcodeSearchMode;
    STATIC D_GETBARCODETIMEOUTFUNC                          DTWAIN_GetBarcodeTimeOut;
    STATIC D_GETBATTERYMINUTESFUNC                          DTWAIN_GetBatteryMinutes;
    STATIC D_GETBATTERYPERCENTFUNC                          DTWAIN_GetBatteryPercent;
    STATIC D_GETBITDEPTHFUNC                                DTWAIN_GetBitDepth;
    STATIC D_GETBITDEPTHEXFUNC                              DTWAIN_GetBitDepthEx;
    STATIC D_GETBLANKPAGEAUTODETECTIONFUNC                  DTWAIN_GetBlankPageAutoDetection;
    STATIC D_GETBRIGHTNESSFUNC                              DTWAIN_GetBrightness;
    STATIC D_GETBRIGHTNESSEXFUNC                            DTWAIN_GetBrightnessEx;
    STATIC D_GETBRIGHTNESSSTRINGFUNC                        DTWAIN_GetBrightnessString;
    STATIC D_GETBRIGHTNESSSTRINGAFUNC                       DTWAIN_GetBrightnessStringA;
    STATIC D_GETBRIGHTNESSSTRINGWFUNC                       DTWAIN_GetBrightnessStringW;
    STATIC D_GETBUFFEREDTRANSFERINFOFUNC                    DTWAIN_GetBufferedTransferInfo;
    STATIC D_GETCALLBACKFUNC                                DTWAIN_GetCallback;
    STATIC D_GETCALLBACK64FUNC                              DTWAIN_GetCallback64;
    STATIC D_GETCAPARRAYTYPEFUNC                            DTWAIN_GetCapArrayType;
    STATIC D_GETCAPCONTAINERFUNC                            DTWAIN_GetCapContainer;
    STATIC D_GETCAPCONTAINEREXFUNC                          DTWAIN_GetCapContainerEx;
    STATIC D_GETCAPCONTAINEREX2FUNC                         DTWAIN_GetCapContainerEx2;
    STATIC D_GETCAPDATATYPEFUNC                             DTWAIN_GetCapDataType;
    STATIC D_GETCAPFROMNAMEFUNC                             DTWAIN_GetCapFromName;
    STATIC D_GETCAPFROMNAMEAFUNC                            DTWAIN_GetCapFromNameA;
    STATIC D_GETCAPFROMNAMEWFUNC                            DTWAIN_GetCapFromNameW;
    STATIC D_GETCAPHELPFUNC                                 DTWAIN_GetCapHelp;
    STATIC D_GETCAPHELPAFUNC                                DTWAIN_GetCapHelpA;
    STATIC D_GETCAPHELPWFUNC                                DTWAIN_GetCapHelpW;
    STATIC D_GETCAPLABELFUNC                                DTWAIN_GetCapLabel;
    STATIC D_GETCAPLABELAFUNC                               DTWAIN_GetCapLabelA;
    STATIC D_GETCAPLABELWFUNC                               DTWAIN_GetCapLabelW;
    STATIC D_GETCAPOPERATIONSFUNC                           DTWAIN_GetCapOperations;
    STATIC D_GETCAPOPERATIONSEXFUNC                         DTWAIN_GetCapOperationsEx;
    STATIC D_GETCAPVALUESFUNC                               DTWAIN_GetCapValues;
    STATIC D_GETCAPVALUESEXFUNC                             DTWAIN_GetCapValuesEx;
    STATIC D_GETCAPVALUESEX2FUNC                            DTWAIN_GetCapValuesEx2;
    STATIC D_GETCAPTIONFUNC                                 DTWAIN_GetCaption;
    STATIC D_GETCAPTIONAFUNC                                DTWAIN_GetCaptionA;
    STATIC D_GETCAPTIONWFUNC                                DTWAIN_GetCaptionW;
    STATIC D_GETCOMPRESSIONSIZEFUNC                         DTWAIN_GetCompressionSize;
    STATIC D_GETCOMPRESSIONTYPEFUNC                         DTWAIN_GetCompressionType;
    STATIC D_GETCOMPRESSIONTYPEEXFUNC                       DTWAIN_GetCompressionTypeEx;
    STATIC D_GETCONDITIONCODESTRINGFUNC                     DTWAIN_GetConditionCodeString;
    STATIC D_GETCONDITIONCODESTRINGAFUNC                    DTWAIN_GetConditionCodeStringA;
    STATIC D_GETCONDITIONCODESTRINGWFUNC                    DTWAIN_GetConditionCodeStringW;
    STATIC D_GETCONSTANTFROMTWAINNAMEFUNC                   DTWAIN_GetConstantFromTwainName;
    STATIC D_GETCONSTANTFROMTWAINNAMEAFUNC                  DTWAIN_GetConstantFromTwainNameA;
    STATIC D_GETCONSTANTFROMTWAINNAMEWFUNC                  DTWAIN_GetConstantFromTwainNameW;
    STATIC D_GETCONTRASTFUNC                                DTWAIN_GetContrast;
    STATIC D_GETCONTRASTEXFUNC                              DTWAIN_GetContrastEx;
    STATIC D_GETCONTRASTSTRINGFUNC                          DTWAIN_GetContrastString;
    STATIC D_GETCONTRASTSTRINGAFUNC                         DTWAIN_GetContrastStringA;
    STATIC D_GETCONTRASTSTRINGWFUNC                         DTWAIN_GetContrastStringW;
    STATIC D_GETCOUNTRYFUNC                                 DTWAIN_GetCountry;
    STATIC D_GETCURRENTACQUIREDIMAGEFUNC                    DTWAIN_GetCurrentAcquiredImage;
    STATIC D_GETCURRENTFILENAMEFUNC                         DTWAIN_GetCurrentFileName;
    STATIC D_GETCURRENTFILENAMEAFUNC                        DTWAIN_GetCurrentFileNameA;
    STATIC D_GETCURRENTFILENAMEWFUNC                        DTWAIN_GetCurrentFileNameW;
    STATIC D_GETCURRENTPAGENUMFUNC                          DTWAIN_GetCurrentPageNum;
    STATIC D_GETCURRENTRETRYCOUNTFUNC                       DTWAIN_GetCurrentRetryCount;
    STATIC D_GETCURRENTTWAINTRIPLETFUNC                     DTWAIN_GetCurrentTwainTriplet;
    STATIC D_GETCUSTOMDSDATAFUNC                            DTWAIN_GetCustomDSData;
    STATIC D_GETDSMFULLNAMEFUNC                             DTWAIN_GetDSMFullName;
    STATIC D_GETDSMFULLNAMEAFUNC                            DTWAIN_GetDSMFullNameA;
    STATIC D_GETDSMFULLNAMEWFUNC                            DTWAIN_GetDSMFullNameW;
    STATIC D_GETDSMSEARCHORDERFUNC                          DTWAIN_GetDSMSearchOrder;
    STATIC D_GETDSMSEARCHORDEREXFUNC                        DTWAIN_GetDSMSearchOrderEx;
    STATIC D_GETDSMSEARCHORDEREXAFUNC                       DTWAIN_GetDSMSearchOrderExA;
    STATIC D_GETDSMSEARCHORDEREXWFUNC                       DTWAIN_GetDSMSearchOrderExW;
    STATIC D_GETDTWAINHANDLEFUNC                            DTWAIN_GetDTWAINHandle;
    STATIC D_GETDEVICEEVENTFUNC                             DTWAIN_GetDeviceEvent;
    STATIC D_GETDEVICEEVENTEXFUNC                           DTWAIN_GetDeviceEventEx;
    STATIC D_GETDEVICEEVENTINFOFUNC                         DTWAIN_GetDeviceEventInfo;
    STATIC D_GETDEVICENOTIFICATIONSFUNC                     DTWAIN_GetDeviceNotifications;
    STATIC D_GETDEVICETIMEDATEFUNC                          DTWAIN_GetDeviceTimeDate;
    STATIC D_GETDEVICETIMEDATEAFUNC                         DTWAIN_GetDeviceTimeDateA;
    STATIC D_GETDEVICETIMEDATEWFUNC                         DTWAIN_GetDeviceTimeDateW;
    STATIC D_GETDOUBLEFEEDDETECTLENGTHFUNC                  DTWAIN_GetDoubleFeedDetectLength;
    STATIC D_GETDOUBLEFEEDDETECTVALUESFUNC                  DTWAIN_GetDoubleFeedDetectValues;
    STATIC D_GETDUPLEXTYPEFUNC                              DTWAIN_GetDuplexType;
    STATIC D_GETDUPLEXTYPEEXFUNC                            DTWAIN_GetDuplexTypeEx;
    STATIC D_GETERRORBUFFERFUNC                             DTWAIN_GetErrorBuffer;
    STATIC D_GETERRORBUFFERTHRESHOLDFUNC                    DTWAIN_GetErrorBufferThreshold;
    STATIC D_GETERRORCALLBACKFUNC                           DTWAIN_GetErrorCallback;
    STATIC D_GETERRORCALLBACK64FUNC                         DTWAIN_GetErrorCallback64;
    STATIC D_GETERRORSTRINGFUNC                             DTWAIN_GetErrorString;
    STATIC D_GETERRORSTRINGAFUNC                            DTWAIN_GetErrorStringA;
    STATIC D_GETERRORSTRINGWFUNC                            DTWAIN_GetErrorStringW;
    STATIC D_GETEXTCAPFROMNAMEFUNC                          DTWAIN_GetExtCapFromName;
    STATIC D_GETEXTCAPFROMNAMEAFUNC                         DTWAIN_GetExtCapFromNameA;
    STATIC D_GETEXTCAPFROMNAMEWFUNC                         DTWAIN_GetExtCapFromNameW;
    STATIC D_GETEXTIMAGEINFOFUNC                            DTWAIN_GetExtImageInfo;
    STATIC D_GETEXTIMAGEINFODATAFUNC                        DTWAIN_GetExtImageInfoData;
    STATIC D_GETEXTIMAGEINFODATAEXFUNC                      DTWAIN_GetExtImageInfoDataEx;
    STATIC D_GETEXTIMAGEINFOITEMFUNC                        DTWAIN_GetExtImageInfoItem;
    STATIC D_GETEXTIMAGEINFOITEMEXFUNC                      DTWAIN_GetExtImageInfoItemEx;
    STATIC D_GETEXTNAMEFROMCAPFUNC                          DTWAIN_GetExtNameFromCap;
    STATIC D_GETEXTNAMEFROMCAPAFUNC                         DTWAIN_GetExtNameFromCapA;
    STATIC D_GETEXTNAMEFROMCAPWFUNC                         DTWAIN_GetExtNameFromCapW;
    STATIC D_GETFEEDERALIGNMENTFUNC                         DTWAIN_GetFeederAlignment;
    STATIC D_GETFEEDERFUNCSFUNC                             DTWAIN_GetFeederFuncs;
    STATIC D_GETFEEDERORDERFUNC                             DTWAIN_GetFeederOrder;
    STATIC D_GETFEEDERWAITTIMEFUNC                          DTWAIN_GetFeederWaitTime;
    STATIC D_GETFILECOMPRESSIONTYPEFUNC                     DTWAIN_GetFileCompressionType;
    STATIC D_GETFILESAVEPAGECOUNTFUNC                       DTWAIN_GetFileSavePageCount;
    STATIC D_GETFILETYPEEXTENSIONSFUNC                      DTWAIN_GetFileTypeExtensions;
    STATIC D_GETFILETYPEEXTENSIONSAFUNC                     DTWAIN_GetFileTypeExtensionsA;
    STATIC D_GETFILETYPEEXTENSIONSWFUNC                     DTWAIN_GetFileTypeExtensionsW;
    STATIC D_GETFILETYPENAMEFUNC                            DTWAIN_GetFileTypeName;
    STATIC D_GETFILETYPENAMEAFUNC                           DTWAIN_GetFileTypeNameA;
    STATIC D_GETFILETYPENAMEWFUNC                           DTWAIN_GetFileTypeNameW;
    STATIC D_GETHALFTONEFUNC                                DTWAIN_GetHalftone;
    STATIC D_GETHALFTONEAFUNC                               DTWAIN_GetHalftoneA;
    STATIC D_GETHALFTONEWFUNC                               DTWAIN_GetHalftoneW;
    STATIC D_GETHIGHLIGHTFUNC                               DTWAIN_GetHighlight;
    STATIC D_GETHIGHLIGHTSTRINGFUNC                         DTWAIN_GetHighlightString;
    STATIC D_GETHIGHLIGHTSTRINGAFUNC                        DTWAIN_GetHighlightStringA;
    STATIC D_GETHIGHLIGHTSTRINGWFUNC                        DTWAIN_GetHighlightStringW;
    STATIC D_GETIMAGEINFOFUNC                               DTWAIN_GetImageInfo;
    STATIC D_GETIMAGEINFOSTRINGFUNC                         DTWAIN_GetImageInfoString;
    STATIC D_GETIMAGEINFOSTRINGAFUNC                        DTWAIN_GetImageInfoStringA;
    STATIC D_GETIMAGEINFOSTRINGWFUNC                        DTWAIN_GetImageInfoStringW;
    STATIC D_GETJOBCONTROLFUNC                              DTWAIN_GetJobControl;
    STATIC D_GETJOBCONTROLEXFUNC                            DTWAIN_GetJobControlEx;
    STATIC D_GETJPEGVALUESFUNC                              DTWAIN_GetJpegValues;
    STATIC D_GETJPEGXRVALUESFUNC                            DTWAIN_GetJpegXRValues;
    STATIC D_GETLANGUAGEFUNC                                DTWAIN_GetLanguage;
    STATIC D_GETLASTERRORFUNC                               DTWAIN_GetLastError;
    STATIC D_GETLIBRARYPATHFUNC                             DTWAIN_GetLibraryPath;
    STATIC D_GETLIBRARYPATHAFUNC                            DTWAIN_GetLibraryPathA;
    STATIC D_GETLIBRARYPATHWFUNC                            DTWAIN_GetLibraryPathW;
    STATIC D_GETLIGHTPATHFUNC                               DTWAIN_GetLightPath;
    STATIC D_GETLIGHTPATHEXFUNC                             DTWAIN_GetLightPathEx;
    STATIC D_GETLIGHTSOURCEFUNC                             DTWAIN_GetLightSource;
    STATIC D_GETLIGHTSOURCESFUNC                            DTWAIN_GetLightSources;
    STATIC D_GETLIGHTSOURCESEXFUNC                          DTWAIN_GetLightSourcesEx;
    STATIC D_GETLOGGERCALLBACKFUNC                          DTWAIN_GetLoggerCallback;
    STATIC D_GETLOGGERCALLBACKAFUNC                         DTWAIN_GetLoggerCallbackA;
    STATIC D_GETLOGGERCALLBACKWFUNC                         DTWAIN_GetLoggerCallbackW;
    STATIC D_GETMANUALDUPLEXCOUNTFUNC                       DTWAIN_GetManualDuplexCount;
    STATIC D_GETMAXACQUISITIONSFUNC                         DTWAIN_GetMaxAcquisitions;
    STATIC D_GETMAXBUFFERSFUNC                              DTWAIN_GetMaxBuffers;
    STATIC D_GETMAXPAGESTOACQUIREFUNC                       DTWAIN_GetMaxPagesToAcquire;
    STATIC D_GETMAXRETRYATTEMPTSFUNC                        DTWAIN_GetMaxRetryAttempts;
    STATIC D_GETNAMEFROMCAPFUNC                             DTWAIN_GetNameFromCap;
    STATIC D_GETNAMEFROMCAPAFUNC                            DTWAIN_GetNameFromCapA;
    STATIC D_GETNAMEFROMCAPWFUNC                            DTWAIN_GetNameFromCapW;
    STATIC D_GETNOISEFILTERFUNC                             DTWAIN_GetNoiseFilter;
    STATIC D_GETNUMACQUIREDIMAGESFUNC                       DTWAIN_GetNumAcquiredImages;
    STATIC D_GETNUMACQUISITIONSFUNC                         DTWAIN_GetNumAcquisitions;
    STATIC D_GETOCRCAPVALUESFUNC                            DTWAIN_GetOCRCapValues;
    STATIC D_GETOCRERRORSTRINGFUNC                          DTWAIN_GetOCRErrorString;
    STATIC D_GETOCRERRORSTRINGAFUNC                         DTWAIN_GetOCRErrorStringA;
    STATIC D_GETOCRERRORSTRINGWFUNC                         DTWAIN_GetOCRErrorStringW;
    STATIC D_GETOCRLASTERRORFUNC                            DTWAIN_GetOCRLastError;
    STATIC D_GETOCRMAJORMINORVERSIONFUNC                    DTWAIN_GetOCRMajorMinorVersion;
    STATIC D_GETOCRMANUFACTURERFUNC                         DTWAIN_GetOCRManufacturer;
    STATIC D_GETOCRMANUFACTURERAFUNC                        DTWAIN_GetOCRManufacturerA;
    STATIC D_GETOCRMANUFACTURERWFUNC                        DTWAIN_GetOCRManufacturerW;
    STATIC D_GETOCRPRODUCTFAMILYFUNC                        DTWAIN_GetOCRProductFamily;
    STATIC D_GETOCRPRODUCTFAMILYAFUNC                       DTWAIN_GetOCRProductFamilyA;
    STATIC D_GETOCRPRODUCTFAMILYWFUNC                       DTWAIN_GetOCRProductFamilyW;
    STATIC D_GETOCRPRODUCTNAMEFUNC                          DTWAIN_GetOCRProductName;
    STATIC D_GETOCRPRODUCTNAMEAFUNC                         DTWAIN_GetOCRProductNameA;
    STATIC D_GETOCRPRODUCTNAMEWFUNC                         DTWAIN_GetOCRProductNameW;
    STATIC D_GETOCRTEXTFUNC                                 DTWAIN_GetOCRText;
    STATIC D_GETOCRTEXTAFUNC                                DTWAIN_GetOCRTextA;
    STATIC D_GETOCRTEXTINFOFLOATFUNC                        DTWAIN_GetOCRTextInfoFloat;
    STATIC D_GETOCRTEXTINFOFLOATEXFUNC                      DTWAIN_GetOCRTextInfoFloatEx;
    STATIC D_GETOCRTEXTINFOHANDLEFUNC                       DTWAIN_GetOCRTextInfoHandle;
    STATIC D_GETOCRTEXTINFOLONGFUNC                         DTWAIN_GetOCRTextInfoLong;
    STATIC D_GETOCRTEXTINFOLONGEXFUNC                       DTWAIN_GetOCRTextInfoLongEx;
    STATIC D_GETOCRTEXTWFUNC                                DTWAIN_GetOCRTextW;
    STATIC D_GETOCRVERSIONINFOFUNC                          DTWAIN_GetOCRVersionInfo;
    STATIC D_GETOCRVERSIONINFOAFUNC                         DTWAIN_GetOCRVersionInfoA;
    STATIC D_GETOCRVERSIONINFOWFUNC                         DTWAIN_GetOCRVersionInfoW;
    STATIC D_GETORIENTATIONFUNC                             DTWAIN_GetOrientation;
    STATIC D_GETORIENTATIONEXFUNC                           DTWAIN_GetOrientationEx;
    STATIC D_GETOVERSCANFUNC                                DTWAIN_GetOverscan;
    STATIC D_GETPDFTEXTELEMENTFLOATFUNC                     DTWAIN_GetPDFTextElementFloat;
    STATIC D_GETPDFTEXTELEMENTLONGFUNC                      DTWAIN_GetPDFTextElementLong;
    STATIC D_GETPDFTEXTELEMENTSTRINGFUNC                    DTWAIN_GetPDFTextElementString;
    STATIC D_GETPDFTEXTELEMENTSTRINGAFUNC                   DTWAIN_GetPDFTextElementStringA;
    STATIC D_GETPDFTEXTELEMENTSTRINGWFUNC                   DTWAIN_GetPDFTextElementStringW;
    STATIC D_GETPDFTYPE1FONTNAMEFUNC                        DTWAIN_GetPDFType1FontName;
    STATIC D_GETPDFTYPE1FONTNAMEAFUNC                       DTWAIN_GetPDFType1FontNameA;
    STATIC D_GETPDFTYPE1FONTNAMEWFUNC                       DTWAIN_GetPDFType1FontNameW;
    STATIC D_GETPAPERSIZEFUNC                               DTWAIN_GetPaperSize;
    STATIC D_GETPAPERSIZENAMEFUNC                           DTWAIN_GetPaperSizeName;
    STATIC D_GETPAPERSIZENAMEAFUNC                          DTWAIN_GetPaperSizeNameA;
    STATIC D_GETPAPERSIZENAMEWFUNC                          DTWAIN_GetPaperSizeNameW;
    STATIC D_GETPATCHCODEMAXPRIORITIESFUNC                  DTWAIN_GetPatchcodeMaxPriorities;
    STATIC D_GETPATCHCODEMAXRETRIESFUNC                     DTWAIN_GetPatchcodeMaxRetries;
    STATIC D_GETPATCHCODEPRIORITIESFUNC                     DTWAIN_GetPatchcodePriorities;
    STATIC D_GETPATCHCODESEARCHMODEFUNC                     DTWAIN_GetPatchcodeSearchMode;
    STATIC D_GETPATCHCODETIMEOUTFUNC                        DTWAIN_GetPatchcodeTimeOut;
    STATIC D_GETPIXELFLAVORFUNC                             DTWAIN_GetPixelFlavor;
    STATIC D_GETPIXELTYPEFUNC                               DTWAIN_GetPixelType;
    STATIC D_GETPRINTERFUNC                                 DTWAIN_GetPrinter;
    STATIC D_GETPRINTEREXFUNC                               DTWAIN_GetPrinterEx;
    STATIC D_GETPRINTERSTARTNUMBERFUNC                      DTWAIN_GetPrinterStartNumber;
    STATIC D_GETPRINTERSTARTNUMBEREXFUNC                    DTWAIN_GetPrinterStartNumberEx;
    STATIC D_GETPRINTERSTRINGMODEFUNC                       DTWAIN_GetPrinterStringMode;
    STATIC D_GETPRINTERSTRINGMODEEXFUNC                     DTWAIN_GetPrinterStringModeEx;
    STATIC D_GETPRINTERSTRINGSFUNC                          DTWAIN_GetPrinterStrings;
    STATIC D_GETPRINTERSTRINGSEXFUNC                        DTWAIN_GetPrinterStringsEx;
    STATIC D_GETPRINTERSUFFIXSTRINGFUNC                     DTWAIN_GetPrinterSuffixString;
    STATIC D_GETPRINTERSUFFIXSTRINGAFUNC                    DTWAIN_GetPrinterSuffixStringA;
    STATIC D_GETPRINTERSUFFIXSTRINGWFUNC                    DTWAIN_GetPrinterSuffixStringW;
    STATIC D_GETREGISTEREDMSGFUNC                           DTWAIN_GetRegisteredMsg;
    STATIC D_GETRESOLUTIONFUNC                              DTWAIN_GetResolution;
    STATIC D_GETRESOLUTIONEXFUNC                            DTWAIN_GetResolutionEx;
    STATIC D_GETRESOLUTIONSTRINGFUNC                        DTWAIN_GetResolutionString;
    STATIC D_GETRESOLUTIONSTRINGAFUNC                       DTWAIN_GetResolutionStringA;
    STATIC D_GETRESOLUTIONSTRINGWFUNC                       DTWAIN_GetResolutionStringW;
    STATIC D_GETRESOURCESTRINGFUNC                          DTWAIN_GetResourceString;
    STATIC D_GETRESOURCESTRINGAFUNC                         DTWAIN_GetResourceStringA;
    STATIC D_GETRESOURCESTRINGWFUNC                         DTWAIN_GetResourceStringW;
    STATIC D_GETROTATIONFUNC                                DTWAIN_GetRotation;
    STATIC D_GETROTATIONEXFUNC                              DTWAIN_GetRotationEx;
    STATIC D_GETROTATIONSTRINGFUNC                          DTWAIN_GetRotationString;
    STATIC D_GETROTATIONSTRINGAFUNC                         DTWAIN_GetRotationStringA;
    STATIC D_GETROTATIONSTRINGWFUNC                         DTWAIN_GetRotationStringW;
    STATIC D_GETSAVEFILENAMEFUNC                            DTWAIN_GetSaveFileName;
    STATIC D_GETSAVEFILENAMEAFUNC                           DTWAIN_GetSaveFileNameA;
    STATIC D_GETSAVEFILENAMEWFUNC                           DTWAIN_GetSaveFileNameW;
    STATIC D_GETSESSIONDETAILSFUNC                          DTWAIN_GetSessionDetails;
    STATIC D_GETSESSIONDETAILSAFUNC                         DTWAIN_GetSessionDetailsA;
    STATIC D_GETSESSIONDETAILSWFUNC                         DTWAIN_GetSessionDetailsW;
    STATIC D_GETSHADOWFUNC                                  DTWAIN_GetShadow;
    STATIC D_GETSHADOWSTRINGFUNC                            DTWAIN_GetShadowString;
    STATIC D_GETSHADOWSTRINGAFUNC                           DTWAIN_GetShadowStringA;
    STATIC D_GETSHADOWSTRINGWFUNC                           DTWAIN_GetShadowStringW;
    STATIC D_GETSHORTVERSIONSTRINGFUNC                      DTWAIN_GetShortVersionString;
    STATIC D_GETSHORTVERSIONSTRINGAFUNC                     DTWAIN_GetShortVersionStringA;
    STATIC D_GETSHORTVERSIONSTRINGWFUNC                     DTWAIN_GetShortVersionStringW;
    STATIC D_GETSOURCEACQUISITIONSFUNC                      DTWAIN_GetSourceAcquisitions;
    STATIC D_GETSOURCEDETAILSFUNC                           DTWAIN_GetSourceDetails;
    STATIC D_GETSOURCEDETAILSAFUNC                          DTWAIN_GetSourceDetailsA;
    STATIC D_GETSOURCEDETAILSWFUNC                          DTWAIN_GetSourceDetailsW;
    STATIC D_GETSOURCEIDFUNC                                DTWAIN_GetSourceID;
    STATIC D_GETSOURCEIDEXFUNC                              DTWAIN_GetSourceIDEx;
    STATIC D_GETSOURCEMANUFACTURERFUNC                      DTWAIN_GetSourceManufacturer;
    STATIC D_GETSOURCEMANUFACTURERAFUNC                     DTWAIN_GetSourceManufacturerA;
    STATIC D_GETSOURCEMANUFACTURERWFUNC                     DTWAIN_GetSourceManufacturerW;
    STATIC D_GETSOURCEPRODUCTFAMILYFUNC                     DTWAIN_GetSourceProductFamily;
    STATIC D_GETSOURCEPRODUCTFAMILYAFUNC                    DTWAIN_GetSourceProductFamilyA;
    STATIC D_GETSOURCEPRODUCTFAMILYWFUNC                    DTWAIN_GetSourceProductFamilyW;
    STATIC D_GETSOURCEPRODUCTNAMEFUNC                       DTWAIN_GetSourceProductName;
    STATIC D_GETSOURCEPRODUCTNAMEAFUNC                      DTWAIN_GetSourceProductNameA;
    STATIC D_GETSOURCEPRODUCTNAMEWFUNC                      DTWAIN_GetSourceProductNameW;
    STATIC D_GETSOURCEUNITFUNC                              DTWAIN_GetSourceUnit;
    STATIC D_GETSOURCEUNITEXFUNC                            DTWAIN_GetSourceUnitEx;
    STATIC D_GETSOURCEVERSIONINFOFUNC                       DTWAIN_GetSourceVersionInfo;
    STATIC D_GETSOURCEVERSIONINFOAFUNC                      DTWAIN_GetSourceVersionInfoA;
    STATIC D_GETSOURCEVERSIONINFOWFUNC                      DTWAIN_GetSourceVersionInfoW;
    STATIC D_GETSOURCEVERSIONNUMBERFUNC                     DTWAIN_GetSourceVersionNumber;
    STATIC D_GETSTATICLIBVERSIONFUNC                        DTWAIN_GetStaticLibVersion;
    STATIC D_GETTEMPFILEDIRECTORYFUNC                       DTWAIN_GetTempFileDirectory;
    STATIC D_GETTEMPFILEDIRECTORYAFUNC                      DTWAIN_GetTempFileDirectoryA;
    STATIC D_GETTEMPFILEDIRECTORYWFUNC                      DTWAIN_GetTempFileDirectoryW;
    STATIC D_GETTHRESHOLDFUNC                               DTWAIN_GetThreshold;
    STATIC D_GETTHRESHOLDSTRINGFUNC                         DTWAIN_GetThresholdString;
    STATIC D_GETTHRESHOLDSTRINGAFUNC                        DTWAIN_GetThresholdStringA;
    STATIC D_GETTHRESHOLDSTRINGWFUNC                        DTWAIN_GetThresholdStringW;
    STATIC D_GETTIMEDATEFUNC                                DTWAIN_GetTimeDate;
    STATIC D_GETTIMEDATEAFUNC                               DTWAIN_GetTimeDateA;
    STATIC D_GETTIMEDATEWFUNC                               DTWAIN_GetTimeDateW;
    STATIC D_GETTWAINAPPIDFUNC                              DTWAIN_GetTwainAppID;
    STATIC D_GETTWAINAPPIDEXFUNC                            DTWAIN_GetTwainAppIDEx;
    STATIC D_GETTWAINAVAILABILITYFUNC                       DTWAIN_GetTwainAvailability;
    STATIC D_GETTWAINAVAILABILITYEXFUNC                     DTWAIN_GetTwainAvailabilityEx;
    STATIC D_GETTWAINAVAILABILITYEXAFUNC                    DTWAIN_GetTwainAvailabilityExA;
    STATIC D_GETTWAINAVAILABILITYEXWFUNC                    DTWAIN_GetTwainAvailabilityExW;
    STATIC D_GETTWAINHWNDFUNC                               DTWAIN_GetTwainHwnd;
    STATIC D_GETTWAINMODEFUNC                               DTWAIN_GetTwainMode;
    STATIC D_GETTWAINNAMEFROMCONSTANTFUNC                   DTWAIN_GetTwainNameFromConstant;
    STATIC D_GETTWAINNAMEFROMCONSTANTAFUNC                  DTWAIN_GetTwainNameFromConstantA;
    STATIC D_GETTWAINNAMEFROMCONSTANTEXFUNC                 DTWAIN_GetTwainNameFromConstantEx;
    STATIC D_GETTWAINNAMEFROMCONSTANTEXAFUNC                DTWAIN_GetTwainNameFromConstantExA;
    STATIC D_GETTWAINNAMEFROMCONSTANTEXWFUNC                DTWAIN_GetTwainNameFromConstantExW;
    STATIC D_GETTWAINNAMEFROMCONSTANTWFUNC                  DTWAIN_GetTwainNameFromConstantW;
    STATIC D_GETTWAINTIMEOUTFUNC                            DTWAIN_GetTwainTimeout;
    STATIC D_GETVERSIONFUNC                                 DTWAIN_GetVersion;
    STATIC D_GETVERSIONCOPYRIGHTFUNC                        DTWAIN_GetVersionCopyright;
    STATIC D_GETVERSIONCOPYRIGHTAFUNC                       DTWAIN_GetVersionCopyrightA;
    STATIC D_GETVERSIONCOPYRIGHTWFUNC                       DTWAIN_GetVersionCopyrightW;
    STATIC D_GETVERSIONEXFUNC                               DTWAIN_GetVersionEx;
    STATIC D_GETVERSIONINFOFUNC                             DTWAIN_GetVersionInfo;
    STATIC D_GETVERSIONINFOAFUNC                            DTWAIN_GetVersionInfoA;
    STATIC D_GETVERSIONINFOWFUNC                            DTWAIN_GetVersionInfoW;
    STATIC D_GETVERSIONSTRINGFUNC                           DTWAIN_GetVersionString;
    STATIC D_GETVERSIONSTRINGAFUNC                          DTWAIN_GetVersionStringA;
    STATIC D_GETVERSIONSTRINGWFUNC                          DTWAIN_GetVersionStringW;
    STATIC D_GETWINDOWSVERSIONINFOFUNC                      DTWAIN_GetWindowsVersionInfo;
    STATIC D_GETWINDOWSVERSIONINFOAFUNC                     DTWAIN_GetWindowsVersionInfoA;
    STATIC D_GETWINDOWSVERSIONINFOWFUNC                     DTWAIN_GetWindowsVersionInfoW;
    STATIC D_GETXRESOLUTIONFUNC                             DTWAIN_GetXResolution;
    STATIC D_GETXRESOLUTIONSTRINGFUNC                       DTWAIN_GetXResolutionString;
    STATIC D_GETXRESOLUTIONSTRINGAFUNC                      DTWAIN_GetXResolutionStringA;
    STATIC D_GETXRESOLUTIONSTRINGWFUNC                      DTWAIN_GetXResolutionStringW;
    STATIC D_GETYRESOLUTIONFUNC                             DTWAIN_GetYResolution;
    STATIC D_GETYRESOLUTIONSTRINGFUNC                       DTWAIN_GetYResolutionString;
    STATIC D_GETYRESOLUTIONSTRINGAFUNC                      DTWAIN_GetYResolutionStringA;
    STATIC D_GETYRESOLUTIONSTRINGWFUNC                      DTWAIN_GetYResolutionStringW;
    STATIC D_INITEXTIMAGEINFOFUNC                           DTWAIN_InitExtImageInfo;
    STATIC D_INITIMAGEFILEAPPENDFUNC                        DTWAIN_InitImageFileAppend;
    STATIC D_INITIMAGEFILEAPPENDAFUNC                       DTWAIN_InitImageFileAppendA;
    STATIC D_INITIMAGEFILEAPPENDWFUNC                       DTWAIN_InitImageFileAppendW;
    STATIC D_INITOCRINTERFACEFUNC                           DTWAIN_InitOCRInterface;
    STATIC D_ISACQUIRINGFUNC                                DTWAIN_IsAcquiring;
    STATIC D_ISAUDIOXFERSUPPORTEDFUNC                       DTWAIN_IsAudioXferSupported;
    STATIC D_ISAUTOBORDERDETECTENABLEDFUNC                  DTWAIN_IsAutoBorderDetectEnabled;
    STATIC D_ISAUTOBORDERDETECTSUPPORTEDFUNC                DTWAIN_IsAutoBorderDetectSupported;
    STATIC D_ISAUTOBRIGHTENABLEDFUNC                        DTWAIN_IsAutoBrightEnabled;
    STATIC D_ISAUTOBRIGHTSUPPORTEDFUNC                      DTWAIN_IsAutoBrightSupported;
    STATIC D_ISAUTODESKEWENABLEDFUNC                        DTWAIN_IsAutoDeskewEnabled;
    STATIC D_ISAUTODESKEWSUPPORTEDFUNC                      DTWAIN_IsAutoDeskewSupported;
    STATIC D_ISAUTOFEEDENABLEDFUNC                          DTWAIN_IsAutoFeedEnabled;
    STATIC D_ISAUTOFEEDSUPPORTEDFUNC                        DTWAIN_IsAutoFeedSupported;
    STATIC D_ISAUTOROTATEENABLEDFUNC                        DTWAIN_IsAutoRotateEnabled;
    STATIC D_ISAUTOROTATESUPPORTEDFUNC                      DTWAIN_IsAutoRotateSupported;
    STATIC D_ISAUTOSCANENABLEDFUNC                          DTWAIN_IsAutoScanEnabled;
    STATIC D_ISAUTOMATICSENSEMEDIUMENABLEDFUNC              DTWAIN_IsAutomaticSenseMediumEnabled;
    STATIC D_ISAUTOMATICSENSEMEDIUMSUPPORTEDFUNC            DTWAIN_IsAutomaticSenseMediumSupported;
    STATIC D_ISBARCODECAPSSUPPORTEDFUNC                     DTWAIN_IsBarcodeCapsSupported;
    STATIC D_ISBARCODEDETECTIONENABLEDFUNC                  DTWAIN_IsBarcodeDetectionEnabled;
    STATIC D_ISBARCODESUPPORTEDFUNC                         DTWAIN_IsBarcodeSupported;
    STATIC D_ISBLANKPAGEDETECTIONONFUNC                     DTWAIN_IsBlankPageDetectionOn;
    STATIC D_ISBUFFEREDTILEMODEONFUNC                       DTWAIN_IsBufferedTileModeOn;
    STATIC D_ISBUFFEREDTILEMODESUPPORTEDFUNC                DTWAIN_IsBufferedTileModeSupported;
    STATIC D_ISCAPSUPPORTEDFUNC                             DTWAIN_IsCapSupported;
    STATIC D_ISCOMPRESSIONSUPPORTEDFUNC                     DTWAIN_IsCompressionSupported;
    STATIC D_ISCUSTOMDSDATASUPPORTEDFUNC                    DTWAIN_IsCustomDSDataSupported;
    STATIC D_ISDIBBLANKFUNC                                 DTWAIN_IsDIBBlank;
    STATIC D_ISDIBBLANKSTRINGFUNC                           DTWAIN_IsDIBBlankString;
    STATIC D_ISDIBBLANKSTRINGAFUNC                          DTWAIN_IsDIBBlankStringA;
    STATIC D_ISDIBBLANKSTRINGWFUNC                          DTWAIN_IsDIBBlankStringW;
    STATIC D_ISDEVICEEVENTSUPPORTEDFUNC                     DTWAIN_IsDeviceEventSupported;
    STATIC D_ISDEVICEONLINEFUNC                             DTWAIN_IsDeviceOnLine;
    STATIC D_ISDOUBLEFEEDDETECTLENGTHSUPPORTEDFUNC          DTWAIN_IsDoubleFeedDetectLengthSupported;
    STATIC D_ISDOUBLEFEEDDETECTSUPPORTEDFUNC                DTWAIN_IsDoubleFeedDetectSupported;
    STATIC D_ISDOUBLEPAGECOUNTONDUPLEXFUNC                  DTWAIN_IsDoublePageCountOnDuplex;
    STATIC D_ISDUPLEXENABLEDFUNC                            DTWAIN_IsDuplexEnabled;
    STATIC D_ISDUPLEXSUPPORTEDFUNC                          DTWAIN_IsDuplexSupported;
    STATIC D_ISEXTIMAGEINFOSUPPORTEDFUNC                    DTWAIN_IsExtImageInfoSupported;
    STATIC D_ISFEEDERENABLEDFUNC                            DTWAIN_IsFeederEnabled;
    STATIC D_ISFEEDERLOADEDFUNC                             DTWAIN_IsFeederLoaded;
    STATIC D_ISFEEDERSENSITIVEFUNC                          DTWAIN_IsFeederSensitive;
    STATIC D_ISFEEDERSUPPORTEDFUNC                          DTWAIN_IsFeederSupported;
    STATIC D_ISFILESYSTEMSUPPORTEDFUNC                      DTWAIN_IsFileSystemSupported;
    STATIC D_ISFILEXFERSUPPORTEDFUNC                        DTWAIN_IsFileXferSupported;
    STATIC D_ISGETMESSAGELOOPDETECTIONONFUNC                DTWAIN_IsGetMessageLoopDetectionOn;
    STATIC D_ISGETMESSAGELOOPENABLEDFUNC                    DTWAIN_IsGetMessageLoopEnabled;
    STATIC D_ISIAFIELDALASTPAGESUPPORTEDFUNC                DTWAIN_IsIAFieldALastPageSupported;
    STATIC D_ISIAFIELDALEVELSUPPORTEDFUNC                   DTWAIN_IsIAFieldALevelSupported;
    STATIC D_ISIAFIELDAPRINTFORMATSUPPORTEDFUNC             DTWAIN_IsIAFieldAPrintFormatSupported;
    STATIC D_ISIAFIELDAVALUESUPPORTEDFUNC                   DTWAIN_IsIAFieldAValueSupported;
    STATIC D_ISIAFIELDBLASTPAGESUPPORTEDFUNC                DTWAIN_IsIAFieldBLastPageSupported;
    STATIC D_ISIAFIELDBLEVELSUPPORTEDFUNC                   DTWAIN_IsIAFieldBLevelSupported;
    STATIC D_ISIAFIELDBPRINTFORMATSUPPORTEDFUNC             DTWAIN_IsIAFieldBPrintFormatSupported;
    STATIC D_ISIAFIELDBVALUESUPPORTEDFUNC                   DTWAIN_IsIAFieldBValueSupported;
    STATIC D_ISIAFIELDCLASTPAGESUPPORTEDFUNC                DTWAIN_IsIAFieldCLastPageSupported;
    STATIC D_ISIAFIELDCLEVELSUPPORTEDFUNC                   DTWAIN_IsIAFieldCLevelSupported;
    STATIC D_ISIAFIELDCPRINTFORMATSUPPORTEDFUNC             DTWAIN_IsIAFieldCPrintFormatSupported;
    STATIC D_ISIAFIELDCVALUESUPPORTEDFUNC                   DTWAIN_IsIAFieldCValueSupported;
    STATIC D_ISIAFIELDDLASTPAGESUPPORTEDFUNC                DTWAIN_IsIAFieldDLastPageSupported;
    STATIC D_ISIAFIELDDLEVELSUPPORTEDFUNC                   DTWAIN_IsIAFieldDLevelSupported;
    STATIC D_ISIAFIELDDPRINTFORMATSUPPORTEDFUNC             DTWAIN_IsIAFieldDPrintFormatSupported;
    STATIC D_ISIAFIELDDVALUESUPPORTEDFUNC                   DTWAIN_IsIAFieldDValueSupported;
    STATIC D_ISIAFIELDELASTPAGESUPPORTEDFUNC                DTWAIN_IsIAFieldELastPageSupported;
    STATIC D_ISIAFIELDELEVELSUPPORTEDFUNC                   DTWAIN_IsIAFieldELevelSupported;
    STATIC D_ISIAFIELDEPRINTFORMATSUPPORTEDFUNC             DTWAIN_IsIAFieldEPrintFormatSupported;
    STATIC D_ISIAFIELDEVALUESUPPORTEDFUNC                   DTWAIN_IsIAFieldEValueSupported;
    STATIC D_ISIMAGEADDRESSINGSUPPORTEDFUNC                 DTWAIN_IsImageAddressingSupported;
    STATIC D_ISINDICATORENABLEDFUNC                         DTWAIN_IsIndicatorEnabled;
    STATIC D_ISINDICATORSUPPORTEDFUNC                       DTWAIN_IsIndicatorSupported;
    STATIC D_ISINITIALIZEDFUNC                              DTWAIN_IsInitialized;
    STATIC D_ISJOBCONTROLSUPPORTEDFUNC                      DTWAIN_IsJobControlSupported;
    STATIC D_ISLAMPENABLEDFUNC                              DTWAIN_IsLampEnabled;
    STATIC D_ISLAMPSUPPORTEDFUNC                            DTWAIN_IsLampSupported;
    STATIC D_ISLIGHTPATHSUPPORTEDFUNC                       DTWAIN_IsLightPathSupported;
    STATIC D_ISLIGHTSOURCESUPPORTEDFUNC                     DTWAIN_IsLightSourceSupported;
    STATIC D_ISMAXBUFFERSSUPPORTEDFUNC                      DTWAIN_IsMaxBuffersSupported;
    STATIC D_ISMEMFILEXFERSUPPORTEDFUNC                     DTWAIN_IsMemFileXferSupported;
    STATIC D_ISMSGNOTIFYENABLEDFUNC                         DTWAIN_IsMsgNotifyEnabled;
    STATIC D_ISNOTIFYTRIPLETSENABLEDFUNC                    DTWAIN_IsNotifyTripletsEnabled;
    STATIC D_ISOCRENGINEACTIVATEDFUNC                       DTWAIN_IsOCREngineActivated;
    STATIC D_ISOPENSOURCESONSELECTFUNC                      DTWAIN_IsOpenSourcesOnSelect;
    STATIC D_ISORIENTATIONSUPPORTEDFUNC                     DTWAIN_IsOrientationSupported;
    STATIC D_ISOVERSCANSUPPORTEDFUNC                        DTWAIN_IsOverscanSupported;
    STATIC D_ISPAPERDETECTABLEFUNC                          DTWAIN_IsPaperDetectable;
    STATIC D_ISPAPERSIZESUPPORTEDFUNC                       DTWAIN_IsPaperSizeSupported;
    STATIC D_ISPATCHCODECAPSSUPPORTEDFUNC                   DTWAIN_IsPatchcodeCapsSupported;
    STATIC D_ISPATCHCODEDETECTIONENABLEDFUNC                DTWAIN_IsPatchcodeDetectionEnabled;
    STATIC D_ISPATCHCODESUPPORTEDFUNC                       DTWAIN_IsPatchcodeSupported;
    STATIC D_ISPEEKMESSAGELOOPENABLEDFUNC                   DTWAIN_IsPeekMessageLoopEnabled;
    STATIC D_ISPIXELTYPESUPPORTEDFUNC                       DTWAIN_IsPixelTypeSupported;
    STATIC D_ISPRINTERENABLEDFUNC                           DTWAIN_IsPrinterEnabled;
    STATIC D_ISPRINTERSUPPORTEDFUNC                         DTWAIN_IsPrinterSupported;
    STATIC D_ISROTATIONSUPPORTEDFUNC                        DTWAIN_IsRotationSupported;
    STATIC D_ISSESSIONENABLEDFUNC                           DTWAIN_IsSessionEnabled;
    STATIC D_ISSKIPIMAGEINFOERRORFUNC                       DTWAIN_IsSkipImageInfoError;
    STATIC D_ISSOURCEACQUIRINGFUNC                          DTWAIN_IsSourceAcquiring;
    STATIC D_ISSOURCEACQUIRINGEXFUNC                        DTWAIN_IsSourceAcquiringEx;
    STATIC D_ISSOURCEINUIONLYMODEFUNC                       DTWAIN_IsSourceInUIOnlyMode;
    STATIC D_ISSOURCEOPENFUNC                               DTWAIN_IsSourceOpen;
    STATIC D_ISSOURCESELECTEDFUNC                           DTWAIN_IsSourceSelected;
    STATIC D_ISSOURCEVALIDFUNC                              DTWAIN_IsSourceValid;
    STATIC D_ISTHUMBNAILENABLEDFUNC                         DTWAIN_IsThumbnailEnabled;
    STATIC D_ISTHUMBNAILSUPPORTEDFUNC                       DTWAIN_IsThumbnailSupported;
    STATIC D_ISTWAINAVAILABLEFUNC                           DTWAIN_IsTwainAvailable;
    STATIC D_ISTWAINAVAILABLEEXFUNC                         DTWAIN_IsTwainAvailableEx;
    STATIC D_ISTWAINAVAILABLEEXAFUNC                        DTWAIN_IsTwainAvailableExA;
    STATIC D_ISTWAINAVAILABLEEXWFUNC                        DTWAIN_IsTwainAvailableExW;
    STATIC D_ISTWAINMSGFUNC                                 DTWAIN_IsTwainMsg;
    STATIC D_ISUICONTROLLABLEFUNC                           DTWAIN_IsUIControllable;
    STATIC D_ISUIENABLEDFUNC                                DTWAIN_IsUIEnabled;
    STATIC D_ISUIONLYSUPPORTEDFUNC                          DTWAIN_IsUIOnlySupported;
    STATIC D_LOADCUSTOMSTRINGRESOURCESFUNC                  DTWAIN_LoadCustomStringResources;
    STATIC D_LOADCUSTOMSTRINGRESOURCESAFUNC                 DTWAIN_LoadCustomStringResourcesA;
    STATIC D_LOADCUSTOMSTRINGRESOURCESEXFUNC                DTWAIN_LoadCustomStringResourcesEx;
    STATIC D_LOADCUSTOMSTRINGRESOURCESEXAFUNC               DTWAIN_LoadCustomStringResourcesExA;
    STATIC D_LOADCUSTOMSTRINGRESOURCESEXWFUNC               DTWAIN_LoadCustomStringResourcesExW;
    STATIC D_LOADCUSTOMSTRINGRESOURCESWFUNC                 DTWAIN_LoadCustomStringResourcesW;
    STATIC D_LOADLANGUAGERESOURCEFUNC                       DTWAIN_LoadLanguageResource;
    STATIC D_LOCKMEMORYFUNC                                 DTWAIN_LockMemory;
    STATIC D_LOCKMEMORYEXFUNC                               DTWAIN_LockMemoryEx;
    STATIC D_LOGMESSAGEFUNC                                 DTWAIN_LogMessage;
    STATIC D_LOGMESSAGEAFUNC                                DTWAIN_LogMessageA;
    STATIC D_LOGMESSAGEWFUNC                                DTWAIN_LogMessageW;
    STATIC D_MAKERGBFUNC                                    DTWAIN_MakeRGB;
    STATIC D_OPENSOURCEFUNC                                 DTWAIN_OpenSource;
    STATIC D_OPENSOURCESONSELECTFUNC                        DTWAIN_OpenSourcesOnSelect;
    STATIC D_RANGECREATEFUNC                                DTWAIN_RangeCreate;
    STATIC D_RANGECREATEFROMCAPFUNC                         DTWAIN_RangeCreateFromCap;
    STATIC D_RANGEDESTROYFUNC                               DTWAIN_RangeDestroy;
    STATIC D_RANGEEXPANDFUNC                                DTWAIN_RangeExpand;
    STATIC D_RANGEEXPANDEXFUNC                              DTWAIN_RangeExpandEx;
    STATIC D_RANGEGETALLFUNC                                DTWAIN_RangeGetAll;
    STATIC D_RANGEGETALLFLOATFUNC                           DTWAIN_RangeGetAllFloat;
    STATIC D_RANGEGETALLFLOATSTRINGFUNC                     DTWAIN_RangeGetAllFloatString;
    STATIC D_RANGEGETALLFLOATSTRINGAFUNC                    DTWAIN_RangeGetAllFloatStringA;
    STATIC D_RANGEGETALLFLOATSTRINGWFUNC                    DTWAIN_RangeGetAllFloatStringW;
    STATIC D_RANGEGETALLLONGFUNC                            DTWAIN_RangeGetAllLong;
    STATIC D_RANGEGETCOUNTFUNC                              DTWAIN_RangeGetCount;
    STATIC D_RANGEGETEXPVALUEFUNC                           DTWAIN_RangeGetExpValue;
    STATIC D_RANGEGETEXPVALUEFLOATFUNC                      DTWAIN_RangeGetExpValueFloat;
    STATIC D_RANGEGETEXPVALUEFLOATSTRINGFUNC                DTWAIN_RangeGetExpValueFloatString;
    STATIC D_RANGEGETEXPVALUEFLOATSTRINGAFUNC               DTWAIN_RangeGetExpValueFloatStringA;
    STATIC D_RANGEGETEXPVALUEFLOATSTRINGWFUNC               DTWAIN_RangeGetExpValueFloatStringW;
    STATIC D_RANGEGETEXPVALUELONGFUNC                       DTWAIN_RangeGetExpValueLong;
    STATIC D_RANGEGETNEARESTVALUEFUNC                       DTWAIN_RangeGetNearestValue;
    STATIC D_RANGEGETNEARESTVALUEFLOATFUNC                  DTWAIN_RangeGetNearestValueFloat;
    STATIC D_RANGEGETNEARESTVALUEFLOATSTRINGFUNC            DTWAIN_RangeGetNearestValueFloatString;
    STATIC D_RANGEGETNEARESTVALUEFLOATSTRINGAFUNC           DTWAIN_RangeGetNearestValueFloatStringA;
    STATIC D_RANGEGETNEARESTVALUEFLOATSTRINGWFUNC           DTWAIN_RangeGetNearestValueFloatStringW;
    STATIC D_RANGEGETNEARESTVALUELONGFUNC                   DTWAIN_RangeGetNearestValueLong;
    STATIC D_RANGEGETPOSFUNC                                DTWAIN_RangeGetPos;
    STATIC D_RANGEGETPOSFLOATFUNC                           DTWAIN_RangeGetPosFloat;
    STATIC D_RANGEGETPOSFLOATSTRINGFUNC                     DTWAIN_RangeGetPosFloatString;
    STATIC D_RANGEGETPOSFLOATSTRINGAFUNC                    DTWAIN_RangeGetPosFloatStringA;
    STATIC D_RANGEGETPOSFLOATSTRINGWFUNC                    DTWAIN_RangeGetPosFloatStringW;
    STATIC D_RANGEGETPOSLONGFUNC                            DTWAIN_RangeGetPosLong;
    STATIC D_RANGEGETVALUEFUNC                              DTWAIN_RangeGetValue;
    STATIC D_RANGEGETVALUEFLOATFUNC                         DTWAIN_RangeGetValueFloat;
    STATIC D_RANGEGETVALUEFLOATSTRINGFUNC                   DTWAIN_RangeGetValueFloatString;
    STATIC D_RANGEGETVALUEFLOATSTRINGAFUNC                  DTWAIN_RangeGetValueFloatStringA;
    STATIC D_RANGEGETVALUEFLOATSTRINGWFUNC                  DTWAIN_RangeGetValueFloatStringW;
    STATIC D_RANGEGETVALUELONGFUNC                          DTWAIN_RangeGetValueLong;
    STATIC D_RANGEISVALIDFUNC                               DTWAIN_RangeIsValid;
    STATIC D_RANGESETALLFUNC                                DTWAIN_RangeSetAll;
    STATIC D_RANGESETALLFLOATFUNC                           DTWAIN_RangeSetAllFloat;
    STATIC D_RANGESETALLFLOATSTRINGFUNC                     DTWAIN_RangeSetAllFloatString;
    STATIC D_RANGESETALLFLOATSTRINGAFUNC                    DTWAIN_RangeSetAllFloatStringA;
    STATIC D_RANGESETALLFLOATSTRINGWFUNC                    DTWAIN_RangeSetAllFloatStringW;
    STATIC D_RANGESETALLLONGFUNC                            DTWAIN_RangeSetAllLong;
    STATIC D_RANGESETVALUEFUNC                              DTWAIN_RangeSetValue;
    STATIC D_RANGESETVALUEFLOATFUNC                         DTWAIN_RangeSetValueFloat;
    STATIC D_RANGESETVALUEFLOATSTRINGFUNC                   DTWAIN_RangeSetValueFloatString;
    STATIC D_RANGESETVALUEFLOATSTRINGAFUNC                  DTWAIN_RangeSetValueFloatStringA;
    STATIC D_RANGESETVALUEFLOATSTRINGWFUNC                  DTWAIN_RangeSetValueFloatStringW;
    STATIC D_RANGESETVALUELONGFUNC                          DTWAIN_RangeSetValueLong;
    STATIC D_REMOVEPDFTEXTELEMENTFUNC                       DTWAIN_RemovePDFTextElement;
    STATIC D_RESETPDFTEXTELEMENTFUNC                        DTWAIN_ResetPDFTextElement;
    STATIC D_REWINDPAGEFUNC                                 DTWAIN_RewindPage;
    STATIC D_ROTATEIMAGEFUNC                                DTWAIN_RotateImage;
    STATIC D_ROTATEIMAGESTRINGFUNC                          DTWAIN_RotateImageString;
    STATIC D_ROTATEIMAGESTRINGAFUNC                         DTWAIN_RotateImageStringA;
    STATIC D_ROTATEIMAGESTRINGWFUNC                         DTWAIN_RotateImageStringW;
    STATIC D_SELECTDEFAULTOCRENGINEFUNC                     DTWAIN_SelectDefaultOCREngine;
    STATIC D_SELECTDEFAULTSOURCEFUNC                        DTWAIN_SelectDefaultSource;
    STATIC D_SELECTDEFAULTSOURCEWITHOPENFUNC                DTWAIN_SelectDefaultSourceWithOpen;
    STATIC D_SELECTOCRENGINEFUNC                            DTWAIN_SelectOCREngine;
    STATIC D_SELECTOCRENGINE2FUNC                           DTWAIN_SelectOCREngine2;
    STATIC D_SELECTOCRENGINE2AFUNC                          DTWAIN_SelectOCREngine2A;
    STATIC D_SELECTOCRENGINE2EXFUNC                         DTWAIN_SelectOCREngine2Ex;
    STATIC D_SELECTOCRENGINE2EXAFUNC                        DTWAIN_SelectOCREngine2ExA;
    STATIC D_SELECTOCRENGINE2EXWFUNC                        DTWAIN_SelectOCREngine2ExW;
    STATIC D_SELECTOCRENGINE2WFUNC                          DTWAIN_SelectOCREngine2W;
    STATIC D_SELECTOCRENGINEBYNAMEFUNC                      DTWAIN_SelectOCREngineByName;
    STATIC D_SELECTOCRENGINEBYNAMEAFUNC                     DTWAIN_SelectOCREngineByNameA;
    STATIC D_SELECTOCRENGINEBYNAMEWFUNC                     DTWAIN_SelectOCREngineByNameW;
    STATIC D_SELECTSOURCEFUNC                               DTWAIN_SelectSource;
    STATIC D_SELECTSOURCE2FUNC                              DTWAIN_SelectSource2;
    STATIC D_SELECTSOURCE2AFUNC                             DTWAIN_SelectSource2A;
    STATIC D_SELECTSOURCE2EXFUNC                            DTWAIN_SelectSource2Ex;
    STATIC D_SELECTSOURCE2EXAFUNC                           DTWAIN_SelectSource2ExA;
    STATIC D_SELECTSOURCE2EXWFUNC                           DTWAIN_SelectSource2ExW;
    STATIC D_SELECTSOURCE2WFUNC                             DTWAIN_SelectSource2W;
    STATIC D_SELECTSOURCEBYNAMEFUNC                         DTWAIN_SelectSourceByName;
    STATIC D_SELECTSOURCEBYNAMEAFUNC                        DTWAIN_SelectSourceByNameA;
    STATIC D_SELECTSOURCEBYNAMEWFUNC                        DTWAIN_SelectSourceByNameW;
    STATIC D_SELECTSOURCEBYNAMEWITHOPENFUNC                 DTWAIN_SelectSourceByNameWithOpen;
    STATIC D_SELECTSOURCEBYNAMEWITHOPENAFUNC                DTWAIN_SelectSourceByNameWithOpenA;
    STATIC D_SELECTSOURCEBYNAMEWITHOPENWFUNC                DTWAIN_SelectSourceByNameWithOpenW;
    STATIC D_SELECTSOURCEWITHOPENFUNC                       DTWAIN_SelectSourceWithOpen;
    STATIC D_SETACQUIREAREAFUNC                             DTWAIN_SetAcquireArea;
    STATIC D_SETACQUIREAREA2FUNC                            DTWAIN_SetAcquireArea2;
    STATIC D_SETACQUIREAREA2STRINGFUNC                      DTWAIN_SetAcquireArea2String;
    STATIC D_SETACQUIREAREA2STRINGAFUNC                     DTWAIN_SetAcquireArea2StringA;
    STATIC D_SETACQUIREAREA2STRINGWFUNC                     DTWAIN_SetAcquireArea2StringW;
    STATIC D_SETACQUIREIMAGENEGATIVEFUNC                    DTWAIN_SetAcquireImageNegative;
    STATIC D_SETACQUIREIMAGESCALEFUNC                       DTWAIN_SetAcquireImageScale;
    STATIC D_SETACQUIREIMAGESCALESTRINGFUNC                 DTWAIN_SetAcquireImageScaleString;
    STATIC D_SETACQUIREIMAGESCALESTRINGAFUNC                DTWAIN_SetAcquireImageScaleStringA;
    STATIC D_SETACQUIREIMAGESCALESTRINGWFUNC                DTWAIN_SetAcquireImageScaleStringW;
    STATIC D_SETACQUIRESTRIPBUFFERFUNC                      DTWAIN_SetAcquireStripBuffer;
    STATIC D_SETACQUIRESTRIPSIZEFUNC                        DTWAIN_SetAcquireStripSize;
    STATIC D_SETALARMVOLUMEFUNC                             DTWAIN_SetAlarmVolume;
    STATIC D_SETALARMSFUNC                                  DTWAIN_SetAlarms;
    STATIC D_SETALLCAPSTODEFAULTFUNC                        DTWAIN_SetAllCapsToDefault;
    STATIC D_SETAPPINFOFUNC                                 DTWAIN_SetAppInfo;
    STATIC D_SETAPPINFOAFUNC                                DTWAIN_SetAppInfoA;
    STATIC D_SETAPPINFOWFUNC                                DTWAIN_SetAppInfoW;
    STATIC D_SETAUTHORFUNC                                  DTWAIN_SetAuthor;
    STATIC D_SETAUTHORAFUNC                                 DTWAIN_SetAuthorA;
    STATIC D_SETAUTHORWFUNC                                 DTWAIN_SetAuthorW;
    STATIC D_SETAVAILABLEPRINTERSFUNC                       DTWAIN_SetAvailablePrinters;
    STATIC D_SETAVAILABLEPRINTERSARRAYFUNC                  DTWAIN_SetAvailablePrintersArray;
    STATIC D_SETBARCODEMAXPRIORITIESFUNC                    DTWAIN_SetBarcodeMaxPriorities;
    STATIC D_SETBARCODEMAXRETRIESFUNC                       DTWAIN_SetBarcodeMaxRetries;
    STATIC D_SETBARCODEPRIORITIESFUNC                       DTWAIN_SetBarcodePriorities;
    STATIC D_SETBARCODESEARCHMODEFUNC                       DTWAIN_SetBarcodeSearchMode;
    STATIC D_SETBARCODETIMEOUTFUNC                          DTWAIN_SetBarcodeTimeOut;
    STATIC D_SETBITDEPTHFUNC                                DTWAIN_SetBitDepth;
    STATIC D_SETBLANKPAGEDETECTIONFUNC                      DTWAIN_SetBlankPageDetection;
    STATIC D_SETBLANKPAGEDETECTIONEXFUNC                    DTWAIN_SetBlankPageDetectionEx;
    STATIC D_SETBLANKPAGEDETECTIONEXSTRINGFUNC              DTWAIN_SetBlankPageDetectionExString;
    STATIC D_SETBLANKPAGEDETECTIONEXSTRINGAFUNC             DTWAIN_SetBlankPageDetectionExStringA;
    STATIC D_SETBLANKPAGEDETECTIONEXSTRINGWFUNC             DTWAIN_SetBlankPageDetectionExStringW;
    STATIC D_SETBLANKPAGEDETECTIONSTRINGFUNC                DTWAIN_SetBlankPageDetectionString;
    STATIC D_SETBLANKPAGEDETECTIONSTRINGAFUNC               DTWAIN_SetBlankPageDetectionStringA;
    STATIC D_SETBLANKPAGEDETECTIONSTRINGWFUNC               DTWAIN_SetBlankPageDetectionStringW;
    STATIC D_SETBRIGHTNESSFUNC                              DTWAIN_SetBrightness;
    STATIC D_SETBRIGHTNESSSTRINGFUNC                        DTWAIN_SetBrightnessString;
    STATIC D_SETBRIGHTNESSSTRINGAFUNC                       DTWAIN_SetBrightnessStringA;
    STATIC D_SETBRIGHTNESSSTRINGWFUNC                       DTWAIN_SetBrightnessStringW;
    STATIC D_SETBUFFEREDTILEMODEFUNC                        DTWAIN_SetBufferedTileMode;
    STATIC D_SETCALLBACKFUNC                                DTWAIN_SetCallback;
    STATIC D_SETCALLBACK64FUNC                              DTWAIN_SetCallback64;
    STATIC D_SETCAMERAFUNC                                  DTWAIN_SetCamera;
    STATIC D_SETCAMERAAFUNC                                 DTWAIN_SetCameraA;
    STATIC D_SETCAMERAWFUNC                                 DTWAIN_SetCameraW;
    STATIC D_SETCAPVALUESFUNC                               DTWAIN_SetCapValues;
    STATIC D_SETCAPVALUESEXFUNC                             DTWAIN_SetCapValuesEx;
    STATIC D_SETCAPVALUESEX2FUNC                            DTWAIN_SetCapValuesEx2;
    STATIC D_SETCAPTIONFUNC                                 DTWAIN_SetCaption;
    STATIC D_SETCAPTIONAFUNC                                DTWAIN_SetCaptionA;
    STATIC D_SETCAPTIONWFUNC                                DTWAIN_SetCaptionW;
    STATIC D_SETCOMPRESSIONTYPEFUNC                         DTWAIN_SetCompressionType;
    STATIC D_SETCONTRASTFUNC                                DTWAIN_SetContrast;
    STATIC D_SETCONTRASTSTRINGFUNC                          DTWAIN_SetContrastString;
    STATIC D_SETCONTRASTSTRINGAFUNC                         DTWAIN_SetContrastStringA;
    STATIC D_SETCONTRASTSTRINGWFUNC                         DTWAIN_SetContrastStringW;
    STATIC D_SETCOUNTRYFUNC                                 DTWAIN_SetCountry;
    STATIC D_SETCURRENTRETRYCOUNTFUNC                       DTWAIN_SetCurrentRetryCount;
    STATIC D_SETCUSTOMDSDATAFUNC                            DTWAIN_SetCustomDSData;
    STATIC D_SETDSMSEARCHORDERFUNC                          DTWAIN_SetDSMSearchOrder;
    STATIC D_SETDSMSEARCHORDEREXFUNC                        DTWAIN_SetDSMSearchOrderEx;
    STATIC D_SETDSMSEARCHORDEREXAFUNC                       DTWAIN_SetDSMSearchOrderExA;
    STATIC D_SETDSMSEARCHORDEREXWFUNC                       DTWAIN_SetDSMSearchOrderExW;
    STATIC D_SETDEFAULTSOURCEFUNC                           DTWAIN_SetDefaultSource;
    STATIC D_SETDEVICENOTIFICATIONSFUNC                     DTWAIN_SetDeviceNotifications;
    STATIC D_SETDEVICETIMEDATEFUNC                          DTWAIN_SetDeviceTimeDate;
    STATIC D_SETDEVICETIMEDATEAFUNC                         DTWAIN_SetDeviceTimeDateA;
    STATIC D_SETDEVICETIMEDATEWFUNC                         DTWAIN_SetDeviceTimeDateW;
    STATIC D_SETDOUBLEFEEDDETECTLENGTHFUNC                  DTWAIN_SetDoubleFeedDetectLength;
    STATIC D_SETDOUBLEFEEDDETECTLENGTHSTRINGFUNC            DTWAIN_SetDoubleFeedDetectLengthString;
    STATIC D_SETDOUBLEFEEDDETECTLENGTHSTRINGAFUNC           DTWAIN_SetDoubleFeedDetectLengthStringA;
    STATIC D_SETDOUBLEFEEDDETECTLENGTHSTRINGWFUNC           DTWAIN_SetDoubleFeedDetectLengthStringW;
    STATIC D_SETDOUBLEFEEDDETECTVALUESFUNC                  DTWAIN_SetDoubleFeedDetectValues;
    STATIC D_SETDOUBLEPAGECOUNTONDUPLEXFUNC                 DTWAIN_SetDoublePageCountOnDuplex;
    STATIC D_SETEOJDETECTVALUEFUNC                          DTWAIN_SetEOJDetectValue;
    STATIC D_SETERRORBUFFERTHRESHOLDFUNC                    DTWAIN_SetErrorBufferThreshold;
    STATIC D_SETERRORCALLBACKFUNC                           DTWAIN_SetErrorCallback;
    STATIC D_SETERRORCALLBACK64FUNC                         DTWAIN_SetErrorCallback64;
    STATIC D_SETFEEDERALIGNMENTFUNC                         DTWAIN_SetFeederAlignment;
    STATIC D_SETFEEDERORDERFUNC                             DTWAIN_SetFeederOrder;
    STATIC D_SETFEEDERWAITTIMEFUNC                          DTWAIN_SetFeederWaitTime;
    STATIC D_SETFILEAUTOINCREMENTFUNC                       DTWAIN_SetFileAutoIncrement;
    STATIC D_SETFILECOMPRESSIONTYPEFUNC                     DTWAIN_SetFileCompressionType;
    STATIC D_SETFILESAVEPOSFUNC                             DTWAIN_SetFileSavePos;
    STATIC D_SETFILESAVEPOSAFUNC                            DTWAIN_SetFileSavePosA;
    STATIC D_SETFILESAVEPOSWFUNC                            DTWAIN_SetFileSavePosW;
    STATIC D_SETFILEXFERFORMATFUNC                          DTWAIN_SetFileXferFormat;
    STATIC D_SETHALFTONEFUNC                                DTWAIN_SetHalftone;
    STATIC D_SETHALFTONEAFUNC                               DTWAIN_SetHalftoneA;
    STATIC D_SETHALFTONEWFUNC                               DTWAIN_SetHalftoneW;
    STATIC D_SETHIGHLIGHTFUNC                               DTWAIN_SetHighlight;
    STATIC D_SETHIGHLIGHTSTRINGFUNC                         DTWAIN_SetHighlightString;
    STATIC D_SETHIGHLIGHTSTRINGAFUNC                        DTWAIN_SetHighlightStringA;
    STATIC D_SETHIGHLIGHTSTRINGWFUNC                        DTWAIN_SetHighlightStringW;
    STATIC D_SETJOBCONTROLFUNC                              DTWAIN_SetJobControl;
    STATIC D_SETJPEGVALUESFUNC                              DTWAIN_SetJpegValues;
    STATIC D_SETJPEGXRVALUESFUNC                            DTWAIN_SetJpegXRValues;
    STATIC D_SETLANGUAGEFUNC                                DTWAIN_SetLanguage;
    STATIC D_SETLASTERRORFUNC                               DTWAIN_SetLastError;
    STATIC D_SETLIGHTPATHFUNC                               DTWAIN_SetLightPath;
    STATIC D_SETLIGHTPATHEXFUNC                             DTWAIN_SetLightPathEx;
    STATIC D_SETLIGHTSOURCEFUNC                             DTWAIN_SetLightSource;
    STATIC D_SETLIGHTSOURCESFUNC                            DTWAIN_SetLightSources;
    STATIC D_SETLOGSAVETHRESHOLDFUNC                        DTWAIN_SetLogSaveThreshold;
    STATIC D_SETLOGGERCALLBACKFUNC                          DTWAIN_SetLoggerCallback;
    STATIC D_SETLOGGERCALLBACKAFUNC                         DTWAIN_SetLoggerCallbackA;
    STATIC D_SETLOGGERCALLBACKWFUNC                         DTWAIN_SetLoggerCallbackW;
    STATIC D_SETMANUALDUPLEXMODEFUNC                        DTWAIN_SetManualDuplexMode;
    STATIC D_SETMAXACQUISITIONSFUNC                         DTWAIN_SetMaxAcquisitions;
    STATIC D_SETMAXBUFFERSFUNC                              DTWAIN_SetMaxBuffers;
    STATIC D_SETMAXRETRYATTEMPTSFUNC                        DTWAIN_SetMaxRetryAttempts;
    STATIC D_SETMULTIPAGESCANMODEFUNC                       DTWAIN_SetMultipageScanMode;
    STATIC D_SETNOISEFILTERFUNC                             DTWAIN_SetNoiseFilter;
    STATIC D_SETOCRCAPVALUESFUNC                            DTWAIN_SetOCRCapValues;
    STATIC D_SETORIENTATIONFUNC                             DTWAIN_SetOrientation;
    STATIC D_SETOVERSCANFUNC                                DTWAIN_SetOverscan;
    STATIC D_SETPDFAESENCRYPTIONFUNC                        DTWAIN_SetPDFAESEncryption;
    STATIC D_SETPDFASCIICOMPRESSIONFUNC                     DTWAIN_SetPDFASCIICompression;
    STATIC D_SETPDFAUTHORFUNC                               DTWAIN_SetPDFAuthor;
    STATIC D_SETPDFAUTHORAFUNC                              DTWAIN_SetPDFAuthorA;
    STATIC D_SETPDFAUTHORWFUNC                              DTWAIN_SetPDFAuthorW;
    STATIC D_SETPDFCOMPRESSIONFUNC                          DTWAIN_SetPDFCompression;
    STATIC D_SETPDFCREATORFUNC                              DTWAIN_SetPDFCreator;
    STATIC D_SETPDFCREATORAFUNC                             DTWAIN_SetPDFCreatorA;
    STATIC D_SETPDFCREATORWFUNC                             DTWAIN_SetPDFCreatorW;
    STATIC D_SETPDFENCRYPTIONFUNC                           DTWAIN_SetPDFEncryption;
    STATIC D_SETPDFENCRYPTIONAFUNC                          DTWAIN_SetPDFEncryptionA;
    STATIC D_SETPDFENCRYPTIONWFUNC                          DTWAIN_SetPDFEncryptionW;
    STATIC D_SETPDFJPEGQUALITYFUNC                          DTWAIN_SetPDFJpegQuality;
    STATIC D_SETPDFKEYWORDSFUNC                             DTWAIN_SetPDFKeywords;
    STATIC D_SETPDFKEYWORDSAFUNC                            DTWAIN_SetPDFKeywordsA;
    STATIC D_SETPDFKEYWORDSWFUNC                            DTWAIN_SetPDFKeywordsW;
    STATIC D_SETPDFOCRCONVERSIONFUNC                        DTWAIN_SetPDFOCRConversion;
    STATIC D_SETPDFOCRMODEFUNC                              DTWAIN_SetPDFOCRMode;
    STATIC D_SETPDFORIENTATIONFUNC                          DTWAIN_SetPDFOrientation;
    STATIC D_SETPDFPAGESCALEFUNC                            DTWAIN_SetPDFPageScale;
    STATIC D_SETPDFPAGESCALESTRINGFUNC                      DTWAIN_SetPDFPageScaleString;
    STATIC D_SETPDFPAGESCALESTRINGAFUNC                     DTWAIN_SetPDFPageScaleStringA;
    STATIC D_SETPDFPAGESCALESTRINGWFUNC                     DTWAIN_SetPDFPageScaleStringW;
    STATIC D_SETPDFPAGESIZEFUNC                             DTWAIN_SetPDFPageSize;
    STATIC D_SETPDFPAGESIZESTRINGFUNC                       DTWAIN_SetPDFPageSizeString;
    STATIC D_SETPDFPAGESIZESTRINGAFUNC                      DTWAIN_SetPDFPageSizeStringA;
    STATIC D_SETPDFPAGESIZESTRINGWFUNC                      DTWAIN_SetPDFPageSizeStringW;
    STATIC D_SETPDFPOLARITYFUNC                             DTWAIN_SetPDFPolarity;
    STATIC D_SETPDFPRODUCERFUNC                             DTWAIN_SetPDFProducer;
    STATIC D_SETPDFPRODUCERAFUNC                            DTWAIN_SetPDFProducerA;
    STATIC D_SETPDFPRODUCERWFUNC                            DTWAIN_SetPDFProducerW;
    STATIC D_SETPDFSUBJECTFUNC                              DTWAIN_SetPDFSubject;
    STATIC D_SETPDFSUBJECTAFUNC                             DTWAIN_SetPDFSubjectA;
    STATIC D_SETPDFSUBJECTWFUNC                             DTWAIN_SetPDFSubjectW;
    STATIC D_SETPDFTEXTELEMENTFLOATFUNC                     DTWAIN_SetPDFTextElementFloat;
    STATIC D_SETPDFTEXTELEMENTFLOATSTRINGFUNC               DTWAIN_SetPDFTextElementFloatString;
    STATIC D_SETPDFTEXTELEMENTFLOATSTRINGAFUNC              DTWAIN_SetPDFTextElementFloatStringA;
    STATIC D_SETPDFTEXTELEMENTFLOATSTRINGWFUNC              DTWAIN_SetPDFTextElementFloatStringW;
    STATIC D_SETPDFTEXTELEMENTLONGFUNC                      DTWAIN_SetPDFTextElementLong;
    STATIC D_SETPDFTEXTELEMENTSTRINGFUNC                    DTWAIN_SetPDFTextElementString;
    STATIC D_SETPDFTEXTELEMENTSTRINGAFUNC                   DTWAIN_SetPDFTextElementStringA;
    STATIC D_SETPDFTEXTELEMENTSTRINGWFUNC                   DTWAIN_SetPDFTextElementStringW;
    STATIC D_SETPDFTITLEFUNC                                DTWAIN_SetPDFTitle;
    STATIC D_SETPDFTITLEAFUNC                               DTWAIN_SetPDFTitleA;
    STATIC D_SETPDFTITLEWFUNC                               DTWAIN_SetPDFTitleW;
    STATIC D_SETPAPERSIZEFUNC                               DTWAIN_SetPaperSize;
    STATIC D_SETPATCHCODEMAXPRIORITIESFUNC                  DTWAIN_SetPatchcodeMaxPriorities;
    STATIC D_SETPATCHCODEMAXRETRIESFUNC                     DTWAIN_SetPatchcodeMaxRetries;
    STATIC D_SETPATCHCODEPRIORITIESFUNC                     DTWAIN_SetPatchcodePriorities;
    STATIC D_SETPATCHCODESEARCHMODEFUNC                     DTWAIN_SetPatchcodeSearchMode;
    STATIC D_SETPATCHCODETIMEOUTFUNC                        DTWAIN_SetPatchcodeTimeOut;
    STATIC D_SETPIXELFLAVORFUNC                             DTWAIN_SetPixelFlavor;
    STATIC D_SETPIXELTYPEFUNC                               DTWAIN_SetPixelType;
    STATIC D_SETPOSTSCRIPTTITLEFUNC                         DTWAIN_SetPostScriptTitle;
    STATIC D_SETPOSTSCRIPTTITLEAFUNC                        DTWAIN_SetPostScriptTitleA;
    STATIC D_SETPOSTSCRIPTTITLEWFUNC                        DTWAIN_SetPostScriptTitleW;
    STATIC D_SETPOSTSCRIPTTYPEFUNC                          DTWAIN_SetPostScriptType;
    STATIC D_SETPRINTERFUNC                                 DTWAIN_SetPrinter;
    STATIC D_SETPRINTEREXFUNC                               DTWAIN_SetPrinterEx;
    STATIC D_SETPRINTERSTARTNUMBERFUNC                      DTWAIN_SetPrinterStartNumber;
    STATIC D_SETPRINTERSTRINGMODEFUNC                       DTWAIN_SetPrinterStringMode;
    STATIC D_SETPRINTERSTRINGSFUNC                          DTWAIN_SetPrinterStrings;
    STATIC D_SETPRINTERSUFFIXSTRINGFUNC                     DTWAIN_SetPrinterSuffixString;
    STATIC D_SETPRINTERSUFFIXSTRINGAFUNC                    DTWAIN_SetPrinterSuffixStringA;
    STATIC D_SETPRINTERSUFFIXSTRINGWFUNC                    DTWAIN_SetPrinterSuffixStringW;
    STATIC D_SETQUERYCAPSUPPORTFUNC                         DTWAIN_SetQueryCapSupport;
    STATIC D_SETRESOLUTIONFUNC                              DTWAIN_SetResolution;
    STATIC D_SETRESOLUTIONSTRINGFUNC                        DTWAIN_SetResolutionString;
    STATIC D_SETRESOLUTIONSTRINGAFUNC                       DTWAIN_SetResolutionStringA;
    STATIC D_SETRESOLUTIONSTRINGWFUNC                       DTWAIN_SetResolutionStringW;
    STATIC D_SETRESOURCEPATHFUNC                            DTWAIN_SetResourcePath;
    STATIC D_SETRESOURCEPATHAFUNC                           DTWAIN_SetResourcePathA;
    STATIC D_SETRESOURCEPATHWFUNC                           DTWAIN_SetResourcePathW;
    STATIC D_SETROTATIONFUNC                                DTWAIN_SetRotation;
    STATIC D_SETROTATIONSTRINGFUNC                          DTWAIN_SetRotationString;
    STATIC D_SETROTATIONSTRINGAFUNC                         DTWAIN_SetRotationStringA;
    STATIC D_SETROTATIONSTRINGWFUNC                         DTWAIN_SetRotationStringW;
    STATIC D_SETSAVEFILENAMEFUNC                            DTWAIN_SetSaveFileName;
    STATIC D_SETSAVEFILENAMEAFUNC                           DTWAIN_SetSaveFileNameA;
    STATIC D_SETSAVEFILENAMEWFUNC                           DTWAIN_SetSaveFileNameW;
    STATIC D_SETSHADOWFUNC                                  DTWAIN_SetShadow;
    STATIC D_SETSHADOWSTRINGFUNC                            DTWAIN_SetShadowString;
    STATIC D_SETSHADOWSTRINGAFUNC                           DTWAIN_SetShadowStringA;
    STATIC D_SETSHADOWSTRINGWFUNC                           DTWAIN_SetShadowStringW;
    STATIC D_SETSOURCEUNITFUNC                              DTWAIN_SetSourceUnit;
    STATIC D_SETTIFFCOMPRESSTYPEFUNC                        DTWAIN_SetTIFFCompressType;
    STATIC D_SETTIFFINVERTFUNC                              DTWAIN_SetTIFFInvert;
    STATIC D_SETTEMPFILEDIRECTORYFUNC                       DTWAIN_SetTempFileDirectory;
    STATIC D_SETTEMPFILEDIRECTORYAFUNC                      DTWAIN_SetTempFileDirectoryA;
    STATIC D_SETTEMPFILEDIRECTORYEXFUNC                     DTWAIN_SetTempFileDirectoryEx;
    STATIC D_SETTEMPFILEDIRECTORYEXAFUNC                    DTWAIN_SetTempFileDirectoryExA;
    STATIC D_SETTEMPFILEDIRECTORYEXWFUNC                    DTWAIN_SetTempFileDirectoryExW;
    STATIC D_SETTEMPFILEDIRECTORYWFUNC                      DTWAIN_SetTempFileDirectoryW;
    STATIC D_SETTHRESHOLDFUNC                               DTWAIN_SetThreshold;
    STATIC D_SETTHRESHOLDSTRINGFUNC                         DTWAIN_SetThresholdString;
    STATIC D_SETTHRESHOLDSTRINGAFUNC                        DTWAIN_SetThresholdStringA;
    STATIC D_SETTHRESHOLDSTRINGWFUNC                        DTWAIN_SetThresholdStringW;
    STATIC D_SETTWAINDSMFUNC                                DTWAIN_SetTwainDSM;
    STATIC D_SETTWAINDIALOGFONTFUNC                         DTWAIN_SetTwainDialogFont;
    STATIC D_SETTWAINLOGFUNC                                DTWAIN_SetTwainLog;
    STATIC D_SETTWAINLOGAFUNC                               DTWAIN_SetTwainLogA;
    STATIC D_SETTWAINLOGWFUNC                               DTWAIN_SetTwainLogW;
    STATIC D_SETTWAINMODEFUNC                               DTWAIN_SetTwainMode;
    STATIC D_SETTWAINTIMEOUTFUNC                            DTWAIN_SetTwainTimeout;
    STATIC D_SETUPDATEDIBPROCFUNC                           DTWAIN_SetUpdateDibProc;
    STATIC D_SETXRESOLUTIONFUNC                             DTWAIN_SetXResolution;
    STATIC D_SETXRESOLUTIONSTRINGFUNC                       DTWAIN_SetXResolutionString;
    STATIC D_SETXRESOLUTIONSTRINGAFUNC                      DTWAIN_SetXResolutionStringA;
    STATIC D_SETXRESOLUTIONSTRINGWFUNC                      DTWAIN_SetXResolutionStringW;
    STATIC D_SETYRESOLUTIONFUNC                             DTWAIN_SetYResolution;
    STATIC D_SETYRESOLUTIONSTRINGFUNC                       DTWAIN_SetYResolutionString;
    STATIC D_SETYRESOLUTIONSTRINGAFUNC                      DTWAIN_SetYResolutionStringA;
    STATIC D_SETYRESOLUTIONSTRINGWFUNC                      DTWAIN_SetYResolutionStringW;
    STATIC D_SHOWUIONLYFUNC                                 DTWAIN_ShowUIOnly;
    STATIC D_SHUTDOWNOCRENGINEFUNC                          DTWAIN_ShutdownOCREngine;
    STATIC D_SKIPIMAGEINFOERRORFUNC                         DTWAIN_SkipImageInfoError;
    STATIC D_STARTTHREADFUNC                                DTWAIN_StartThread;
    STATIC D_STARTTWAINSESSIONFUNC                          DTWAIN_StartTwainSession;
    STATIC D_STARTTWAINSESSIONAFUNC                         DTWAIN_StartTwainSessionA;
    STATIC D_STARTTWAINSESSIONWFUNC                         DTWAIN_StartTwainSessionW;
    STATIC D_SYSDESTROYFUNC                                 DTWAIN_SysDestroy;
    STATIC D_SYSINITIALIZEFUNC                              DTWAIN_SysInitialize;
    STATIC D_SYSINITIALIZEEXFUNC                            DTWAIN_SysInitializeEx;
    STATIC D_SYSINITIALIZEEX2FUNC                           DTWAIN_SysInitializeEx2;
    STATIC D_SYSINITIALIZEEX2AFUNC                          DTWAIN_SysInitializeEx2A;
    STATIC D_SYSINITIALIZEEX2WFUNC                          DTWAIN_SysInitializeEx2W;
    STATIC D_SYSINITIALIZEEXAFUNC                           DTWAIN_SysInitializeExA;
    STATIC D_SYSINITIALIZEEXWFUNC                           DTWAIN_SysInitializeExW;
    STATIC D_SYSINITIALIZELIBFUNC                           DTWAIN_SysInitializeLib;
    STATIC D_SYSINITIALIZELIBEXFUNC                         DTWAIN_SysInitializeLibEx;
    STATIC D_SYSINITIALIZELIBEX2FUNC                        DTWAIN_SysInitializeLibEx2;
    STATIC D_SYSINITIALIZELIBEX2AFUNC                       DTWAIN_SysInitializeLibEx2A;
    STATIC D_SYSINITIALIZELIBEX2WFUNC                       DTWAIN_SysInitializeLibEx2W;
    STATIC D_SYSINITIALIZELIBEXAFUNC                        DTWAIN_SysInitializeLibExA;
    STATIC D_SYSINITIALIZELIBEXWFUNC                        DTWAIN_SysInitializeLibExW;
    STATIC D_SYSINITIALIZENOBLOCKINGFUNC                    DTWAIN_SysInitializeNoBlocking;
    STATIC D_TESTGETCAPFUNC                                 DTWAIN_TestGetCap;
    STATIC D_UNLOCKMEMORYFUNC                               DTWAIN_UnlockMemory;
    STATIC D_UNLOCKMEMORYEXFUNC                             DTWAIN_UnlockMemoryEx;
    STATIC D_UPDATECURRENTACQUIREDIMAGEFUNC                 DTWAIN_UpdateCurrentAcquiredImage;
    STATIC D_USEMULTIPLETHREADSFUNC                         DTWAIN_UseMultipleThreads;
#ifdef __cplusplus
        static int InitDTWAINInterface(DYNDTWAIN_API*, HMODULE h);
        static int InitDTWAINInterface(HMODULE h);
};

class DYNDTWAIN_API_Scoped
{
    HMODULE m_hModule;
    std::string m_sModuleName;
private:
    void tryDLL_Load()
    {
        m_hModule = ::LoadLibraryA(m_sModuleName.c_str());
        if (m_hModule)
        {
            int ret = DYNDTWAIN_API::InitDTWAINInterface(m_hModule);
            if (!ret)
                throw "DTWAIN Module failed to load";
        }
    }

public:
    DYNDTWAIN_API_Scoped(std::string moduleName = "") : m_hModule(NULL), m_sModuleName(moduleName)
    {
        if (!moduleName.empty())
            tryDLL_Load();
    }

    DYNDTWAIN_API_Scoped(DYNDTWAIN_API_Scoped&);
    DYNDTWAIN_API_Scoped& operator=(DYNDTWAIN_API_Scoped&);

    void LoadDLL(std::string moduleName)
    {
        ::FreeLibrary(m_hModule);
        m_sModuleName = moduleName;
        tryDLL_Load();
    }

    HMODULE GetHandle() const
    {
        return m_hModule;
    }

    void FreeDLL()
    {
        if (m_hModule)
            ::FreeLibrary(m_hModule);
        m_hModule = NULL;
    }

    ~DYNDTWAIN_API_Scoped()
    {
        FreeDLL();
    }
};
#else
} DYNDTWAIN_API;
int InitDTWAINInterface(DYNDTWAIN_API* pApi, HMODULE h);
#endif

#ifdef IGNORE_FUNC_ERRORS
    #define DTWAINAPI_ASSERT(x) (x)
#else
#ifndef _DEBUG
    #define DTWAINAPI_ASSERT(x) { if (!(x)) return 0; }
#else
    #define DTWAINAPI_ASSERT(x) assert(x);
#endif
#endif
#endif

