Highlighted
Absent Member.
Absent Member.
4605 views

error creating ActiveX control

I want to use an ActiveX control from Dynamsoft to scan documents and reading barcodes from documents.

Scanning works just fine. But reading barcodes gives an error creating  ActiveX control. The samples they provide all work so I must be doing something wrong.

Can someone help me with this?

It seems that I cannot attach the file's so I will paste them in this post.

       IDENTIFICATION DIVISION.
       PROGRAM-ID. TxForm.
       ENVIRONMENT DIVISION.
       CONFIGURATION SECTION.
       SPECIAL-NAMES.
           COPY "DYNAMICWEBTWIAN.DEF".
           .
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       77  ERROR-SOURCE             PIC X(30).
       77  ERROR-DESCRIPTION        PIC X(50).
       77  ERROR-HELP-FILE          PIC X(200).
       77  ERROR-HELP-CONTEXT       USAGE UNSIGNED-LONG.
       77  W-Var-boolean  pic 9.
       77  H-DynamicWebTwain  handle of @DynamicWebTwain.
       77  H-Barcode  handle of @Barcode.
       77  H-Addon  handle of @IAddon.
       77  W-Var-VARIANT  usage handle.
       COPY "ACTIVEX.DEF".

       SCREEN SECTION.
       01  MAIN-SCREEN.
           03 PUSH-BUTTON           "Exit"
              EXCEPTION-VALUE       32
              COL                   2.
       PROCEDURE DIVISION.
       DECLARATIVES.
       OBJECT-EXCEPTION             SECTION.
           USE     AFTER            EXCEPTION ON OBJECT.
       OBJECT-EXCEPTION-HANDLER.
           CALL    "C$EXCEPINFO"    USING
                   ERROR-INFO
                   ERROR-SOURCE
                   ERROR-DESCRIPTION
                   ERROR-HELP-FILE
                   ERROR-HELP-CONTEXT.
           DISPLAY MESSAGE          BOX
                   ERROR-DESCRIPTION
                   TITLE            "Object Error!"
           GOBACK
       END DECLARATIVES.
       MAIN SECTION.
       MAIN-001.
           DISPLAY STANDARD         GRAPHICAL WINDOW
                   TITLE            "TWAIN demo"
                   BACKGROUND-LOW
                   SIZE             180
                   LINES            125.
           DISPLAY MAIN-SCREEN.
           DISPLAY @DynamicWebTwain
                      line 2  col 2  lines 90  size 130
                      license-key " "
                      handle in H-DynamicWebTwain.
           modify H-DynamicWebTwain  @IfShowUI = 0.

           modify H-DynamicWebTwain  @AcquireImage ()
                      Returning W-Var-boolean.

      *AFTER THE NEXT SENTENCE THE ERROR OCCURS
           DISPLAY @Addon
                      line 2  col 2  lines 10  size 30
                      license-key " "
                      handle in H-Addon.


           DISPLAY @Barcode
                      line 2  col 2  lines 10  size 30
                      license-key " "
                      handle in H-Barcode
                      .
           ACCEPT  MAIN-SCREEN.
           STOP RUN.     

>>IMP(ACU-CBLFLAGS=-Sa)
      * G:\APPLIC\MILIEU\XGL\WORK\HSOURCE\DYNAMICWEBTWIAN.DEF - OLE object
      * Generated: Tuesday, March 17, 2015
      * Typelib..: C:\Users\B91BR00\AppData\Local\Microsoft\Internet
          
           OBJECT @DYNAMICWEBTWAINCTRLLib
          
      * _IDynamicWebTwainEvents Interface
          
      * _IDynamicWebTwainEvents
           CLASS @_IDynamicWebTwainEvents
               CLSID, AF690A93-31A1-4D61-B488-A117EE8643BF
               NAME, "_IDynamicWebTwainEvents"
      *[Class: @_IDynamicWebTwainEvents] OnPostTransfer
      * method OnPostTransfer
               METHOD, 1, @OnPostTransfer
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnPreTransfer
      * method OnPreTransfer
               METHOD, 2, @OnPreTransfer
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnPreAllTransfers
      * method OnPreAllTransfers
               METHOD, 3, @OnPreAllTransfers
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnPostAllTransfers
      * method OnPostAllTransfers
               METHOD, 4, @OnPostAllTransfers
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnTransferError
      * method OnTransferError
               METHOD, 5, @OnTransferError
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnTransferCancelled
      * method OnTransferCancelled
               METHOD, 6, @OnTransferCancelled
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnMouseClick
      * method OnMouseClick
               METHOD, 7, @OnMouseClick,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnMouseMove
      * method OnMouseMove
               METHOD, 8, @OnMouseMove,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnInternetTransferPercentage
      * method OnInternetTransferPercentage
               METHOD, 9, @OnInternetTransferPercentage,
                   "short" @sPercent, TYPE 2,
                   "boolean*" @pbCancel, TYPE 16395
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnMouseRightClick
      * method OnMouseRightClick
               METHOD, 10, @OnMouseRightClick,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnMouseDoubleClick
      * method OnMouseDoubleClick
               METHOD, 11, @OnMouseDoubleClick,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnTopImageInTheViewChanged
      * method OnTopImageInTheViewChanged
               METHOD, 12, @OnTopImageInTheViewChanged,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnImageAreaSelected
      * method OnImageAreaSelected
               METHOD, 13, @OnImageAreaSelected,
                   "short" @sImageIndex, TYPE 2,
                   "long" @left, TYPE 3,
                   "long" @top, TYPE 3,
                   "long" @right, TYPE 3,
                   "long" @bottom, TYPE 3
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnImageAreaDeselected
      * method OnImageAreaDeselected
               METHOD, 14, @OnImageAreaDeselected,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnInternetTransferPercentageEx
      * method OnInternetTransferPercentageEx
               METHOD, 15, @OnInternetTransferPercentageEx,
                   "short" @sPercent, TYPE 2,
                   "ICancel**" @pCancel, TYPE 16393
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnPostLoad
      * method OnPostLoad
               METHOD, 16, @OnPostLoad,
                   "BSTR" @Path, TYPE 8,
                   "BSTR" @Name, TYPE 8,
                   "long" @Type, TYPE 3
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnGetFilePath
      * method OnGetFilePath
               METHOD, 17, @OnGetFilePath,
                   "boolean" @Save, TYPE 11,
                   "long" @Count, TYPE 3,
                   "long" @Index, TYPE 3,
                   "BSTR" @Path, TYPE 8,
                   "BSTR" @Name, TYPE 8
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnBeforeOperate
      * method OnBeforeOperate
               METHOD, 18, @OnBeforeOperate,
                   "long" @Identifier, TYPE 3,
                   "BSTR" @IdentifierDescription, TYPE 8
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnOperateStatus
      * method OnOperateStatus
               METHOD, 19, @OnOperateStatus,
                   "BSTR" @Message, TYPE 8,
                   "long" @Percent, TYPE 3
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnAfterOperate
      * method OnAfterOperate
               METHOD, 20, @OnAfterOperate,
                   "long" @Identifier, TYPE 3,
                   "BSTR" @IdentifierDescription, TYPE 8,
                   "boolean" @Succeed, TYPE 11,
                   "BSTR" @Message, TYPE 8
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnBitmapChanged
      * method OnBitmapChanged
               METHOD, 21, @OnBitmapChanged
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnSourceUIClose
      * method OnSourceUIClose
               METHOD, 22, @OnSourceUIClose
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnAfterOperateEx
      * method OnAfterOperateEx
               METHOD, 23, @OnAfterOperateEx,
                   "long" @Identifier, TYPE 3,
                   "long" @ErrorCode, TYPE 3,
                   "BSTR" @Error, TYPE 8,
                   "BSTR" @ImageIds, TYPE 8,
                   "long" @ReturnType, TYPE 3,
                   "BSTR" @Return, TYPE 8,
                   "BSTR" @Reserved1, TYPE 8,
                   "BSTR" @Reserved2, TYPE 8,
                   "BSTR" @Reserved3, TYPE 8,
                   "BSTR" @Reserved4, TYPE 8
                       RETURNING "HRESULT", TYPE 25
      *[Class: @_IDynamicWebTwainEvents] OnBitmapChangedEx
      * method OnBitmapChangedEx
               METHOD, 24, @OnBitmapChangedEx,
                   "BSTR" @Indexes, TYPE 8,
                   "long" @Type, TYPE 3,
                   "long" @CurrentIndex, TYPE 3,
                   "long" @HowManyImages, TYPE 3
                       RETURNING "HRESULT", TYPE 25
          
      * ICancel Interface
          
      * ICancel
           CLASS @ICancel
               CLSID, 3D54AB51-96F4-47F6-B8AD-63DE93223A00
               NAME, "ICancel"
      *[Class: @ICancel] Cancelled
      * property Cancelled
               PROPERTY-GET, 1, @Cancelled
                       RETURNING "boolean", TYPE 11
      *[Class: @ICancel] Cancelled
      * property Cancelled
               PROPERTY-PUT, 1, @Cancelled,
                   "boolean (Property_Value)", TYPE 11
          
      * IBarcodeResult Interface
          
      * IBarcodeResult
           CLASS @IBarcodeResult
               CLSID, BE571D61-2AD5-4849-A0AD-FDB2FFAF0E69
               NAME, "IBarcodeResult"
      *[Class: @IBarcodeResult] GetErrorCode
      * method GetErrorCode
               METHOD, 1, @GetErrorCode
                       RETURNING "long", TYPE 3
      *[Class: @IBarcodeResult] GetErrorString
      * method GetErrorString
               METHOD, 2, @GetErrorString
                       RETURNING "BSTR", TYPE 8
      *[Class: @IBarcodeResult] GetCount
      * method GetCount
               METHOD, 3, @GetCount
                       RETURNING "long", TYPE 3
      *[Class: @IBarcodeResult] GetContent
      * method GetContent
               METHOD, 5, @GetContent,
                   "int" @Index, TYPE 22
                       RETURNING "BSTR", TYPE 8
      *[Class: @IBarcodeResult] GetFormat
      * method GetFormat
               METHOD, 6, @GetFormat,
                   "int" @Index, TYPE 22
                       RETURNING "long", TYPE 3
      *[Class: @IBarcodeResult] GetContentType
      * method GetContentType
               METHOD, 7, @GetContentType,
                   "int" @Index, TYPE 22
                       RETURNING "long", TYPE 3
      *[Class: @IBarcodeResult] GetX1
      * method GetX1
               METHOD, 8, @GetX1,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @IBarcodeResult] GetX2
      * method GetX2
               METHOD, 9, @GetX2,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @IBarcodeResult] GetX3
      * method GetX3
               METHOD, 10, @GetX3,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @IBarcodeResult] GetX4
      * method GetX4
               METHOD, 11, @GetX4,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @IBarcodeResult] GetY1
      * method GetY1
               METHOD, 12, @GetY1,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @IBarcodeResult] GetY2
      * method GetY2
               METHOD, 13, @GetY2,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @IBarcodeResult] GetY3
      * method GetY3
               METHOD, 14, @GetY3,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @IBarcodeResult] GetY4
      * method GetY4
               METHOD, 15, @GetY4,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
          
      * IBarcode Interface
          
      * IBarcode
           CLASS @IBarcode
               CLSID, CC48C3D2-8F84-4011-BD6D-A8D2F42384B4
               NAME, "IBarcode"
      *[Class: @IBarcode] Read
      * method Read
               METHOD, 1, @Read,
                   "short" @sImageIndex, TYPE 2,
                   "int" @format, TYPE 22
                       RETURNING "VARIANT", TYPE 12
      *[Class: @IBarcode] ReadAsync
      * method ReadAsync
               METHOD, 2, @ReadAsync,
                   "short" @sImageIndex, TYPE 2,
                   "int" @format, TYPE 22,
                   "VARIANT" @readBarcodeCompletedEventHandler, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @IBarcode] ReadRect
      * method ReadRect
               METHOD, 3, @ReadRect,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "int" @format, TYPE 22
                       RETURNING "VARIANT", TYPE 12
      *[Class: @IBarcode] ReadRectAsync
      * method ReadRectAsync
               METHOD, 4, @ReadRectAsync,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "int" @format, TYPE 22,
                   "VARIANT" @readBarcodeCompletedEventHandler, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @IBarcode] GetLocalVersion
      * method GetLocalVersion
               METHOD, 5, @GetLocalVersion
                       RETURNING "BSTR", TYPE 8
      *[Class: @IBarcode] Download
      * method Download
               METHOD, 6, @Download,
                   "BSTR" @RemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
          
      * IAddon Interface
          
      * IAddon
           CLASS @IAddon
               CLSID, 172523FE-B64E-40EF-A595-4547151EBA9A
               NAME, "IAddon"
      *[Class: @IAddon] Barcode
      * property Barcode
               PROPERTY-GET, 1, @Barcode
                       RETURNING "VARIANT", TYPE 12
          
      * Dynamic Web TWAIN 10.1
          
      *** Primary Interface ***
          
      * DynamicWebTwain
           CLASS @DynamicWebTwain
               CLSID, FFC6F181-A5CF-4EC4-A441-093D7134FBF2
               NAME, "DynamicWebTwain"
               PRIMARY-INTERFACE
               ACTIVE-X-CONTROL
               DEFAULT-INTERFACE, "IDynamicWebTwain"
               DEFAULT-SOURCE, "AF690A93-31A1-4D61-B488-A117EE8643BF"
      *[Class: @DynamicWebTwain] AcquireImage
      * method AcquireImage
               METHOD, 1, @AcquireImage
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Manufacturer
      * property Manufacturer
               PROPERTY-GET, 2, @Manufacturer
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] Manufacturer
      * property Manufacturer
               PROPERTY-PUT, 2, @Manufacturer,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] ProductFamily
      * property ProductFamily
               PROPERTY-GET, 3, @ProductFamily
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] ProductFamily
      * property ProductFamily
               PROPERTY-PUT, 3, @ProductFamily,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] ProductName
      * property ProductName
               PROPERTY-GET, 4, @ProductName
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] ProductName
      * property ProductName
               PROPERTY-PUT, 4, @ProductName,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] VersionInfo
      * property VersionInfo
               PROPERTY-GET, 5, @VersionInfo
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] VersionInfo
      * property VersionInfo
               PROPERTY-PUT, 5, @VersionInfo,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] OpenSourceManager
      * method OpenSourceManager
               METHOD, 6, @OpenSourceManager
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CloseSourceManager
      * method CloseSourceManager
               METHOD, 7, @CloseSourceManager
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] EnableSource
      * method EnableSource
               METHOD, 8, @EnableSource
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] DisableSource
      * method DisableSource
               METHOD, 9, @DisableSource
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CancelAllPendingTransfers
      * method CancelAllPendingTransfers
               METHOD, 10, @CancelAllPendingTransfers
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SelectSource
      * method SelectSource
               METHOD, 11, @SelectSource
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SelectSourceByIndex
      * method SelectSourceByIndex
               METHOD, 13, @SelectSourceByIndex,
                   "short" @Index, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] DefaultSourceName
      * property DefaultSourceName
               PROPERTY-GET, 14, @DefaultSourceName
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] CurrentSourceName
      * property CurrentSourceName
               PROPERTY-GET, 15, @CurrentSourceName
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] SourceCount
      * property SourceCount
               PROPERTY-GET, 16, @SourceCount
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] SourceNameItems
      * property SourceNameItems
               PROPERTY-GET, 17, @SourceNameItems,
                   "short" @Index, TYPE 2
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] OpenSource
      * method OpenSource
               METHOD, 18, @OpenSource
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CloseSource
      * method CloseSource
               METHOD, 19, @CloseSource
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ImageXResolution
      * property ImageXResolution
               PROPERTY-GET, 20, @ImageXResolution
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] ImageYResolution
      * property ImageYResolution
               PROPERTY-GET, 21, @ImageYResolution
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] ImageWidth
      * property ImageWidth
               PROPERTY-GET, 22, @ImageWidth
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] ImageLength
      * property ImageLength
               PROPERTY-GET, 23, @ImageLength
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] ImageBitsPerPixel
      * property ImageBitsPerPixel
               PROPERTY-GET, 26, @ImageBitsPerPixel
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] ImagePixelType
      * property ImagePixelType
               PROPERTY-GET, 28, @ImagePixelType
                       RETURNING "enumTW_PIXEL_TYPE", TYPE 3
      *[Class: @DynamicWebTwain] ImageLayoutFrameLeft
      * property ImageLayoutFrameLeft
               PROPERTY-GET, 30, @ImageLayoutFrameLeft
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] ImageLayoutFrameRight
      * property ImageLayoutFrameRight
               PROPERTY-GET, 31, @ImageLayoutFrameRight
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] ImageLayoutFrameTop
      * property ImageLayoutFrameTop
               PROPERTY-GET, 32, @ImageLayoutFrameTop
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] ImageLayoutFrameBottom
      * property ImageLayoutFrameBottom
               PROPERTY-GET, 33, @ImageLayoutFrameBottom
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] ImageLayoutDocumentNumber
      * property ImageLayoutDocumentNumber
               PROPERTY-GET, 34, @ImageLayoutDocumentNumber
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] ImageLayoutPageNumber
      * property ImageLayoutPageNumber
               PROPERTY-GET, 35, @ImageLayoutPageNumber
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] ImageLayoutFrameNumber
      * property ImageLayoutFrameNumber
               PROPERTY-GET, 36, @ImageLayoutFrameNumber
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] CapIfSupported
      * method CapIfSupported
               METHOD, 37, @CapIfSupported,
                   "enumTW_MESSAGETYPE" @MessageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Capability
      * property Capability
               PROPERTY-GET, 38, @Capability
                       RETURNING "enumTW_CAP", TYPE 3
      *[Class: @DynamicWebTwain] Capability
      * property Capability
               PROPERTY-PUT, 38, @Capability,
                   "enumTW_CAP (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] CapGetCurrent
      * method CapGetCurrent
               METHOD, 39, @CapGetCurrent
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CapGetDefault
      * method CapGetDefault
               METHOD, 40, @CapGetDefault
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CapGet
      * method CapGet
               METHOD, 41, @CapGet
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CapSet
      * method CapSet
               METHOD, 42, @CapSet
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CapReset
      * method CapReset
               METHOD, 43, @CapReset
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CapType
      * property CapType
               PROPERTY-GET, 44, @CapType
                       RETURNING "enumTW_CAPTYPE", TYPE 3
      *[Class: @DynamicWebTwain] CapType
      * property CapType
               PROPERTY-PUT, 44, @CapType,
                   "enumTW_CAPTYPE (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] CapMinValue
      * property CapMinValue
               PROPERTY-GET, 45, @CapMinValue
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] CapMinValue
      * property CapMinValue
               PROPERTY-PUT, 45, @CapMinValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @DynamicWebTwain] CapMaxValue
      * property CapMaxValue
               PROPERTY-GET, 46, @CapMaxValue
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] CapMaxValue
      * property CapMaxValue
               PROPERTY-PUT, 46, @CapMaxValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @DynamicWebTwain] CapStepSize
      * property CapStepSize
               PROPERTY-GET, 47, @CapStepSize
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] CapStepSize
      * property CapStepSize
               PROPERTY-PUT, 47, @CapStepSize,
                   "double (Property_Value)", TYPE 5
      *[Class: @DynamicWebTwain] CapDefaultValue
      * property CapDefaultValue
               PROPERTY-GET, 48, @CapDefaultValue
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] CapCurrentValue
      * property CapCurrentValue
               PROPERTY-GET, 49, @CapCurrentValue
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] CapCurrentValue
      * property CapCurrentValue
               PROPERTY-PUT, 49, @CapCurrentValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @DynamicWebTwain] CapCurrentIndex
      * property CapCurrentIndex
               PROPERTY-GET, 50, @CapCurrentIndex
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] CapCurrentIndex
      * property CapCurrentIndex
               PROPERTY-PUT, 50, @CapCurrentIndex,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] CapDefaultIndex
      * property CapDefaultIndex
               PROPERTY-GET, 51, @CapDefaultIndex
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] CapItems
      * property CapItems
               PROPERTY-GET, 52, @CapItems,
                   "long" @Index, TYPE 3
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] CapItems
      * property CapItems
               PROPERTY-PUT, 52, @CapItems,
                   "long" @Index, TYPE 3,
                   "double (Property_Value)", TYPE 5
      *[Class: @DynamicWebTwain] CapItemsString
      * property CapItemsString
               PROPERTY-GET, 53, @CapItemsString,
                   "long" @Index, TYPE 3
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] CapItemsString
      * property CapItemsString
               PROPERTY-PUT, 53, @CapItemsString,
                   "long" @Index, TYPE 3,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] CapNumItems
      * property CapNumItems
               PROPERTY-GET, 54, @CapNumItems
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] CapNumItems
      * property CapNumItems
               PROPERTY-PUT, 54, @CapNumItems,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] CapValue
      * property CapValue
               PROPERTY-GET, 55, @CapValue
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] CapValue
      * property CapValue
               PROPERTY-PUT, 55, @CapValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @DynamicWebTwain] CapValueString
      * property CapValueString
               PROPERTY-GET, 56, @CapValueString
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] CapValueString
      * property CapValueString
               PROPERTY-PUT, 56, @CapValueString,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] CapGetFrameLeft
      * method CapGetFrameLeft
               METHOD, 57, @CapGetFrameLeft,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] CapGetFrameRight
      * method CapGetFrameRight
               METHOD, 58, @CapGetFrameRight,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] CapGetFrameTop
      * method CapGetFrameTop
               METHOD, 59, @CapGetFrameTop,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] CapGetFrameBottom
      * method CapGetFrameBottom
               METHOD, 60, @CapGetFrameBottom,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] CapSetFrame
      * method CapSetFrame
               METHOD, 61, @CapSetFrame,
                   "short" @Index, TYPE 2,
                   "single" @left, TYPE 4,
                   "single" @top, TYPE 4,
                   "single" @right, TYPE 4,
                   "single" @bottom, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ErrorCode
      * property ErrorCode
               PROPERTY-GET, 62, @ErrorCode
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] ErrorString
      * property ErrorString
               PROPERTY-GET, 63, @ErrorString
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] TransferMode
      * property TransferMode
               PROPERTY-GET, 68, @TransferMode
                       RETURNING "enumTW_TRANSFERMODE", TYPE 3
      *[Class: @DynamicWebTwain] TransferMode
      * property TransferMode
               PROPERTY-PUT, 68, @TransferMode,
                   "enumTW_TRANSFERMODE (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] PendingXfers
      * property PendingXfers
               PROPERTY-GET, 70, @PendingXfers
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] JPEGQuality
      * property JPEGQuality
               PROPERTY-GET, 83, @JPEGQuality
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] JPEGQuality
      * property JPEGQuality
               PROPERTY-PUT, 83, @JPEGQuality,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] SetFileXferInfo
      * method SetFileXferInfo
               METHOD, 86, @SetFileXferInfo,
                   "BSTR" @FileName, TYPE 8,
                   "enumTW_FILEFORMAT" @FileFormat, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPUserName
      * property FTPUserName
               PROPERTY-GET, 73, @FTPUserName
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] FTPUserName
      * property FTPUserName
               PROPERTY-PUT, 73, @FTPUserName,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] FTPPassword
      * property FTPPassword
               PROPERTY-GET, 74, @FTPPassword
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] FTPPassword
      * property FTPPassword
               PROPERTY-PUT, 74, @FTPPassword,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] FTPPort
      * property FTPPort
               PROPERTY-GET, 75, @FTPPort
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] FTPPort
      * property FTPPort
               PROPERTY-PUT, 75, @FTPPort,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] ProxyServer
      * property ProxyServer
               PROPERTY-GET, 76, @ProxyServer
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] ProxyServer
      * property ProxyServer
               PROPERTY-PUT, 76, @ProxyServer,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] HTTPUserName
      * property HTTPUserName
               PROPERTY-GET, 78, @HTTPUserName
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] HTTPUserName
      * property HTTPUserName
               PROPERTY-PUT, 78, @HTTPUserName,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] HTTPPassword
      * property HTTPPassword
               PROPERTY-GET, 79, @HTTPPassword
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] HTTPPassword
      * property HTTPPassword
               PROPERTY-PUT, 79, @HTTPPassword,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] HTTPPort
      * property HTTPPort
               PROPERTY-GET, 80, @HTTPPort
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] HTTPPort
      * property HTTPPort
               PROPERTY-PUT, 80, @HTTPPort,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] BorderStyle
      * property BorderStyle
               PROPERTY-GET, 91, @BorderStyle
                       RETURNING "enumBORDER_STYLE", TYPE 3
      *[Class: @DynamicWebTwain] BorderStyle
      * property BorderStyle
               PROPERTY-PUT, 91, @BorderStyle,
                   "enumBORDER_STYLE (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] IfDisableSourceAfterAcquire
      * property IfDisableSourceAfterAcquire
               PROPERTY-GET, 95, @IfDisableSourceAfterAcquire
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfDisableSourceAfterAcquire
      * property IfDisableSourceAfterAcquire
               PROPERTY-PUT, 95, @IfDisableSourceAfterAcquire,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfDuplexEnabled
      * property IfDuplexEnabled
               PROPERTY-GET, 96, @IfDuplexEnabled
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfDuplexEnabled
      * property IfDuplexEnabled
               PROPERTY-PUT, 96, @IfDuplexEnabled,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfFeederEnabled
      * property IfFeederEnabled
               PROPERTY-GET, 97, @IfFeederEnabled
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfFeederEnabled
      * property IfFeederEnabled
               PROPERTY-PUT, 97, @IfFeederEnabled,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfFeederLoaded
      * property IfFeederLoaded
               PROPERTY-GET, 98, @IfFeederLoaded
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Brightness
      * property Brightness
               PROPERTY-GET, 100, @Brightness
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] Brightness
      * property Brightness
               PROPERTY-PUT, 100, @Brightness,
                   "single (Property_Value)", TYPE 4
      *[Class: @DynamicWebTwain] Contrast
      * property Contrast
               PROPERTY-GET, 103, @Contrast
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] Contrast
      * property Contrast
               PROPERTY-PUT, 103, @Contrast,
                   "single (Property_Value)", TYPE 4
      *[Class: @DynamicWebTwain] DataSourceStatus
      * property DataSourceStatus
               PROPERTY-GET, 105, @DataSourceStatus
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] Duplex
      * property Duplex
               PROPERTY-GET, 106, @Duplex
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] IfPaperDetectable
      * property IfPaperDetectable
               PROPERTY-GET, 107, @IfPaperDetectable
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] BitDepth
      * property BitDepth
               PROPERTY-GET, 108, @BitDepth
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] BitDepth
      * property BitDepth
               PROPERTY-PUT, 108, @BitDepth,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] PixelType
      * property PixelType
               PROPERTY-GET, 109, @PixelType
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] PixelType
      * property PixelType
               PROPERTY-PUT, 109, @PixelType,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] Unit
      * property Unit
               PROPERTY-GET, 110, @Unit
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] Unit
      * property Unit
               PROPERTY-PUT, 110, @Unit,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] PixelFlavor
      * property PixelFlavor
               PROPERTY-GET, 111, @PixelFlavor
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] PixelFlavor
      * property PixelFlavor
               PROPERTY-PUT, 111, @PixelFlavor,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] IfAutoScan
      * property IfAutoScan
               PROPERTY-GET, 112, @IfAutoScan
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAutoScan
      * property IfAutoScan
               PROPERTY-PUT, 112, @IfAutoScan,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfDeviceOnline
      * property IfDeviceOnline
               PROPERTY-GET, 113, @IfDeviceOnline
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfUIControllable
      * property IfUIControllable
               PROPERTY-GET, 114, @IfUIControllable
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] RewindPage
      * method RewindPage
               METHOD, 115, @RewindPage
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FeedPage
      * method FeedPage
               METHOD, 116, @FeedPage
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] PageSize
      * property PageSize
               PROPERTY-GET, 117, @PageSize
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] PageSize
      * property PageSize
               PROPERTY-PUT, 117, @PageSize,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] Resolution
      * property Resolution
               PROPERTY-GET, 118, @Resolution
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] Resolution
      * property Resolution
               PROPERTY-PUT, 118, @Resolution,
                   "single (Property_Value)", TYPE 4
      *[Class: @DynamicWebTwain] IfShowIndicator
      * property IfShowIndicator
               PROPERTY-GET, 119, @IfShowIndicator
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowIndicator
      * property IfShowIndicator
               PROPERTY-PUT, 119, @IfShowIndicator,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfShowUI
      * property IfShowUI
               PROPERTY-GET, 121, @IfShowUI
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowUI
      * property IfShowUI
               PROPERTY-PUT, 121, @IfShowUI,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfModalUI
      * property IfModalUI
               PROPERTY-GET, 122, @IfModalUI
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfModalUI
      * property IfModalUI
               PROPERTY-PUT, 122, @IfModalUI,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfTiffMultiPage
      * property IfTiffMultiPage
               PROPERTY-GET, 124, @IfTiffMultiPage
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfTiffMultiPage
      * property IfTiffMultiPage
               PROPERTY-PUT, 124, @IfTiffMultiPage,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfAutoBright
      * property IfAutoBright
               PROPERTY-GET, 125, @IfAutoBright
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAutoBright
      * property IfAutoBright
               PROPERTY-PUT, 125, @IfAutoBright,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfAutoFeed
      * property IfAutoFeed
               PROPERTY-GET, 126, @IfAutoFeed
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAutoFeed
      * property IfAutoFeed
               PROPERTY-PUT, 126, @IfAutoFeed,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfThrowException
      * property IfThrowException
               PROPERTY-GET, 127, @IfThrowException
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfThrowException
      * property IfThrowException
               PROPERTY-PUT, 127, @IfThrowException,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] XferCount
      * property XferCount
               PROPERTY-GET, 128, @XferCount
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] XferCount
      * property XferCount
               PROPERTY-PUT, 128, @XferCount,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] SaveAllAsMultiPageTIFF
      * method SaveAllAsMultiPageTIFF
               METHOD, 129, @SaveAllAsMultiPageTIFF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SaveAsPNG
      * method SaveAsPNG
               METHOD, 130, @SaveAsPNG,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] RemoveAllImages
      * method RemoveAllImages
               METHOD, 137, @RemoveAllImages
      *[Class: @DynamicWebTwain] RemoveImage
      * method RemoveImage
               METHOD, 138, @RemoveImage,
                   "short" @sImageIndexToBeDeleted, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SaveAsBMP
      * method SaveAsBMP
               METHOD, 131, @SaveAsBMP,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SaveAsJPEG
      * method SaveAsJPEG
               METHOD, 132, @SaveAsJPEG,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SaveAsTIFF
      * method SaveAsTIFF
               METHOD, 133, @SaveAsTIFF,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CopyToClipboard
      * method CopyToClipboard
               METHOD, 140, @CopyToClipboard,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CutToClipboard
      * method CutToClipboard
               METHOD, 141, @CutToClipboard,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] hDIB
      * property hDIB
               PROPERTY-GET, 142, @hDIB,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] Picture
      * property Picture
               PROPERTY-GET, 143, @Picture,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "IPictureDisp*", TYPE 16413
      *[Class: @DynamicWebTwain] MaxImagesInBuffer
      * property MaxImagesInBuffer
               PROPERTY-GET, 134, @MaxImagesInBuffer
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] MaxImagesInBuffer
      * property MaxImagesInBuffer
               PROPERTY-PUT, 134, @MaxImagesInBuffer,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] HowManyImagesInBuffer
      * property HowManyImagesInBuffer
               PROPERTY-GET, 135, @HowManyImagesInBuffer
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] CurrentImageIndexInBuffer
      * property CurrentImageIndexInBuffer
               PROPERTY-GET, 136, @CurrentImageIndexInBuffer
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] CurrentImageIndexInBuffer
      * property CurrentImageIndexInBuffer
               PROPERTY-PUT, 136, @CurrentImageIndexInBuffer,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] TIFFCompressionType
      * property TIFFCompressionType
               PROPERTY-GET, 144, @TIFFCompressionType
                       RETURNING "enumTIFFCompressionType", TYPE 3
      *[Class: @DynamicWebTwain] TIFFCompressionType
      * property TIFFCompressionType
               PROPERTY-PUT, 144, @TIFFCompressionType,
                   "enumTIFFCompressionType (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] GetImageLayout
      * method GetImageLayout
               METHOD, 145, @GetImageLayout,
                   "single*" @pLeft, TYPE 16388,
                   "single*" @pTop, TYPE 16388,
                   "single*" @pRight, TYPE 16388,
                   "single*" @pBottom, TYPE 16388
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SetImageLayout
      * method SetImageLayout
               METHOD, 146, @SetImageLayout,
                   "single" @left, TYPE 4,
                   "single" @top, TYPE 4,
                   "single" @right, TYPE 4,
                   "single" @bottom, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ResetImageLayout
      * method ResetImageLayout
               METHOD, 147, @ResetImageLayout
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetDefaultImageLayout
      * method GetDefaultImageLayout
               METHOD, 148, @GetDefaultImageLayout,
                   "single*" @pLeft, TYPE 16388,
                   "single*" @pTop, TYPE 16388,
                   "single*" @pRight, TYPE 16388,
                   "single*" @pBottom, TYPE 16388
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPPostResponseString
      * property HTTPPostResponseString
               PROPERTY-GET, 305, @HTTPPostResponseString
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] FTPUpload
      * method FTPUpload
               METHOD, 310, @FTPUpload,
                   "BSTR" @FTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPDownload
      * method FTPDownload
               METHOD, 311, @FTPDownload,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPost
      * method HTTPUploadThroughPost
               METHOD, 312, @HTTPUploadThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPut
      * method HTTPUploadThroughPut
               METHOD, 313, @HTTPUploadThroughPut,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPDownload
      * method HTTPDownload
               METHOD, 314, @HTTPDownload,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] LoadImage
      * method LoadImage
               METHOD, 315, @LoadImage,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfFitWindow
      * property IfFitWindow
               PROPERTY-GET, 316, @IfFitWindow
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfFitWindow
      * property IfFitWindow
               PROPERTY-PUT, 316, @IfFitWindow,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] FTPUploadAllAsMultiPageTIFF
      * method FTPUploadAllAsMultiPageTIFF
               METHOD, 317, @FTPUploadAllAsMultiPageTIFF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadAllThroughPostAsMultiPageTIFF
      * method HTTPUploadAllThroughPostAsMultiPageTIFF
               METHOD, 318, @HTTPUploadAllThroughPostAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadAllThroughPutAsMultiPageTIFF
      * method HTTPUploadAllThroughPutAsMultiPageTIFF
               METHOD, 319, @HTTPUploadAllThroughPutAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ImageEditorWindowTitle
      * property ImageEditorWindowTitle
               PROPERTY-GET, 320, @ImageEditorWindowTitle
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] ImageEditorWindowTitle
      * property ImageEditorWindowTitle
               PROPERTY-PUT, 320, @ImageEditorWindowTitle,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] ImageEditorIfReadonly
      * property ImageEditorIfReadonly
               PROPERTY-GET, 321, @ImageEditorIfReadonly
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ImageEditorIfReadonly
      * property ImageEditorIfReadonly
               PROPERTY-PUT, 321, @ImageEditorIfReadonly,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] ImageEditorIfEnableEnumerator
      * property ImageEditorIfEnableEnumerator
               PROPERTY-GET, 322, @ImageEditorIfEnableEnumerator
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ImageEditorIfEnableEnumerator
      * property ImageEditorIfEnableEnumerator
               PROPERTY-PUT, 322, @ImageEditorIfEnableEnumerator,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] ShowImageEditor
      * method ShowImageEditor
               METHOD, 323, @ShowImageEditor
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] RotateLeft
      * method RotateLeft
               METHOD, 324, @RotateLeft,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] RotateRight
      * method RotateRight
               METHOD, 325, @RotateRight,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Flip
      * method Flip
               METHOD, 326, @Flip,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Mirror
      * method Mirror
               METHOD, 327, @Mirror,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Crop
      * method Crop
               METHOD, 328, @Crop,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CropToClipboard
      * method CropToClipboard
               METHOD, 329, @CropToClipboard,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetImageSize
      * method GetImageSize
               METHOD, 330, @GetImageSize,
                   "short" @sImageIndex, TYPE 2,
                   "int" @iWidth, TYPE 22,
                   "int" @iHeight, TYPE 22
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] ChangeImageSize
      * method ChangeImageSize
               METHOD, 331, @ChangeImageSize,
                   "short" @sImageIndex, TYPE 2,
                   "int" @iNewWidth, TYPE 22,
                   "int" @iNewHeight, TYPE 22,
                   "enumInterpolationMethod" @newVal, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] LoadDibFromClipboard
      * method LoadDibFromClipboard
               METHOD, 332, @LoadDibFromClipboard
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfSSL
      * property IfSSL
               PROPERTY-GET, 333, @IfSSL
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfSSL
      * property IfSSL
               PROPERTY-PUT, 333, @IfSSL,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] FTPUploadEx
      * method FTPUploadEx
               METHOD, 334, @FTPUploadEx,
                   "BSTR" @FTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @FTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPDownloadEx
      * method FTPDownloadEx
               METHOD, 335, @FTPDownloadEx,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPostEx
      * method HTTPUploadThroughPostEx
               METHOD, 336, @HTTPUploadThroughPostEx,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPutEx
      * method HTTPUploadThroughPutEx
               METHOD, 337, @HTTPUploadThroughPutEx,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPDownloadEx
      * method HTTPDownloadEx
               METHOD, 338, @HTTPDownloadEx,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] LoadImageEx
      * method LoadImageEx
               METHOD, 339, @LoadImageEx,
                   "BSTR" @FileName, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SetHTTPFormField
      * method SetHTTPFormField
               METHOD, 340, @SetHTTPFormField,
                   "BSTR" @FieldName, TYPE 8,
                   "BSTR" @FieldValue, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ClearAllHTTPFormField
      * method ClearAllHTTPFormField
               METHOD, 341, @ClearAllHTTPFormField
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowCancelDialogWhenImageTransfer
      * property IfShowCancelDialogWhenImageTransfer
               PROPERTY-GET, 342, @IfShowCancelDialogWhenImageTransfer
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowCancelDialogWhenImageTransfer
      * property IfShowCancelDialogWhenImageTransfer
               PROPERTY-PUT, 342, @IfShowCancelDialogWhenImageTransfer,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] SetViewMode
      * method SetViewMode
               METHOD, 343, @SetViewMode,
                   "short" @sHorizontalImageCount, TYPE 2,
                   "short" @sVerticalImageCount, TYPE 2
      *[Class: @DynamicWebTwain] ImageMargin
      * property ImageMargin
               PROPERTY-GET, 344, @ImageMargin
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] ImageMargin
      * property ImageMargin
               PROPERTY-PUT, 344, @ImageMargin,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] MouseShape
      * property MouseShape
               PROPERTY-GET, 345, @MouseShape
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] MouseShape
      * property MouseShape
               PROPERTY-PUT, 345, @MouseShape,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] PDFTitle
      * property PDFTitle
               PROPERTY-GET, 346, @PDFTitle
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFTitle
      * property PDFTitle
               PROPERTY-PUT, 346, @PDFTitle,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] PDFAuthor
      * property PDFAuthor
               PROPERTY-GET, 347, @PDFAuthor
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFAuthor
      * property PDFAuthor
               PROPERTY-PUT, 347, @PDFAuthor,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] PDFSubject
      * property PDFSubject
               PROPERTY-GET, 348, @PDFSubject
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFSubject
      * property PDFSubject
               PROPERTY-PUT, 348, @PDFSubject,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] PDFKeywords
      * property PDFKeywords
               PROPERTY-GET, 349, @PDFKeywords
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFKeywords
      * property PDFKeywords
               PROPERTY-PUT, 349, @PDFKeywords,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] PDFCreationDate
      * property PDFCreationDate
               PROPERTY-GET, 350, @PDFCreationDate
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFCreationDate
      * property PDFCreationDate
               PROPERTY-PUT, 350, @PDFCreationDate,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] PDFModifiedDate
      * property PDFModifiedDate
               PROPERTY-GET, 351, @PDFModifiedDate
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFModifiedDate
      * property PDFModifiedDate
               PROPERTY-PUT, 351, @PDFModifiedDate,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] PDFCreator
      * property PDFCreator
               PROPERTY-GET, 352, @PDFCreator
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFCreator
      * property PDFCreator
               PROPERTY-PUT, 352, @PDFCreator,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] PDFProducer
      * property PDFProducer
               PROPERTY-GET, 353, @PDFProducer
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFProducer
      * property PDFProducer
               PROPERTY-PUT, 353, @PDFProducer,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] SaveAsPDF
      * method SaveAsPDF
               METHOD, 354, @SaveAsPDF,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SaveAllAsPDF
      * method SaveAllAsPDF
               METHOD, 355, @SaveAllAsPDF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPUploadAllAsPDF
      * method FTPUploadAllAsPDF
               METHOD, 356, @FTPUploadAllAsPDF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadAllThroughPostAsPDF
      * method HTTPUploadAllThroughPostAsPDF
               METHOD, 357, @HTTPUploadAllThroughPostAsPDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadAllThroughPutAsPDF
      * method HTTPUploadAllThroughPutAsPDF
               METHOD, 358, @HTTPUploadAllThroughPutAsPDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetViewMode
      * method GetViewMode
               METHOD, 359, @GetViewMode,
                   "short*" @sHorizontalImageCount, TYPE 16386,
                   "short*" @sVerticalImageCount, TYPE 16386
      *[Class: @DynamicWebTwain] MaxUploadImageSize
      * property MaxUploadImageSize
               PROPERTY-GET, 360, @MaxUploadImageSize
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] MaxUploadImageSize
      * property MaxUploadImageSize
               PROPERTY-PUT, 360, @MaxUploadImageSize,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] PDFCompressionType
      * property PDFCompressionType
               PROPERTY-GET, 361, @PDFCompressionType
                       RETURNING "enumPDFCompressionType", TYPE 3
      *[Class: @DynamicWebTwain] PDFCompressionType
      * property PDFCompressionType
               PROPERTY-PUT, 361, @PDFCompressionType,
                   "enumPDFCompressionType (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] IfAppendImage
      * property IfAppendImage
               PROPERTY-GET, 362, @IfAppendImage
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAppendImage
      * property IfAppendImage
               PROPERTY-PUT, 362, @IfAppendImage,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] SwitchImage
      * method SwitchImage
               METHOD, 363, @SwitchImage,
                   "short" @sImageIndex1, TYPE 2,
                   "short" @sImageIndex2, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetImageSizeWithSpecifiedType
      * method GetImageSizeWithSpecifiedType
               METHOD, 364, @GetImageSizeWithSpecifiedType,
                   "short" @sImageIndex, TYPE 2,
                   "short" @sImageType, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] BlankImageThreshold
      * property BlankImageThreshold
               PROPERTY-GET, 365, @BlankImageThreshold
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] BlankImageThreshold
      * property BlankImageThreshold
               PROPERTY-PUT, 365, @BlankImageThreshold,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] BlankImageMaxStdDev
      * property BlankImageMaxStdDev
               PROPERTY-GET, 366, @BlankImageMaxStdDev
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] BlankImageMaxStdDev
      * property BlankImageMaxStdDev
               PROPERTY-PUT, 366, @BlankImageMaxStdDev,
                   "single (Property_Value)", TYPE 4
      *[Class: @DynamicWebTwain] IsBlankImage
      * method IsBlankImage
               METHOD, 367, @IsBlankImage,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Zoom
      * property Zoom
               PROPERTY-GET, 368, @Zoom
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] Zoom
      * property Zoom
               PROPERTY-PUT, 368, @Zoom,
                   "single (Property_Value)", TYPE 4
      *[Class: @DynamicWebTwain] EnableInteractiveZoom
      * property EnableInteractiveZoom
               PROPERTY-GET, 369, @EnableInteractiveZoom
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] EnableInteractiveZoom
      * property EnableInteractiveZoom
               PROPERTY-PUT, 369, @EnableInteractiveZoom,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] HttpFieldNameOfUploadedImage
      * property HttpFieldNameOfUploadedImage
               PROPERTY-GET, 370, @HttpFieldNameOfUploadedImage
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] HttpFieldNameOfUploadedImage
      * property HttpFieldNameOfUploadedImage
               PROPERTY-PUT, 370, @HttpFieldNameOfUploadedImage,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] IfPASVMode
      * property IfPASVMode
               PROPERTY-GET, 371, @IfPASVMode
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfPASVMode
      * property IfPASVMode
               PROPERTY-PUT, 371, @IfPASVMode,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] BarcodeCount
      * property BarcodeCount
               PROPERTY-GET, 372, @BarcodeCount
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] GetBarcodeText
      * method GetBarcodeText
               METHOD, 373, @GetBarcodeText,
                   "int" @barcodeIndex, TYPE 22
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] GetBarcodeInfo
      * method GetBarcodeInfo
               METHOD, 374, @GetBarcodeInfo,
                   "enumBarcodeInfoType" @barcodeInfoType, TYPE 3,
                   "int" @barcodeIndex, TYPE 22
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] VScrollBar
      * property VScrollBar
               PROPERTY-GET, 375, @VScrollBar
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] VScrollBar
      * property VScrollBar
               PROPERTY-PUT, 375, @VScrollBar,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] SelectionImageBorderColor
      * property SelectionImageBorderColor
               PROPERTY-GET, 376, @SelectionImageBorderColor
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] SelectionImageBorderColor
      * property SelectionImageBorderColor
               PROPERTY-PUT, 376, @SelectionImageBorderColor,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] AllowMultiSelect
      * property AllowMultiSelect
               PROPERTY-GET, 377, @AllowMultiSelect
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] AllowMultiSelect
      * property AllowMultiSelect
               PROPERTY-PUT, 377, @AllowMultiSelect,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] Rotate
      * method Rotate
               METHOD, 378, @Rotate,
                   "short" @sImageIndex, TYPE 2,
                   "single" @fAngle, TYPE 4,
                   "boolean" @bKeepSize, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] MoveImage
      * method MoveImage
               METHOD, 379, @MoveImage,
                   "short" @sImageIndex, TYPE 2,
                   "short" @sTargetImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Print
      * method Print
               METHOD, 380, @Print
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] LoadImageFromBytes
      * method LoadImageFromBytes
               METHOD, 381, @LoadImageFromBytes,
                   "long" @lBufferSize, TYPE 3,
                   "VARIANT*" @pbyBuffer, TYPE 16396,
                   "long" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SelectedImagesCount
      * property SelectedImagesCount
               PROPERTY-GET, 382, @SelectedImagesCount
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] SelectedImagesCount
      * property SelectedImagesCount
               PROPERTY-PUT, 382, @SelectedImagesCount,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] SelectedImageIndex
      * property SelectedImageIndex
               PROPERTY-GET, 383, @SelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] SelectedImageIndex
      * property SelectedImageIndex
               PROPERTY-PUT, 383, @SelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] GetSelectedImagesSize
      * method GetSelectedImagesSize
               METHOD, 384, @GetSelectedImagesSize,
                   "long" @ImageType, TYPE 3
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] SaveSelectedImagesToBytes
      * method SaveSelectedImagesToBytes
               METHOD, 385, @SaveSelectedImagesToBytes,
                   "long" @lBufferSize, TYPE 3,
                   "VARIANT*" @pbyBuffer, TYPE 16396
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] SaveSelectedImagesAsMultiPageTIFF
      * method SaveSelectedImagesAsMultiPageTIFF
               METHOD, 386, @SaveSelectedImagesAsMultiPageTIFF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SaveSelectedImagesAsMultiPagePDF
      * method SaveSelectedImagesAsMultiPagePDF
               METHOD, 387, @SaveSelectedImagesAsMultiPagePDF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPUploadAsMultiPageTIFF
      * method FTPUploadAsMultiPageTIFF
               METHOD, 388, @FTPUploadAsMultiPageTIFF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPUploadAsMultiPagePDF
      * method FTPUploadAsMultiPagePDF
               METHOD, 389, @FTPUploadAsMultiPagePDF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPostAsMultiPageTIFF
      * method HTTPUploadThroughPostAsMultiPageTIFF
               METHOD, 390, @HTTPUploadThroughPostAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPostAsMultiPagePDF
      * method HTTPUploadThroughPostAsMultiPagePDF
               METHOD, 391, @HTTPUploadThroughPostAsMultiPagePDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPutAsMultiPageTIFF
      * method HTTPUploadThroughPutAsMultiPageTIFF
               METHOD, 392, @HTTPUploadThroughPutAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPutAsMultiPagePDF
      * method HTTPUploadThroughPutAsMultiPagePDF
               METHOD, 393, @HTTPUploadThroughPutAsMultiPagePDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] BackgroundColor
      * property BackgroundColor
               PROPERTY-GET, 394, @BackgroundColor
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] BackgroundColor
      * property BackgroundColor
               PROPERTY-PUT, 394, @BackgroundColor,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] BackgroundFillColor
      * property BackgroundFillColor
               PROPERTY-GET, 395, @BackgroundFillColor
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] BackgroundFillColor
      * property BackgroundFillColor
               PROPERTY-PUT, 395, @BackgroundFillColor,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] CutFrameToClipboard
      * method CutFrameToClipboard
               METHOD, 396, @CutFrameToClipboard,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] Erase
      * method Erase
               METHOD, 397, @Erase,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] BindSSLCert
      * method BindSSLCert
               METHOD, 398, @BindSSLCert,
                   "BSTR" @CertIssuer, TYPE 8,
                   "BSTR" @CertSerialNumber, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] BindSSLCertEx
      * method BindSSLCertEx
               METHOD, 399, @BindSSLCertEx,
                   "BSTR" @CertSubjectKeyword, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SetCookie
      * method SetCookie
               METHOD, 400, @SetCookie,
                   "BSTR" @Cookie, TYPE 8
      *[Class: @DynamicWebTwain] RemoveAllSelectedImages
      * method RemoveAllSelectedImages
               METHOD, 401, @RemoveAllSelectedImages
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] MouseX
      * property MouseX
               PROPERTY-GET, 402, @MouseX
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] MouseY
      * property MouseY
               PROPERTY-GET, 403, @MouseY
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] OverlayRectangle
      * method OverlayRectangle
               METHOD, 404, @OverlayRectangle,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "int" @color, TYPE 22,
                   "single" @fOpacity, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfUseTwainDSM
      * property IfUseTwainDSM
               PROPERTY-GET, 405, @IfUseTwainDSM
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfUseTwainDSM
      * property IfUseTwainDSM
               PROPERTY-PUT, 405, @IfUseTwainDSM,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfHookMessage
      * property IfHookMessage
               PROPERTY-GET, 406, @IfHookMessage
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfHookMessage
      * property IfHookMessage
               PROPERTY-PUT, 406, @IfHookMessage,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IsBlankImageEx
      * method IsBlankImageEx
               METHOD, 407, @IsBlankImageEx,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "boolean" @bFuzzyMatch, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SaveSelectedImagesToBase64Binary
      * method SaveSelectedImagesToBase64Binary
               METHOD, 408, @SaveSelectedImagesToBase64Binary
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] LoadImageFromBase64Binary
      * method LoadImageFromBase64Binary
               METHOD, 409, @LoadImageFromBase64Binary,
                   "BSTR" @ImageData, TYPE 8,
                   "long" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowPrintUI
      * property IfShowPrintUI
               PROPERTY-GET, 410, @IfShowPrintUI
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowPrintUI
      * property IfShowPrintUI
               PROPERTY-PUT, 410, @IfShowPrintUI,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfShowFileDialog
      * property IfShowFileDialog
               PROPERTY-GET, 411, @IfShowFileDialog
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowFileDialog
      * property IfShowFileDialog
               PROPERTY-PUT, 411, @IfShowFileDialog,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] FitWindowType
      * property FitWindowType
               PROPERTY-GET, 412, @FitWindowType
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] FitWindowType
      * property FitWindowType
               PROPERTY-PUT, 412, @FitWindowType,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] CapGetHelp
      * method CapGetHelp
               METHOD, 413, @CapGetHelp
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CapGetLabel
      * method CapGetLabel
               METHOD, 414, @CapGetLabel
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CapGetLabels
      * method CapGetLabels
               METHOD, 415, @CapGetLabels
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetImageBitDepth
      * method GetImageBitDepth
               METHOD, 416, @GetImageBitDepth,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] GetImageWidth
      * method GetImageWidth
               METHOD, 417, @GetImageWidth,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] GetImageHeight
      * method GetImageHeight
               METHOD, 418, @GetImageHeight,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] IfScanInThread
      * property IfScanInThread
               PROPERTY-GET, 420, @IfScanInThread
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfScanInThread
      * property IfScanInThread
               PROPERTY-PUT, 420, @IfScanInThread,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] LogLevel
      * property LogLevel
               PROPERTY-GET, 421, @LogLevel
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] LogLevel
      * property LogLevel
               PROPERTY-PUT, 421, @LogLevel,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] InternetSendTimeout
      * property InternetSendTimeout
               PROPERTY-GET, 422, @InternetSendTimeout
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] InternetSendTimeout
      * property InternetSendTimeout
               PROPERTY-PUT, 422, @InternetSendTimeout,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] InternetReceiveTimeout
      * property InternetReceiveTimeout
               PROPERTY-GET, 423, @InternetReceiveTimeout
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] InternetReceiveTimeout
      * property InternetReceiveTimeout
               PROPERTY-PUT, 423, @InternetReceiveTimeout,
                   "long (Property_Value)", TYPE 3
      *[Class: @DynamicWebTwain] CapValueType
      * property CapValueType
               PROPERTY-GET, 424, @CapValueType
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] CapValueType
      * property CapValueType
               PROPERTY-PUT, 424, @CapValueType,
                   "short (Property_Value)", TYPE 2
      *[Class: @DynamicWebTwain] SetSelectedImageArea
      * method SetSelectedImageArea
               METHOD, 425, @SetSelectedImageArea,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetHDIB
      * method GetHDIB
               METHOD, 426, @GetHDIB,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] GetSourceNameItems
      * method GetSourceNameItems
               METHOD, 427, @GetSourceNameItems,
                   "short" @Index, TYPE 2
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] GetCapItems
      * method GetCapItems
               METHOD, 428, @GetCapItems,
                   "long" @Index, TYPE 3
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] SetCapItems
      * method SetCapItems
               METHOD, 429, @SetCapItems,
                   "long" @Index, TYPE 3,
                   "double" @newVal, TYPE 5
      *[Class: @DynamicWebTwain] GetCapItemsString
      * method GetCapItemsString
               METHOD, 430, @GetCapItemsString,
                   "long" @Index, TYPE 3
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] SetCapItemsString
      * method SetCapItemsString
               METHOD, 431, @SetCapItemsString,
                   "long" @Index, TYPE 3,
                   "BSTR" @newVal, TYPE 8
      *[Class: @DynamicWebTwain] GetSelectedImageIndex
      * method GetSelectedImageIndex
               METHOD, 432, @GetSelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] SetSelectedImageIndex
      * method SetSelectedImageIndex
               METHOD, 433, @SetSelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2,
                   "short" @newVal, TYPE 2
      *[Class: @DynamicWebTwain] GetDeviceType
      * method GetDeviceType
               METHOD, 434, @GetDeviceType
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] RotateEx
      * method RotateEx
               METHOD, 435, @RotateEx,
                   "short" @sImageIndex, TYPE 2,
                   "single" @fAngle, TYPE 4,
                   "boolean" @bKeepSize, TYPE 11,
                   "enumInterpolationMethod" @newVal, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPUploadDirectly
      * method FTPUploadDirectly
               METHOD, 436, @FTPUploadDirectly,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPostDirectly
      * method HTTPUploadThroughPostDirectly
               METHOD, 437, @HTTPUploadThroughPostDirectly,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadThroughPutDirectly
      * method HTTPUploadThroughPutDirectly
               METHOD, 438, @HTTPUploadThroughPutDirectly,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPDownloadDirectly
      * method HTTPDownloadDirectly
               METHOD, 439, @HTTPDownloadDirectly,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] FTPDownloadDirectly
      * method FTPDownloadDirectly
               METHOD, 440, @FTPDownloadDirectly,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] AddText
      * method AddText
               METHOD, 441, @AddText,
                   "short" @sImageIndex, TYPE 2,
                   "int" @x, TYPE 22,
                   "int" @y, TYPE 22,
                   "BSTR" @Text, TYPE 8,
                   "int" @TextColor, TYPE 22,
                   "int" @BackgroundColor, TYPE 22,
                   "single" @BackgroundRoundRadius, TYPE 4,
                   "single" @BackgroundOpacity, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] CreateTextFont
      * method CreateTextFont
               METHOD, 442, @CreateTextFont,
                   "int" @Height, TYPE 22,
                   "int" @Width, TYPE 22,
                   "int" @Escapement, TYPE 22,
                   "int" @Orientation, TYPE 22,
                   "int" @Weight, TYPE 22,
                   "short" @Italic, TYPE 2,
                   "short" @Underline, TYPE 2,
                   "short" @StrikeOut, TYPE 2,
                   "short" @CharSet, TYPE 2,
                   "short" @OutputPrecision, TYPE 2,
                   "short" @ClipPrecision, TYPE 2,
                   "short" @Quality, TYPE 2,
                   "short" @PitchAndFamily, TYPE 2,
                   "BSTR" @FaceName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] BlankImageCurrentStdDev
      * property BlankImageCurrentStdDev
               PROPERTY-GET, 443, @BlankImageCurrentStdDev
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] IfScanInNewThread
      * property IfScanInNewThread
               PROPERTY-GET, 444, @IfScanInNewThread
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfScanInNewThread
      * property IfScanInNewThread
               PROPERTY-PUT, 444, @IfScanInNewThread,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfAutomaticBorderDetection
      * property IfAutomaticBorderDetection
               PROPERTY-GET, 445, @IfAutomaticBorderDetection
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAutomaticBorderDetection
      * property IfAutomaticBorderDetection
               PROPERTY-PUT, 445, @IfAutomaticBorderDetection,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfAutomaticDeskew
      * property IfAutomaticDeskew
               PROPERTY-GET, 446, @IfAutomaticDeskew
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAutomaticDeskew
      * property IfAutomaticDeskew
               PROPERTY-PUT, 446, @IfAutomaticDeskew,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IfAutoDiscardBlankpages
      * property IfAutoDiscardBlankpages
               PROPERTY-GET, 447, @IfAutoDiscardBlankpages
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAutoDiscardBlankpages
      * property IfAutoDiscardBlankpages
               PROPERTY-PUT, 447, @IfAutoDiscardBlankpages,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] PDFVersion
      * property PDFVersion
               PROPERTY-GET, 448, @PDFVersion
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] PDFVersion
      * property PDFVersion
               PROPERTY-PUT, 448, @PDFVersion,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] ImageEditorIfModal
      * property ImageEditorIfModal
               PROPERTY-GET, 449, @ImageEditorIfModal
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ImageEditorIfModal
      * property ImageEditorIfModal
               PROPERTY-PUT, 449, @ImageEditorIfModal,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] MagType
      * property MagType
               PROPERTY-GET, 450, @MagType
                       RETURNING "short", TYPE 2
      *[Class: @DynamicWebTwain] MagData
      * property MagData
               PROPERTY-GET, 451, @MagData
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] AllowPluginAuthentication
      * property AllowPluginAuthentication
               PROPERTY-GET, 582, @AllowPluginAuthentication
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] AllowPluginAuthentication
      * property AllowPluginAuthentication
               PROPERTY-PUT, 582, @AllowPluginAuthentication,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] SetDPI
      * method SetDPI
               METHOD, 583, @SetDPI,
                   "short" @sImageIndex, TYPE 2,
                   "int" @xResolution, TYPE 22,
                   "int" @yResolution, TYPE 22,
                   "boolean" @bResampleImage, TYPE 11,
                   "enumInterpolationMethod" @newVal, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetImageXResolution
      * method GetImageXResolution
               METHOD, 584, @GetImageXResolution,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] GetImageYResolution
      * method GetImageYResolution
               METHOD, 585, @GetImageYResolution,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @DynamicWebTwain] ShowFileDialog
      * method ShowFileDialog
               METHOD, 586, @ShowFileDialog,
                   "boolean" @SaveDialog, TYPE 11,
                   "BSTR" @Filter, TYPE 8,
                   "long" @FilterIndex, TYPE 3,
                   "BSTR" @DefExtension, TYPE 8,
                   "BSTR" @InitialDir, TYPE 8,
                   "boolean" @AllowMultiSelect, TYPE 11,
                   "boolean" @OverwritePrompt, TYPE 11,
                   "long" @Flags, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowProgressBar
      * property IfShowProgressBar
               PROPERTY-GET, 591, @IfShowProgressBar
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfShowProgressBar
      * property IfShowProgressBar
               PROPERTY-PUT, 591, @IfShowProgressBar,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] AsyncMode
      * property AsyncMode
               PROPERTY-GET, 593, @AsyncMode
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] AsyncMode
      * property AsyncMode
               PROPERTY-PUT, 593, @AsyncMode,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] MaxInternetTransferThreads
      * property MaxInternetTransferThreads
               PROPERTY-GET, 594, @MaxInternetTransferThreads
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] MaxInternetTransferThreads
      * property MaxInternetTransferThreads
               PROPERTY-PUT, 594, @MaxInternetTransferThreads,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] GetSkewAngle
      * method GetSkewAngle
               METHOD, 595, @GetSkewAngle,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] GetSkewAngleEx
      * method GetSkewAngleEx
               METHOD, 596, @GetSkewAngleEx,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "double", TYPE 5
      *[Class: @DynamicWebTwain] FileExists
      * method FileExists
               METHOD, 614, @FileExists,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] BrokerProcessType
      * property BrokerProcessType
               PROPERTY-GET, 615, @BrokerProcessType
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] BrokerProcessType
      * property BrokerProcessType
               PROPERTY-PUT, 615, @BrokerProcessType,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] ProductKey
      * property ProductKey
               PROPERTY-GET, 616, @ProductKey
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] ProductKey
      * property ProductKey
               PROPERTY-PUT, 616, @ProductKey,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] HTTPDownloadThroughPost
      * method HTTPDownloadThroughPost
               METHOD, 617, @HTTPDownloadThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SetCustomDSData
      * method SetCustomDSData
               METHOD, 618, @SetCustomDSData,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SetCustomDSDataEx
      * method SetCustomDSDataEx
               METHOD, 619, @SetCustomDSDataEx,
                   "BSTR" @Value, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetCustomDSData
      * method GetCustomDSData
               METHOD, 620, @GetCustomDSData,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetCustomDSDataEx
      * method GetCustomDSDataEx
               METHOD, 621, @GetCustomDSDataEx
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] SelectionRectAspectRatio
      * property SelectionRectAspectRatio
               PROPERTY-GET, 622, @SelectionRectAspectRatio
                       RETURNING "single", TYPE 4
      *[Class: @DynamicWebTwain] SelectionRectAspectRatio
      * property SelectionRectAspectRatio
               PROPERTY-PUT, 622, @SelectionRectAspectRatio,
                   "single (Property_Value)", TYPE 4
      *[Class: @DynamicWebTwain] SetDefaultSource
      * method SetDefaultSource
               METHOD, 623, @SetDefaultSource,
                   "short" @Index, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfOpenImageWithGDIPlus
      * property IfOpenImageWithGDIPlus
               PROPERTY-GET, 625, @IfOpenImageWithGDIPlus
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfOpenImageWithGDIPlus
      * property IfOpenImageWithGDIPlus
               PROPERTY-PUT, 625, @IfOpenImageWithGDIPlus,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] IsBlankImageExpress
      * method IsBlankImageExpress
               METHOD, 626, @IsBlankImageExpress,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ImageCaptureDriverType
      * property ImageCaptureDriverType
               PROPERTY-GET, 627, @ImageCaptureDriverType
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] ImageCaptureDriverType
      * property ImageCaptureDriverType
               PROPERTY-PUT, 627, @ImageCaptureDriverType,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] AutoCropMethod
      * property AutoCropMethod
               PROPERTY-GET, 628, @AutoCropMethod
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] AutoCropMethod
      * property AutoCropMethod
               PROPERTY-PUT, 628, @AutoCropMethod,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] ChangeBitDepth
      * method ChangeBitDepth
               METHOD, 629, @ChangeBitDepth,
                   "short" @sIndex, TYPE 2,
                   "short" @sBitDepth, TYPE 2,
                   "boolean" @bHighQuality, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ConvertToGrayScale
      * method ConvertToGrayScale
               METHOD, 630, @ConvertToGrayScale,
                   "short" @sIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ClearTIFFCustomTag
      * method ClearTIFFCustomTag
               METHOD, 633, @ClearTIFFCustomTag
      *[Class: @DynamicWebTwain] SetTIFFCustomTag
      * method SetTIFFCustomTag
               METHOD, 634, @SetTIFFCustomTag,
                   "int" @Tag, TYPE 22,
                   "BSTR" @Content, TYPE 8,
                   "boolean" @Base64Str, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] ShowImageEditorEx
      * method ShowImageEditorEx
               METHOD, 635, @ShowImageEditorEx,
                   "int" @x, TYPE 22,
                   "int" @y, TYPE 22,
                   "int" @cx, TYPE 22,
                   "int" @cy, TYPE 22,
                   "int" @nCmdShow, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPUploadStreamThroughPost
      * method HTTPUploadStreamThroughPost
               METHOD, 636, @HTTPUploadStreamThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "BSTR" @StreamContent, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] HTTPDownloadStreamThroughPost
      * method HTTPDownloadStreamThroughPost
               METHOD, 637, @HTTPDownloadStreamThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] RegisterEvent
      * method RegisterEvent
               METHOD, 638, @RegisterEvent,
                   "BSTR" @Name, TYPE 8,
                   "VARIANT" @evt, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] UnregisterEvent
      * method UnregisterEvent
               METHOD, 639, @UnregisterEvent,
                   "BSTR" @Name, TYPE 8,
                   "VARIANT" @evt, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] SetImageWidth
      * method SetImageWidth
               METHOD, 640, @SetImageWidth,
                   "short" @sIndex, TYPE 2,
                   "int" @iNewWidth, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] GetFileHash
      * method GetFileHash
               METHOD, 642, @GetFileHash,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] HttpContentTypeFieldValue
      * property HttpContentTypeFieldValue
               PROPERTY-GET, 646, @HttpContentTypeFieldValue
                       RETURNING "BSTR", TYPE 8
      *[Class: @DynamicWebTwain] HttpContentTypeFieldValue
      * property HttpContentTypeFieldValue
               PROPERTY-PUT, 646, @HttpContentTypeFieldValue,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @DynamicWebTwain] IfAllowLocalCache
      * property IfAllowLocalCache
               PROPERTY-GET, 647, @IfAllowLocalCache
                       RETURNING "boolean", TYPE 11
      *[Class: @DynamicWebTwain] IfAllowLocalCache
      * property IfAllowLocalCache
               PROPERTY-PUT, 647, @IfAllowLocalCache,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @DynamicWebTwain] Addon
      * property Addon
               PROPERTY-GET, 649, @Addon
                       RETURNING "VARIANT", TYPE 12
      *[Class: @DynamicWebTwain] BufferMemoryLimit
      * property BufferMemoryLimit
               PROPERTY-GET, 650, @BufferMemoryLimit
                       RETURNING "int", TYPE 22
      *[Class: @DynamicWebTwain] BufferMemoryLimit
      * property BufferMemoryLimit
               PROPERTY-PUT, 650, @BufferMemoryLimit,
                   "int (Property_Value)", TYPE 22
      *[Class: @DynamicWebTwain] OnPostTransfer
      * method OnPostTransfer
               EVENT, 1, @DynamicWebTwainOnPostTransfer
      *            No Parameters
      *[Class: @DynamicWebTwain] OnPreTransfer
      * method OnPreTransfer
               EVENT, 2, @DynamicWebTwainOnPreTransfer
      *            No Parameters
      *[Class: @DynamicWebTwain] OnPreAllTransfers
      * method OnPreAllTransfers
               EVENT, 3, @DynamicWebTwainOnPreAllTransfers
      *            No Parameters
      *[Class: @DynamicWebTwain] OnPostAllTransfers
      * method OnPostAllTransfers
               EVENT, 4, @DynamicWebTwainOnPostAllTransfers
      *            No Parameters
      *[Class: @DynamicWebTwain] OnTransferError
      * method OnTransferError
               EVENT, 5, @DynamicWebTwainOnTransferError
      *            No Parameters
      *[Class: @DynamicWebTwain] OnTransferCancelled
      * method OnTransferCancelled
               EVENT, 6, @DynamicWebTwainOnTransferCancelled
      *            No Parameters
      *[Class: @DynamicWebTwain] OnMouseClick
      * method OnMouseClick
               EVENT, 7, @DynamicWebTwainOnMouseClick
      *            1 Parameter
      *                "short sImageIndex"
      *[Class: @DynamicWebTwain] OnMouseMove
      * method OnMouseMove
               EVENT, 8, @DynamicWebTwainOnMouseMove
      *            1 Parameter
      *                "short sImageIndex"
      *[Class: @DynamicWebTwain] OnInternetTransferPercentage
      * method OnInternetTransferPercentage
               EVENT, 9, @DynamicWebTwainOnInternetTransferPercentage
      *            2 Parameters
      *                "short sPercent"
      *                "boolean* pbCancel"
      *[Class: @DynamicWebTwain] OnMouseRightClick
      * method OnMouseRightClick
               EVENT, 10, @DynamicWebTwainOnMouseRightClick
      *            1 Parameter
      *                "short sImageIndex"
      *[Class: @DynamicWebTwain] OnMouseDoubleClick
      * method OnMouseDoubleClick
               EVENT, 11, @DynamicWebTwainOnMouseDoubleClick
      *            1 Parameter
      *                "short sImageIndex"
      *[Class: @DynamicWebTwain] OnTopImageInTheViewChanged
      * method OnTopImageInTheViewChanged
               EVENT, 12, @DynamicWebTwainOnTopImageInTheViewChanged
      *            1 Parameter
      *                "short sImageIndex"
      *[Class: @DynamicWebTwain] OnImageAreaSelected
      * method OnImageAreaSelected
               EVENT, 13, @DynamicWebTwainOnImageAreaSelected
      *            5 Parameters
      *                "short sImageIndex"
      *                "long left"
      *                "long top"
      *                "long right"
      *                "long bottom"
      *[Class: @DynamicWebTwain] OnImageAreaDeselected
      * method OnImageAreaDeselected
               EVENT, 14, @DynamicWebTwainOnImageAreaDeselected
      *            1 Parameter
      *                "short sImageIndex"
      *[Class: @DynamicWebTwain] OnInternetTransferPercentageEx
      * method OnInternetTransferPercentageEx
               EVENT, 15, @DynamicWebTwainOnInternetTransferPercentageEx
      *            2 Parameters
      *                "short sPercent"
      *                "ICancel** pCancel"
      *[Class: @DynamicWebTwain] OnPostLoad
      * method OnPostLoad
               EVENT, 16, @DynamicWebTwainOnPostLoad
      *            3 Parameters
      *                "BSTR Path"
      *                "BSTR Name"
      *                "long Type"
      *[Class: @DynamicWebTwain] OnGetFilePath
      * method OnGetFilePath
               EVENT, 17, @DynamicWebTwainOnGetFilePath
      *            5 Parameters
      *                "boolean Save"
      *                "long Count"
      *                "long Index"
      *                "BSTR Path"
      *                "BSTR Name"
      *[Class: @DynamicWebTwain] OnBeforeOperate
      * method OnBeforeOperate
               EVENT, 18, @DynamicWebTwainOnBeforeOperate
      *            2 Parameters
      *                "long Identifier"
      *                "BSTR IdentifierDescription"
      *[Class: @DynamicWebTwain] OnOperateStatus
      * method OnOperateStatus
               EVENT, 19, @DynamicWebTwainOnOperateStatus
      *            2 Parameters
      *                "BSTR Message"
      *                "long Percent"
      *[Class: @DynamicWebTwain] OnAfterOperate
      * method OnAfterOperate
               EVENT, 20, @DynamicWebTwainOnAfterOperate
      *            4 Parameters
      *                "long Identifier"
      *                "BSTR IdentifierDescription"
      *                "boolean Succeed"
      *                "BSTR Message"
      *[Class: @DynamicWebTwain] OnBitmapChanged
      * method OnBitmapChanged
               EVENT, 21, @DynamicWebTwainOnBitmapChanged
      *            No Parameters
      *[Class: @DynamicWebTwain] OnSourceUIClose
      * method OnSourceUIClose
               EVENT, 22, @DynamicWebTwainOnSourceUIClose
      *            No Parameters
      *[Class: @DynamicWebTwain] OnAfterOperateEx
      * method OnAfterOperateEx
               EVENT, 23, @DynamicWebTwainOnAfterOperateEx
      *            10 Parameters
      *                "long Identifier"
      *                "long ErrorCode"
      *                "BSTR Error"
      *                "BSTR ImageIds"
      *                "long ReturnType"
      *                "BSTR Return"
      *                "BSTR Reserved1"
      *                "BSTR Reserved2"
      *                "BSTR Reserved3"
      *                "BSTR Reserved4"
      *[Class: @DynamicWebTwain] OnBitmapChangedEx
      * method OnBitmapChangedEx
               EVENT, 24, @DynamicWebTwainOnBitmapChangedEx
      *            4 Parameters
      *                "BSTR Indexes"
      *                "long Type"
      *                "long CurrentIndex"
      *                "long HowManyImages"
          
      * IDynamicWebTwain Interface
          
      * IDynamicWebTwain
           CLASS @IDynamicWebTwain
               CLSID, 5F1129E4-94C3-4FFC-B802-D3CF7C6F38F4
               NAME, "IDynamicWebTwain"
      *[Class: @IDynamicWebTwain] AcquireImage
      * method AcquireImage
               METHOD, 1, @AcquireImage
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Manufacturer
      * property Manufacturer
               PROPERTY-GET, 2, @Manufacturer
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] Manufacturer
      * property Manufacturer
               PROPERTY-PUT, 2, @Manufacturer,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] ProductFamily
      * property ProductFamily
               PROPERTY-GET, 3, @ProductFamily
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] ProductFamily
      * property ProductFamily
               PROPERTY-PUT, 3, @ProductFamily,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] ProductName
      * property ProductName
               PROPERTY-GET, 4, @ProductName
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] ProductName
      * property ProductName
               PROPERTY-PUT, 4, @ProductName,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] VersionInfo
      * property VersionInfo
               PROPERTY-GET, 5, @VersionInfo
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] VersionInfo
      * property VersionInfo
               PROPERTY-PUT, 5, @VersionInfo,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] OpenSourceManager
      * method OpenSourceManager
               METHOD, 6, @OpenSourceManager
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CloseSourceManager
      * method CloseSourceManager
               METHOD, 7, @CloseSourceManager
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] EnableSource
      * method EnableSource
               METHOD, 8, @EnableSource
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] DisableSource
      * method DisableSource
               METHOD, 9, @DisableSource
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CancelAllPendingTransfers
      * method CancelAllPendingTransfers
               METHOD, 10, @CancelAllPendingTransfers
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SelectSource
      * method SelectSource
               METHOD, 11, @SelectSource
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SelectSourceByIndex
      * method SelectSourceByIndex
               METHOD, 13, @SelectSourceByIndex,
                   "short" @Index, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] DefaultSourceName
      * property DefaultSourceName
               PROPERTY-GET, 14, @DefaultSourceName
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] CurrentSourceName
      * property CurrentSourceName
               PROPERTY-GET, 15, @CurrentSourceName
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] SourceCount
      * property SourceCount
               PROPERTY-GET, 16, @SourceCount
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] SourceNameItems
      * property SourceNameItems
               PROPERTY-GET, 17, @SourceNameItems,
                   "short" @Index, TYPE 2
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] OpenSource
      * method OpenSource
               METHOD, 18, @OpenSource
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CloseSource
      * method CloseSource
               METHOD, 19, @CloseSource
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ImageXResolution
      * property ImageXResolution
               PROPERTY-GET, 20, @ImageXResolution
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] ImageYResolution
      * property ImageYResolution
               PROPERTY-GET, 21, @ImageYResolution
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] ImageWidth
      * property ImageWidth
               PROPERTY-GET, 22, @ImageWidth
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] ImageLength
      * property ImageLength
               PROPERTY-GET, 23, @ImageLength
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] ImageBitsPerPixel
      * property ImageBitsPerPixel
               PROPERTY-GET, 26, @ImageBitsPerPixel
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] ImagePixelType
      * property ImagePixelType
               PROPERTY-GET, 28, @ImagePixelType
                       RETURNING "enumTW_PIXEL_TYPE", TYPE 3
      *[Class: @IDynamicWebTwain] ImageLayoutFrameLeft
      * property ImageLayoutFrameLeft
               PROPERTY-GET, 30, @ImageLayoutFrameLeft
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] ImageLayoutFrameRight
      * property ImageLayoutFrameRight
               PROPERTY-GET, 31, @ImageLayoutFrameRight
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] ImageLayoutFrameTop
      * property ImageLayoutFrameTop
               PROPERTY-GET, 32, @ImageLayoutFrameTop
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] ImageLayoutFrameBottom
      * property ImageLayoutFrameBottom
               PROPERTY-GET, 33, @ImageLayoutFrameBottom
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] ImageLayoutDocumentNumber
      * property ImageLayoutDocumentNumber
               PROPERTY-GET, 34, @ImageLayoutDocumentNumber
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] ImageLayoutPageNumber
      * property ImageLayoutPageNumber
               PROPERTY-GET, 35, @ImageLayoutPageNumber
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] ImageLayoutFrameNumber
      * property ImageLayoutFrameNumber
               PROPERTY-GET, 36, @ImageLayoutFrameNumber
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] CapIfSupported
      * method CapIfSupported
               METHOD, 37, @CapIfSupported,
                   "enumTW_MESSAGETYPE" @MessageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Capability
      * property Capability
               PROPERTY-GET, 38, @Capability
                       RETURNING "enumTW_CAP", TYPE 3
      *[Class: @IDynamicWebTwain] Capability
      * property Capability
               PROPERTY-PUT, 38, @Capability,
                   "enumTW_CAP (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] CapGetCurrent
      * method CapGetCurrent
               METHOD, 39, @CapGetCurrent
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CapGetDefault
      * method CapGetDefault
               METHOD, 40, @CapGetDefault
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CapGet
      * method CapGet
               METHOD, 41, @CapGet
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CapSet
      * method CapSet
               METHOD, 42, @CapSet
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CapReset
      * method CapReset
               METHOD, 43, @CapReset
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CapType
      * property CapType
               PROPERTY-GET, 44, @CapType
                       RETURNING "enumTW_CAPTYPE", TYPE 3
      *[Class: @IDynamicWebTwain] CapType
      * property CapType
               PROPERTY-PUT, 44, @CapType,
                   "enumTW_CAPTYPE (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] CapMinValue
      * property CapMinValue
               PROPERTY-GET, 45, @CapMinValue
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] CapMinValue
      * property CapMinValue
               PROPERTY-PUT, 45, @CapMinValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @IDynamicWebTwain] CapMaxValue
      * property CapMaxValue
               PROPERTY-GET, 46, @CapMaxValue
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] CapMaxValue
      * property CapMaxValue
               PROPERTY-PUT, 46, @CapMaxValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @IDynamicWebTwain] CapStepSize
      * property CapStepSize
               PROPERTY-GET, 47, @CapStepSize
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] CapStepSize
      * property CapStepSize
               PROPERTY-PUT, 47, @CapStepSize,
                   "double (Property_Value)", TYPE 5
      *[Class: @IDynamicWebTwain] CapDefaultValue
      * property CapDefaultValue
               PROPERTY-GET, 48, @CapDefaultValue
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] CapCurrentValue
      * property CapCurrentValue
               PROPERTY-GET, 49, @CapCurrentValue
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] CapCurrentValue
      * property CapCurrentValue
               PROPERTY-PUT, 49, @CapCurrentValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @IDynamicWebTwain] CapCurrentIndex
      * property CapCurrentIndex
               PROPERTY-GET, 50, @CapCurrentIndex
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] CapCurrentIndex
      * property CapCurrentIndex
               PROPERTY-PUT, 50, @CapCurrentIndex,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] CapDefaultIndex
      * property CapDefaultIndex
               PROPERTY-GET, 51, @CapDefaultIndex
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] CapItems
      * property CapItems
               PROPERTY-GET, 52, @CapItems,
                   "long" @Index, TYPE 3
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] CapItems
      * property CapItems
               PROPERTY-PUT, 52, @CapItems,
                   "long" @Index, TYPE 3,
                   "double (Property_Value)", TYPE 5
      *[Class: @IDynamicWebTwain] CapItemsString
      * property CapItemsString
               PROPERTY-GET, 53, @CapItemsString,
                   "long" @Index, TYPE 3
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] CapItemsString
      * property CapItemsString
               PROPERTY-PUT, 53, @CapItemsString,
                   "long" @Index, TYPE 3,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] CapNumItems
      * property CapNumItems
               PROPERTY-GET, 54, @CapNumItems
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] CapNumItems
      * property CapNumItems
               PROPERTY-PUT, 54, @CapNumItems,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] CapValue
      * property CapValue
               PROPERTY-GET, 55, @CapValue
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] CapValue
      * property CapValue
               PROPERTY-PUT, 55, @CapValue,
                   "double (Property_Value)", TYPE 5
      *[Class: @IDynamicWebTwain] CapValueString
      * property CapValueString
               PROPERTY-GET, 56, @CapValueString
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] CapValueString
      * property CapValueString
               PROPERTY-PUT, 56, @CapValueString,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] CapGetFrameLeft
      * method CapGetFrameLeft
               METHOD, 57, @CapGetFrameLeft,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] CapGetFrameRight
      * method CapGetFrameRight
               METHOD, 58, @CapGetFrameRight,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] CapGetFrameTop
      * method CapGetFrameTop
               METHOD, 59, @CapGetFrameTop,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] CapGetFrameBottom
      * method CapGetFrameBottom
               METHOD, 60, @CapGetFrameBottom,
                   "short" @Index, TYPE 2
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] CapSetFrame
      * method CapSetFrame
               METHOD, 61, @CapSetFrame,
                   "short" @Index, TYPE 2,
                   "single" @left, TYPE 4,
                   "single" @top, TYPE 4,
                   "single" @right, TYPE 4,
                   "single" @bottom, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ErrorCode
      * property ErrorCode
               PROPERTY-GET, 62, @ErrorCode
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] ErrorString
      * property ErrorString
               PROPERTY-GET, 63, @ErrorString
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] TransferMode
      * property TransferMode
               PROPERTY-GET, 68, @TransferMode
                       RETURNING "enumTW_TRANSFERMODE", TYPE 3
      *[Class: @IDynamicWebTwain] TransferMode
      * property TransferMode
               PROPERTY-PUT, 68, @TransferMode,
                   "enumTW_TRANSFERMODE (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] PendingXfers
      * property PendingXfers
               PROPERTY-GET, 70, @PendingXfers
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] JPEGQuality
      * property JPEGQuality
               PROPERTY-GET, 83, @JPEGQuality
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] JPEGQuality
      * property JPEGQuality
               PROPERTY-PUT, 83, @JPEGQuality,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] SetFileXferInfo
      * method SetFileXferInfo
               METHOD, 86, @SetFileXferInfo,
                   "BSTR" @FileName, TYPE 8,
                   "enumTW_FILEFORMAT" @FileFormat, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPUserName
      * property FTPUserName
               PROPERTY-GET, 73, @FTPUserName
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] FTPUserName
      * property FTPUserName
               PROPERTY-PUT, 73, @FTPUserName,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] FTPPassword
      * property FTPPassword
               PROPERTY-GET, 74, @FTPPassword
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] FTPPassword
      * property FTPPassword
               PROPERTY-PUT, 74, @FTPPassword,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] FTPPort
      * property FTPPort
               PROPERTY-GET, 75, @FTPPort
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] FTPPort
      * property FTPPort
               PROPERTY-PUT, 75, @FTPPort,
                   "int (Property_Value)", TYPE 22
      *[Class: @IDynamicWebTwain] ProxyServer
      * property ProxyServer
               PROPERTY-GET, 76, @ProxyServer
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] ProxyServer
      * property ProxyServer
               PROPERTY-PUT, 76, @ProxyServer,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] HTTPUserName
      * property HTTPUserName
               PROPERTY-GET, 78, @HTTPUserName
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] HTTPUserName
      * property HTTPUserName
               PROPERTY-PUT, 78, @HTTPUserName,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] HTTPPassword
      * property HTTPPassword
               PROPERTY-GET, 79, @HTTPPassword
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] HTTPPassword
      * property HTTPPassword
               PROPERTY-PUT, 79, @HTTPPassword,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] HTTPPort
      * property HTTPPort
               PROPERTY-GET, 80, @HTTPPort
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] HTTPPort
      * property HTTPPort
               PROPERTY-PUT, 80, @HTTPPort,
                   "int (Property_Value)", TYPE 22
      *[Class: @IDynamicWebTwain] BorderStyle
      * property BorderStyle
               PROPERTY-GET, 91, @BorderStyle
                       RETURNING "enumBORDER_STYLE", TYPE 3
      *[Class: @IDynamicWebTwain] BorderStyle
      * property BorderStyle
               PROPERTY-PUT, 91, @BorderStyle,
                   "enumBORDER_STYLE (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] IfDisableSourceAfterAcquire
      * property IfDisableSourceAfterAcquire
               PROPERTY-GET, 95, @IfDisableSourceAfterAcquire
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfDisableSourceAfterAcquire
      * property IfDisableSourceAfterAcquire
               PROPERTY-PUT, 95, @IfDisableSourceAfterAcquire,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfDuplexEnabled
      * property IfDuplexEnabled
               PROPERTY-GET, 96, @IfDuplexEnabled
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfDuplexEnabled
      * property IfDuplexEnabled
               PROPERTY-PUT, 96, @IfDuplexEnabled,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfFeederEnabled
      * property IfFeederEnabled
               PROPERTY-GET, 97, @IfFeederEnabled
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfFeederEnabled
      * property IfFeederEnabled
               PROPERTY-PUT, 97, @IfFeederEnabled,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfFeederLoaded
      * property IfFeederLoaded
               PROPERTY-GET, 98, @IfFeederLoaded
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Brightness
      * property Brightness
               PROPERTY-GET, 100, @Brightness
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] Brightness
      * property Brightness
               PROPERTY-PUT, 100, @Brightness,
                   "single (Property_Value)", TYPE 4
      *[Class: @IDynamicWebTwain] Contrast
      * property Contrast
               PROPERTY-GET, 103, @Contrast
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] Contrast
      * property Contrast
               PROPERTY-PUT, 103, @Contrast,
                   "single (Property_Value)", TYPE 4
      *[Class: @IDynamicWebTwain] DataSourceStatus
      * property DataSourceStatus
               PROPERTY-GET, 105, @DataSourceStatus
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] Duplex
      * property Duplex
               PROPERTY-GET, 106, @Duplex
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] IfPaperDetectable
      * property IfPaperDetectable
               PROPERTY-GET, 107, @IfPaperDetectable
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] BitDepth
      * property BitDepth
               PROPERTY-GET, 108, @BitDepth
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] BitDepth
      * property BitDepth
               PROPERTY-PUT, 108, @BitDepth,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] PixelType
      * property PixelType
               PROPERTY-GET, 109, @PixelType
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] PixelType
      * property PixelType
               PROPERTY-PUT, 109, @PixelType,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] Unit
      * property Unit
               PROPERTY-GET, 110, @Unit
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] Unit
      * property Unit
               PROPERTY-PUT, 110, @Unit,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] PixelFlavor
      * property PixelFlavor
               PROPERTY-GET, 111, @PixelFlavor
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] PixelFlavor
      * property PixelFlavor
               PROPERTY-PUT, 111, @PixelFlavor,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] IfAutoScan
      * property IfAutoScan
               PROPERTY-GET, 112, @IfAutoScan
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutoScan
      * property IfAutoScan
               PROPERTY-PUT, 112, @IfAutoScan,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfDeviceOnline
      * property IfDeviceOnline
               PROPERTY-GET, 113, @IfDeviceOnline
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfUIControllable
      * property IfUIControllable
               PROPERTY-GET, 114, @IfUIControllable
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] RewindPage
      * method RewindPage
               METHOD, 115, @RewindPage
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FeedPage
      * method FeedPage
               METHOD, 116, @FeedPage
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] PageSize
      * property PageSize
               PROPERTY-GET, 117, @PageSize
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] PageSize
      * property PageSize
               PROPERTY-PUT, 117, @PageSize,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] Resolution
      * property Resolution
               PROPERTY-GET, 118, @Resolution
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] Resolution
      * property Resolution
               PROPERTY-PUT, 118, @Resolution,
                   "single (Property_Value)", TYPE 4
      *[Class: @IDynamicWebTwain] IfShowIndicator
      * property IfShowIndicator
               PROPERTY-GET, 119, @IfShowIndicator
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowIndicator
      * property IfShowIndicator
               PROPERTY-PUT, 119, @IfShowIndicator,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowUI
      * property IfShowUI
               PROPERTY-GET, 121, @IfShowUI
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowUI
      * property IfShowUI
               PROPERTY-PUT, 121, @IfShowUI,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfModalUI
      * property IfModalUI
               PROPERTY-GET, 122, @IfModalUI
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfModalUI
      * property IfModalUI
               PROPERTY-PUT, 122, @IfModalUI,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfTiffMultiPage
      * property IfTiffMultiPage
               PROPERTY-GET, 124, @IfTiffMultiPage
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfTiffMultiPage
      * property IfTiffMultiPage
               PROPERTY-PUT, 124, @IfTiffMultiPage,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutoBright
      * property IfAutoBright
               PROPERTY-GET, 125, @IfAutoBright
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutoBright
      * property IfAutoBright
               PROPERTY-PUT, 125, @IfAutoBright,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutoFeed
      * property IfAutoFeed
               PROPERTY-GET, 126, @IfAutoFeed
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutoFeed
      * property IfAutoFeed
               PROPERTY-PUT, 126, @IfAutoFeed,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfThrowException
      * property IfThrowException
               PROPERTY-GET, 127, @IfThrowException
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfThrowException
      * property IfThrowException
               PROPERTY-PUT, 127, @IfThrowException,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] XferCount
      * property XferCount
               PROPERTY-GET, 128, @XferCount
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] XferCount
      * property XferCount
               PROPERTY-PUT, 128, @XferCount,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] SaveAllAsMultiPageTIFF
      * method SaveAllAsMultiPageTIFF
               METHOD, 129, @SaveAllAsMultiPageTIFF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SaveAsPNG
      * method SaveAsPNG
               METHOD, 130, @SaveAsPNG,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] RemoveAllImages
      * method RemoveAllImages
               METHOD, 137, @RemoveAllImages
      *[Class: @IDynamicWebTwain] RemoveImage
      * method RemoveImage
               METHOD, 138, @RemoveImage,
                   "short" @sImageIndexToBeDeleted, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SaveAsBMP
      * method SaveAsBMP
               METHOD, 131, @SaveAsBMP,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SaveAsJPEG
      * method SaveAsJPEG
               METHOD, 132, @SaveAsJPEG,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SaveAsTIFF
      * method SaveAsTIFF
               METHOD, 133, @SaveAsTIFF,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CopyToClipboard
      * method CopyToClipboard
               METHOD, 140, @CopyToClipboard,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CutToClipboard
      * method CutToClipboard
               METHOD, 141, @CutToClipboard,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] hDIB
      * property hDIB
               PROPERTY-GET, 142, @hDIB,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] Picture
      * property Picture
               PROPERTY-GET, 143, @Picture,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "IPictureDisp*", TYPE 16413
      *[Class: @IDynamicWebTwain] MaxImagesInBuffer
      * property MaxImagesInBuffer
               PROPERTY-GET, 134, @MaxImagesInBuffer
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] MaxImagesInBuffer
      * property MaxImagesInBuffer
               PROPERTY-PUT, 134, @MaxImagesInBuffer,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] HowManyImagesInBuffer
      * property HowManyImagesInBuffer
               PROPERTY-GET, 135, @HowManyImagesInBuffer
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] CurrentImageIndexInBuffer
      * property CurrentImageIndexInBuffer
               PROPERTY-GET, 136, @CurrentImageIndexInBuffer
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] CurrentImageIndexInBuffer
      * property CurrentImageIndexInBuffer
               PROPERTY-PUT, 136, @CurrentImageIndexInBuffer,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] TIFFCompressionType
      * property TIFFCompressionType
               PROPERTY-GET, 144, @TIFFCompressionType
                       RETURNING "enumTIFFCompressionType", TYPE 3
      *[Class: @IDynamicWebTwain] TIFFCompressionType
      * property TIFFCompressionType
               PROPERTY-PUT, 144, @TIFFCompressionType,
                   "enumTIFFCompressionType (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] GetImageLayout
      * method GetImageLayout
               METHOD, 145, @GetImageLayout,
                   "single*" @pLeft, TYPE 16388,
                   "single*" @pTop, TYPE 16388,
                   "single*" @pRight, TYPE 16388,
                   "single*" @pBottom, TYPE 16388
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SetImageLayout
      * method SetImageLayout
               METHOD, 146, @SetImageLayout,
                   "single" @left, TYPE 4,
                   "single" @top, TYPE 4,
                   "single" @right, TYPE 4,
                   "single" @bottom, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ResetImageLayout
      * method ResetImageLayout
               METHOD, 147, @ResetImageLayout
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetDefaultImageLayout
      * method GetDefaultImageLayout
               METHOD, 148, @GetDefaultImageLayout,
                   "single*" @pLeft, TYPE 16388,
                   "single*" @pTop, TYPE 16388,
                   "single*" @pRight, TYPE 16388,
                   "single*" @pBottom, TYPE 16388
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPPostResponseString
      * property HTTPPostResponseString
               PROPERTY-GET, 305, @HTTPPostResponseString
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] FTPUpload
      * method FTPUpload
               METHOD, 310, @FTPUpload,
                   "BSTR" @FTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPDownload
      * method FTPDownload
               METHOD, 311, @FTPDownload,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPost
      * method HTTPUploadThroughPost
               METHOD, 312, @HTTPUploadThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPut
      * method HTTPUploadThroughPut
               METHOD, 313, @HTTPUploadThroughPut,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPDownload
      * method HTTPDownload
               METHOD, 314, @HTTPDownload,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] LoadImage
      * method LoadImage
               METHOD, 315, @LoadImage,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfFitWindow
      * property IfFitWindow
               PROPERTY-GET, 316, @IfFitWindow
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfFitWindow
      * property IfFitWindow
               PROPERTY-PUT, 316, @IfFitWindow,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] FTPUploadAllAsMultiPageTIFF
      * method FTPUploadAllAsMultiPageTIFF
               METHOD, 317, @FTPUploadAllAsMultiPageTIFF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadAllThroughPostAsMultiPageTIFF
      * method HTTPUploadAllThroughPostAsMultiPageTIFF
               METHOD, 318, @HTTPUploadAllThroughPostAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadAllThroughPutAsMultiPageTIFF
      * method HTTPUploadAllThroughPutAsMultiPageTIFF
               METHOD, 319, @HTTPUploadAllThroughPutAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ImageEditorWindowTitle
      * property ImageEditorWindowTitle
               PROPERTY-GET, 320, @ImageEditorWindowTitle
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] ImageEditorWindowTitle
      * property ImageEditorWindowTitle
               PROPERTY-PUT, 320, @ImageEditorWindowTitle,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] ImageEditorIfReadonly
      * property ImageEditorIfReadonly
               PROPERTY-GET, 321, @ImageEditorIfReadonly
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ImageEditorIfReadonly
      * property ImageEditorIfReadonly
               PROPERTY-PUT, 321, @ImageEditorIfReadonly,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] ImageEditorIfEnableEnumerator
      * property ImageEditorIfEnableEnumerator
               PROPERTY-GET, 322, @ImageEditorIfEnableEnumerator
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ImageEditorIfEnableEnumerator
      * property ImageEditorIfEnableEnumerator
               PROPERTY-PUT, 322, @ImageEditorIfEnableEnumerator,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] ShowImageEditor
      * method ShowImageEditor
               METHOD, 323, @ShowImageEditor
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] RotateLeft
      * method RotateLeft
               METHOD, 324, @RotateLeft,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] RotateRight
      * method RotateRight
               METHOD, 325, @RotateRight,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Flip
      * method Flip
               METHOD, 326, @Flip,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Mirror
      * method Mirror
               METHOD, 327, @Mirror,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Crop
      * method Crop
               METHOD, 328, @Crop,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CropToClipboard
      * method CropToClipboard
               METHOD, 329, @CropToClipboard,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetImageSize
      * method GetImageSize
               METHOD, 330, @GetImageSize,
                   "short" @sImageIndex, TYPE 2,
                   "int" @iWidth, TYPE 22,
                   "int" @iHeight, TYPE 22
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] ChangeImageSize
      * method ChangeImageSize
               METHOD, 331, @ChangeImageSize,
                   "short" @sImageIndex, TYPE 2,
                   "int" @iNewWidth, TYPE 22,
                   "int" @iNewHeight, TYPE 22,
                   "enumInterpolationMethod" @newVal, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] LoadDibFromClipboard
      * method LoadDibFromClipboard
               METHOD, 332, @LoadDibFromClipboard
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfSSL
      * property IfSSL
               PROPERTY-GET, 333, @IfSSL
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfSSL
      * property IfSSL
               PROPERTY-PUT, 333, @IfSSL,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] FTPUploadEx
      * method FTPUploadEx
               METHOD, 334, @FTPUploadEx,
                   "BSTR" @FTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @FTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPDownloadEx
      * method FTPDownloadEx
               METHOD, 335, @FTPDownloadEx,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPostEx
      * method HTTPUploadThroughPostEx
               METHOD, 336, @HTTPUploadThroughPostEx,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPutEx
      * method HTTPUploadThroughPutEx
               METHOD, 337, @HTTPUploadThroughPutEx,
                   "BSTR" @HTTPServer, TYPE 8,
                   "short" @sImageIndex, TYPE 2,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPDownloadEx
      * method HTTPDownloadEx
               METHOD, 338, @HTTPDownloadEx,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] LoadImageEx
      * method LoadImageEx
               METHOD, 339, @LoadImageEx,
                   "BSTR" @FileName, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SetHTTPFormField
      * method SetHTTPFormField
               METHOD, 340, @SetHTTPFormField,
                   "BSTR" @FieldName, TYPE 8,
                   "BSTR" @FieldValue, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ClearAllHTTPFormField
      * method ClearAllHTTPFormField
               METHOD, 341, @ClearAllHTTPFormField
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowCancelDialogWhenImageTransfer
      * property IfShowCancelDialogWhenImageTransfer
               PROPERTY-GET, 342, @IfShowCancelDialogWhenImageTransfer
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowCancelDialogWhenImageTransfer
      * property IfShowCancelDialogWhenImageTransfer
               PROPERTY-PUT, 342, @IfShowCancelDialogWhenImageTransfer,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] SetViewMode
      * method SetViewMode
               METHOD, 343, @SetViewMode,
                   "short" @sHorizontalImageCount, TYPE 2,
                   "short" @sVerticalImageCount, TYPE 2
      *[Class: @IDynamicWebTwain] ImageMargin
      * property ImageMargin
               PROPERTY-GET, 344, @ImageMargin
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] ImageMargin
      * property ImageMargin
               PROPERTY-PUT, 344, @ImageMargin,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] MouseShape
      * property MouseShape
               PROPERTY-GET, 345, @MouseShape
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] MouseShape
      * property MouseShape
               PROPERTY-PUT, 345, @MouseShape,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] PDFTitle
      * property PDFTitle
               PROPERTY-GET, 346, @PDFTitle
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFTitle
      * property PDFTitle
               PROPERTY-PUT, 346, @PDFTitle,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] PDFAuthor
      * property PDFAuthor
               PROPERTY-GET, 347, @PDFAuthor
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFAuthor
      * property PDFAuthor
               PROPERTY-PUT, 347, @PDFAuthor,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] PDFSubject
      * property PDFSubject
               PROPERTY-GET, 348, @PDFSubject
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFSubject
      * property PDFSubject
               PROPERTY-PUT, 348, @PDFSubject,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] PDFKeywords
      * property PDFKeywords
               PROPERTY-GET, 349, @PDFKeywords
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFKeywords
      * property PDFKeywords
               PROPERTY-PUT, 349, @PDFKeywords,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] PDFCreationDate
      * property PDFCreationDate
               PROPERTY-GET, 350, @PDFCreationDate
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFCreationDate
      * property PDFCreationDate
               PROPERTY-PUT, 350, @PDFCreationDate,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] PDFModifiedDate
      * property PDFModifiedDate
               PROPERTY-GET, 351, @PDFModifiedDate
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFModifiedDate
      * property PDFModifiedDate
               PROPERTY-PUT, 351, @PDFModifiedDate,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] PDFCreator
      * property PDFCreator
               PROPERTY-GET, 352, @PDFCreator
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFCreator
      * property PDFCreator
               PROPERTY-PUT, 352, @PDFCreator,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] PDFProducer
      * property PDFProducer
               PROPERTY-GET, 353, @PDFProducer
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFProducer
      * property PDFProducer
               PROPERTY-PUT, 353, @PDFProducer,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] SaveAsPDF
      * method SaveAsPDF
               METHOD, 354, @SaveAsPDF,
                   "BSTR" @FileName, TYPE 8,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SaveAllAsPDF
      * method SaveAllAsPDF
               METHOD, 355, @SaveAllAsPDF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPUploadAllAsPDF
      * method FTPUploadAllAsPDF
               METHOD, 356, @FTPUploadAllAsPDF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadAllThroughPostAsPDF
      * method HTTPUploadAllThroughPostAsPDF
               METHOD, 357, @HTTPUploadAllThroughPostAsPDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadAllThroughPutAsPDF
      * method HTTPUploadAllThroughPutAsPDF
               METHOD, 358, @HTTPUploadAllThroughPutAsPDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetViewMode
      * method GetViewMode
               METHOD, 359, @GetViewMode,
                   "short*" @sHorizontalImageCount, TYPE 16386,
                   "short*" @sVerticalImageCount, TYPE 16386
      *[Class: @IDynamicWebTwain] MaxUploadImageSize
      * property MaxUploadImageSize
               PROPERTY-GET, 360, @MaxUploadImageSize
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] MaxUploadImageSize
      * property MaxUploadImageSize
               PROPERTY-PUT, 360, @MaxUploadImageSize,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] PDFCompressionType
      * property PDFCompressionType
               PROPERTY-GET, 361, @PDFCompressionType
                       RETURNING "enumPDFCompressionType", TYPE 3
      *[Class: @IDynamicWebTwain] PDFCompressionType
      * property PDFCompressionType
               PROPERTY-PUT, 361, @PDFCompressionType,
                   "enumPDFCompressionType (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] IfAppendImage
      * property IfAppendImage
               PROPERTY-GET, 362, @IfAppendImage
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAppendImage
      * property IfAppendImage
               PROPERTY-PUT, 362, @IfAppendImage,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] SwitchImage
      * method SwitchImage
               METHOD, 363, @SwitchImage,
                   "short" @sImageIndex1, TYPE 2,
                   "short" @sImageIndex2, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetImageSizeWithSpecifiedType
      * method GetImageSizeWithSpecifiedType
               METHOD, 364, @GetImageSizeWithSpecifiedType,
                   "short" @sImageIndex, TYPE 2,
                   "short" @sImageType, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] BlankImageThreshold
      * property BlankImageThreshold
               PROPERTY-GET, 365, @BlankImageThreshold
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] BlankImageThreshold
      * property BlankImageThreshold
               PROPERTY-PUT, 365, @BlankImageThreshold,
                   "int (Property_Value)", TYPE 22
      *[Class: @IDynamicWebTwain] BlankImageMaxStdDev
      * property BlankImageMaxStdDev
               PROPERTY-GET, 366, @BlankImageMaxStdDev
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] BlankImageMaxStdDev
      * property BlankImageMaxStdDev
               PROPERTY-PUT, 366, @BlankImageMaxStdDev,
                   "single (Property_Value)", TYPE 4
      *[Class: @IDynamicWebTwain] IsBlankImage
      * method IsBlankImage
               METHOD, 367, @IsBlankImage,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Zoom
      * property Zoom
               PROPERTY-GET, 368, @Zoom
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] Zoom
      * property Zoom
               PROPERTY-PUT, 368, @Zoom,
                   "single (Property_Value)", TYPE 4
      *[Class: @IDynamicWebTwain] EnableInteractiveZoom
      * property EnableInteractiveZoom
               PROPERTY-GET, 369, @EnableInteractiveZoom
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] EnableInteractiveZoom
      * property EnableInteractiveZoom
               PROPERTY-PUT, 369, @EnableInteractiveZoom,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] HttpFieldNameOfUploadedImage
      * property HttpFieldNameOfUploadedImage
               PROPERTY-GET, 370, @HttpFieldNameOfUploadedImage
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] HttpFieldNameOfUploadedImage
      * property HttpFieldNameOfUploadedImage
               PROPERTY-PUT, 370, @HttpFieldNameOfUploadedImage,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] IfPASVMode
      * property IfPASVMode
               PROPERTY-GET, 371, @IfPASVMode
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfPASVMode
      * property IfPASVMode
               PROPERTY-PUT, 371, @IfPASVMode,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] BarcodeCount
      * property BarcodeCount
               PROPERTY-GET, 372, @BarcodeCount
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] GetBarcodeText
      * method GetBarcodeText
               METHOD, 373, @GetBarcodeText,
                   "int" @barcodeIndex, TYPE 22
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] GetBarcodeInfo
      * method GetBarcodeInfo
               METHOD, 374, @GetBarcodeInfo,
                   "enumBarcodeInfoType" @barcodeInfoType, TYPE 3,
                   "int" @barcodeIndex, TYPE 22
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] VScrollBar
      * property VScrollBar
               PROPERTY-GET, 375, @VScrollBar
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] VScrollBar
      * property VScrollBar
               PROPERTY-PUT, 375, @VScrollBar,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] SelectionImageBorderColor
      * property SelectionImageBorderColor
               PROPERTY-GET, 376, @SelectionImageBorderColor
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] SelectionImageBorderColor
      * property SelectionImageBorderColor
               PROPERTY-PUT, 376, @SelectionImageBorderColor,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] AllowMultiSelect
      * property AllowMultiSelect
               PROPERTY-GET, 377, @AllowMultiSelect
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] AllowMultiSelect
      * property AllowMultiSelect
               PROPERTY-PUT, 377, @AllowMultiSelect,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] Rotate
      * method Rotate
               METHOD, 378, @Rotate,
                   "short" @sImageIndex, TYPE 2,
                   "single" @fAngle, TYPE 4,
                   "boolean" @bKeepSize, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] MoveImage
      * method MoveImage
               METHOD, 379, @MoveImage,
                   "short" @sImageIndex, TYPE 2,
                   "short" @sTargetImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Print
      * method Print
               METHOD, 380, @Print
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] LoadImageFromBytes
      * method LoadImageFromBytes
               METHOD, 381, @LoadImageFromBytes,
                   "long" @lBufferSize, TYPE 3,
                   "VARIANT*" @pbyBuffer, TYPE 16396,
                   "long" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SelectedImagesCount
      * property SelectedImagesCount
               PROPERTY-GET, 382, @SelectedImagesCount
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] SelectedImagesCount
      * property SelectedImagesCount
               PROPERTY-PUT, 382, @SelectedImagesCount,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] SelectedImageIndex
      * property SelectedImageIndex
               PROPERTY-GET, 383, @SelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] SelectedImageIndex
      * property SelectedImageIndex
               PROPERTY-PUT, 383, @SelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] GetSelectedImagesSize
      * method GetSelectedImagesSize
               METHOD, 384, @GetSelectedImagesSize,
                   "long" @ImageType, TYPE 3
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] SaveSelectedImagesToBytes
      * method SaveSelectedImagesToBytes
               METHOD, 385, @SaveSelectedImagesToBytes,
                   "long" @lBufferSize, TYPE 3,
                   "VARIANT*" @pbyBuffer, TYPE 16396
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] SaveSelectedImagesAsMultiPageTIFF
      * method SaveSelectedImagesAsMultiPageTIFF
               METHOD, 386, @SaveSelectedImagesAsMultiPageTIFF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SaveSelectedImagesAsMultiPagePDF
      * method SaveSelectedImagesAsMultiPagePDF
               METHOD, 387, @SaveSelectedImagesAsMultiPagePDF,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPUploadAsMultiPageTIFF
      * method FTPUploadAsMultiPageTIFF
               METHOD, 388, @FTPUploadAsMultiPageTIFF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPUploadAsMultiPagePDF
      * method FTPUploadAsMultiPagePDF
               METHOD, 389, @FTPUploadAsMultiPagePDF,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPostAsMultiPageTIFF
      * method HTTPUploadThroughPostAsMultiPageTIFF
               METHOD, 390, @HTTPUploadThroughPostAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPostAsMultiPagePDF
      * method HTTPUploadThroughPostAsMultiPagePDF
               METHOD, 391, @HTTPUploadThroughPostAsMultiPagePDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPutAsMultiPageTIFF
      * method HTTPUploadThroughPutAsMultiPageTIFF
               METHOD, 392, @HTTPUploadThroughPutAsMultiPageTIFF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPutAsMultiPagePDF
      * method HTTPUploadThroughPutAsMultiPagePDF
               METHOD, 393, @HTTPUploadThroughPutAsMultiPagePDF,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] BackgroundColor
      * property BackgroundColor
               PROPERTY-GET, 394, @BackgroundColor
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] BackgroundColor
      * property BackgroundColor
               PROPERTY-PUT, 394, @BackgroundColor,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] BackgroundFillColor
      * property BackgroundFillColor
               PROPERTY-GET, 395, @BackgroundFillColor
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] BackgroundFillColor
      * property BackgroundFillColor
               PROPERTY-PUT, 395, @BackgroundFillColor,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] CutFrameToClipboard
      * method CutFrameToClipboard
               METHOD, 396, @CutFrameToClipboard,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] Erase
      * method Erase
               METHOD, 397, @Erase,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] BindSSLCert
      * method BindSSLCert
               METHOD, 398, @BindSSLCert,
                   "BSTR" @CertIssuer, TYPE 8,
                   "BSTR" @CertSerialNumber, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] BindSSLCertEx
      * method BindSSLCertEx
               METHOD, 399, @BindSSLCertEx,
                   "BSTR" @CertSubjectKeyword, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SetCookie
      * method SetCookie
               METHOD, 400, @SetCookie,
                   "BSTR" @Cookie, TYPE 8
      *[Class: @IDynamicWebTwain] RemoveAllSelectedImages
      * method RemoveAllSelectedImages
               METHOD, 401, @RemoveAllSelectedImages
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] MouseX
      * property MouseX
               PROPERTY-GET, 402, @MouseX
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] MouseY
      * property MouseY
               PROPERTY-GET, 403, @MouseY
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] OverlayRectangle
      * method OverlayRectangle
               METHOD, 404, @OverlayRectangle,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "int" @color, TYPE 22,
                   "single" @fOpacity, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfUseTwainDSM
      * property IfUseTwainDSM
               PROPERTY-GET, 405, @IfUseTwainDSM
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfUseTwainDSM
      * property IfUseTwainDSM
               PROPERTY-PUT, 405, @IfUseTwainDSM,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfHookMessage
      * property IfHookMessage
               PROPERTY-GET, 406, @IfHookMessage
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfHookMessage
      * property IfHookMessage
               PROPERTY-PUT, 406, @IfHookMessage,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IsBlankImageEx
      * method IsBlankImageEx
               METHOD, 407, @IsBlankImageEx,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "boolean" @bFuzzyMatch, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SaveSelectedImagesToBase64Binary
      * method SaveSelectedImagesToBase64Binary
               METHOD, 408, @SaveSelectedImagesToBase64Binary
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] LoadImageFromBase64Binary
      * method LoadImageFromBase64Binary
               METHOD, 409, @LoadImageFromBase64Binary,
                   "BSTR" @ImageData, TYPE 8,
                   "long" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowPrintUI
      * property IfShowPrintUI
               PROPERTY-GET, 410, @IfShowPrintUI
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowPrintUI
      * property IfShowPrintUI
               PROPERTY-PUT, 410, @IfShowPrintUI,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowFileDialog
      * property IfShowFileDialog
               PROPERTY-GET, 411, @IfShowFileDialog
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowFileDialog
      * property IfShowFileDialog
               PROPERTY-PUT, 411, @IfShowFileDialog,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] FitWindowType
      * property FitWindowType
               PROPERTY-GET, 412, @FitWindowType
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] FitWindowType
      * property FitWindowType
               PROPERTY-PUT, 412, @FitWindowType,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] CapGetHelp
      * method CapGetHelp
               METHOD, 413, @CapGetHelp
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CapGetLabel
      * method CapGetLabel
               METHOD, 414, @CapGetLabel
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CapGetLabels
      * method CapGetLabels
               METHOD, 415, @CapGetLabels
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetImageBitDepth
      * method GetImageBitDepth
               METHOD, 416, @GetImageBitDepth,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] GetImageWidth
      * method GetImageWidth
               METHOD, 417, @GetImageWidth,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] GetImageHeight
      * method GetImageHeight
               METHOD, 418, @GetImageHeight,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] IfScanInThread
      * property IfScanInThread
               PROPERTY-GET, 420, @IfScanInThread
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfScanInThread
      * property IfScanInThread
               PROPERTY-PUT, 420, @IfScanInThread,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] LogLevel
      * property LogLevel
               PROPERTY-GET, 421, @LogLevel
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] LogLevel
      * property LogLevel
               PROPERTY-PUT, 421, @LogLevel,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] InternetSendTimeout
      * property InternetSendTimeout
               PROPERTY-GET, 422, @InternetSendTimeout
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] InternetSendTimeout
      * property InternetSendTimeout
               PROPERTY-PUT, 422, @InternetSendTimeout,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] InternetReceiveTimeout
      * property InternetReceiveTimeout
               PROPERTY-GET, 423, @InternetReceiveTimeout
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] InternetReceiveTimeout
      * property InternetReceiveTimeout
               PROPERTY-PUT, 423, @InternetReceiveTimeout,
                   "long (Property_Value)", TYPE 3
      *[Class: @IDynamicWebTwain] CapValueType
      * property CapValueType
               PROPERTY-GET, 424, @CapValueType
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] CapValueType
      * property CapValueType
               PROPERTY-PUT, 424, @CapValueType,
                   "short (Property_Value)", TYPE 2
      *[Class: @IDynamicWebTwain] SetSelectedImageArea
      * method SetSelectedImageArea
               METHOD, 425, @SetSelectedImageArea,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetHDIB
      * method GetHDIB
               METHOD, 426, @GetHDIB,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] GetSourceNameItems
      * method GetSourceNameItems
               METHOD, 427, @GetSourceNameItems,
                   "short" @Index, TYPE 2
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] GetCapItems
      * method GetCapItems
               METHOD, 428, @GetCapItems,
                   "long" @Index, TYPE 3
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] SetCapItems
      * method SetCapItems
               METHOD, 429, @SetCapItems,
                   "long" @Index, TYPE 3,
                   "double" @newVal, TYPE 5
      *[Class: @IDynamicWebTwain] GetCapItemsString
      * method GetCapItemsString
               METHOD, 430, @GetCapItemsString,
                   "long" @Index, TYPE 3
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] SetCapItemsString
      * method SetCapItemsString
               METHOD, 431, @SetCapItemsString,
                   "long" @Index, TYPE 3,
                   "BSTR" @newVal, TYPE 8
      *[Class: @IDynamicWebTwain] GetSelectedImageIndex
      * method GetSelectedImageIndex
               METHOD, 432, @GetSelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] SetSelectedImageIndex
      * method SetSelectedImageIndex
               METHOD, 433, @SetSelectedImageIndex,
                   "short" @SelectedIndex, TYPE 2,
                   "short" @newVal, TYPE 2
      *[Class: @IDynamicWebTwain] GetDeviceType
      * method GetDeviceType
               METHOD, 434, @GetDeviceType
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] RotateEx
      * method RotateEx
               METHOD, 435, @RotateEx,
                   "short" @sImageIndex, TYPE 2,
                   "single" @fAngle, TYPE 4,
                   "boolean" @bKeepSize, TYPE 11,
                   "enumInterpolationMethod" @newVal, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPUploadDirectly
      * method FTPUploadDirectly
               METHOD, 436, @FTPUploadDirectly,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPostDirectly
      * method HTTPUploadThroughPostDirectly
               METHOD, 437, @HTTPUploadThroughPostDirectly,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8,
                   "BSTR" @ActionPage, TYPE 8,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadThroughPutDirectly
      * method HTTPUploadThroughPutDirectly
               METHOD, 438, @HTTPUploadThroughPutDirectly,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPDownloadDirectly
      * method HTTPDownloadDirectly
               METHOD, 439, @HTTPDownloadDirectly,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] FTPDownloadDirectly
      * method FTPDownloadDirectly
               METHOD, 440, @FTPDownloadDirectly,
                   "BSTR" @FTPServer, TYPE 8,
                   "BSTR" @FTPRemoteFile, TYPE 8,
                   "BSTR" @LocalFile, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] AddText
      * method AddText
               METHOD, 441, @AddText,
                   "short" @sImageIndex, TYPE 2,
                   "int" @x, TYPE 22,
                   "int" @y, TYPE 22,
                   "BSTR" @Text, TYPE 8,
                   "int" @TextColor, TYPE 22,
                   "int" @BackgroundColor, TYPE 22,
                   "single" @BackgroundRoundRadius, TYPE 4,
                   "single" @BackgroundOpacity, TYPE 4
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] CreateTextFont
      * method CreateTextFont
               METHOD, 442, @CreateTextFont,
                   "int" @Height, TYPE 22,
                   "int" @Width, TYPE 22,
                   "int" @Escapement, TYPE 22,
                   "int" @Orientation, TYPE 22,
                   "int" @Weight, TYPE 22,
                   "short" @Italic, TYPE 2,
                   "short" @Underline, TYPE 2,
                   "short" @StrikeOut, TYPE 2,
                   "short" @CharSet, TYPE 2,
                   "short" @OutputPrecision, TYPE 2,
                   "short" @ClipPrecision, TYPE 2,
                   "short" @Quality, TYPE 2,
                   "short" @PitchAndFamily, TYPE 2,
                   "BSTR" @FaceName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] BlankImageCurrentStdDev
      * property BlankImageCurrentStdDev
               PROPERTY-GET, 443, @BlankImageCurrentStdDev
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] IfScanInNewThread
      * property IfScanInNewThread
               PROPERTY-GET, 444, @IfScanInNewThread
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfScanInNewThread
      * property IfScanInNewThread
               PROPERTY-PUT, 444, @IfScanInNewThread,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutomaticBorderDetection
      * property IfAutomaticBorderDetection
               PROPERTY-GET, 445, @IfAutomaticBorderDetection
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutomaticBorderDetection
      * property IfAutomaticBorderDetection
               PROPERTY-PUT, 445, @IfAutomaticBorderDetection,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutomaticDeskew
      * property IfAutomaticDeskew
               PROPERTY-GET, 446, @IfAutomaticDeskew
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutomaticDeskew
      * property IfAutomaticDeskew
               PROPERTY-PUT, 446, @IfAutomaticDeskew,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutoDiscardBlankpages
      * property IfAutoDiscardBlankpages
               PROPERTY-GET, 447, @IfAutoDiscardBlankpages
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAutoDiscardBlankpages
      * property IfAutoDiscardBlankpages
               PROPERTY-PUT, 447, @IfAutoDiscardBlankpages,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] PDFVersion
      * property PDFVersion
               PROPERTY-GET, 448, @PDFVersion
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] PDFVersion
      * property PDFVersion
               PROPERTY-PUT, 448, @PDFVersion,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] ImageEditorIfModal
      * property ImageEditorIfModal
               PROPERTY-GET, 449, @ImageEditorIfModal
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ImageEditorIfModal
      * property ImageEditorIfModal
               PROPERTY-PUT, 449, @ImageEditorIfModal,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] MagType
      * property MagType
               PROPERTY-GET, 450, @MagType
                       RETURNING "short", TYPE 2
      *[Class: @IDynamicWebTwain] MagData
      * property MagData
               PROPERTY-GET, 451, @MagData
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] AllowPluginAuthentication
      * property AllowPluginAuthentication
               PROPERTY-GET, 582, @AllowPluginAuthentication
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] AllowPluginAuthentication
      * property AllowPluginAuthentication
               PROPERTY-PUT, 582, @AllowPluginAuthentication,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] SetDPI
      * method SetDPI
               METHOD, 583, @SetDPI,
                   "short" @sImageIndex, TYPE 2,
                   "int" @xResolution, TYPE 22,
                   "int" @yResolution, TYPE 22,
                   "boolean" @bResampleImage, TYPE 11,
                   "enumInterpolationMethod" @newVal, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetImageXResolution
      * method GetImageXResolution
               METHOD, 584, @GetImageXResolution,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] GetImageYResolution
      * method GetImageYResolution
               METHOD, 585, @GetImageYResolution,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "long", TYPE 3
      *[Class: @IDynamicWebTwain] ShowFileDialog
      * method ShowFileDialog
               METHOD, 586, @ShowFileDialog,
                   "boolean" @SaveDialog, TYPE 11,
                   "BSTR" @Filter, TYPE 8,
                   "long" @FilterIndex, TYPE 3,
                   "BSTR" @DefExtension, TYPE 8,
                   "BSTR" @InitialDir, TYPE 8,
                   "boolean" @AllowMultiSelect, TYPE 11,
                   "boolean" @OverwritePrompt, TYPE 11,
                   "long" @Flags, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowProgressBar
      * property IfShowProgressBar
               PROPERTY-GET, 591, @IfShowProgressBar
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfShowProgressBar
      * property IfShowProgressBar
               PROPERTY-PUT, 591, @IfShowProgressBar,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] AsyncMode
      * property AsyncMode
               PROPERTY-GET, 593, @AsyncMode
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] AsyncMode
      * property AsyncMode
               PROPERTY-PUT, 593, @AsyncMode,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] MaxInternetTransferThreads
      * property MaxInternetTransferThreads
               PROPERTY-GET, 594, @MaxInternetTransferThreads
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] MaxInternetTransferThreads
      * property MaxInternetTransferThreads
               PROPERTY-PUT, 594, @MaxInternetTransferThreads,
                   "int (Property_Value)", TYPE 22
      *[Class: @IDynamicWebTwain] GetSkewAngle
      * method GetSkewAngle
               METHOD, 595, @GetSkewAngle,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] GetSkewAngleEx
      * method GetSkewAngleEx
               METHOD, 596, @GetSkewAngleEx,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22
                       RETURNING "double", TYPE 5
      *[Class: @IDynamicWebTwain] FileExists
      * method FileExists
               METHOD, 614, @FileExists,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] BrokerProcessType
      * property BrokerProcessType
               PROPERTY-GET, 615, @BrokerProcessType
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] BrokerProcessType
      * property BrokerProcessType
               PROPERTY-PUT, 615, @BrokerProcessType,
                   "int (Property_Value)", TYPE 22
      *[Class: @IDynamicWebTwain] ProductKey
      * property ProductKey
               PROPERTY-GET, 616, @ProductKey
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] ProductKey
      * property ProductKey
               PROPERTY-PUT, 616, @ProductKey,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] HTTPDownloadThroughPost
      * method HTTPDownloadThroughPost
               METHOD, 617, @HTTPDownloadThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "enumTW_IMAGE_TYPE" @ImageType, TYPE 3
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SetCustomDSData
      * method SetCustomDSData
               METHOD, 618, @SetCustomDSData,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SetCustomDSDataEx
      * method SetCustomDSDataEx
               METHOD, 619, @SetCustomDSDataEx,
                   "BSTR" @Value, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetCustomDSData
      * method GetCustomDSData
               METHOD, 620, @GetCustomDSData,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetCustomDSDataEx
      * method GetCustomDSDataEx
               METHOD, 621, @GetCustomDSDataEx
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] SelectionRectAspectRatio
      * property SelectionRectAspectRatio
               PROPERTY-GET, 622, @SelectionRectAspectRatio
                       RETURNING "single", TYPE 4
      *[Class: @IDynamicWebTwain] SelectionRectAspectRatio
      * property SelectionRectAspectRatio
               PROPERTY-PUT, 622, @SelectionRectAspectRatio,
                   "single (Property_Value)", TYPE 4
      *[Class: @IDynamicWebTwain] SetDefaultSource
      * method SetDefaultSource
               METHOD, 623, @SetDefaultSource,
                   "short" @Index, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfOpenImageWithGDIPlus
      * property IfOpenImageWithGDIPlus
               PROPERTY-GET, 625, @IfOpenImageWithGDIPlus
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfOpenImageWithGDIPlus
      * property IfOpenImageWithGDIPlus
               PROPERTY-PUT, 625, @IfOpenImageWithGDIPlus,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] IsBlankImageExpress
      * method IsBlankImageExpress
               METHOD, 626, @IsBlankImageExpress,
                   "short" @sImageIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ImageCaptureDriverType
      * property ImageCaptureDriverType
               PROPERTY-GET, 627, @ImageCaptureDriverType
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] ImageCaptureDriverType
      * property ImageCaptureDriverType
               PROPERTY-PUT, 627, @ImageCaptureDriverType,
                   "int (Property_Value)", TYPE 22
      *[Class: @IDynamicWebTwain] AutoCropMethod
      * property AutoCropMethod
               PROPERTY-GET, 628, @AutoCropMethod
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] AutoCropMethod
      * property AutoCropMethod
               PROPERTY-PUT, 628, @AutoCropMethod,
                   "int (Property_Value)", TYPE 22
      *[Class: @IDynamicWebTwain] ChangeBitDepth
      * method ChangeBitDepth
               METHOD, 629, @ChangeBitDepth,
                   "short" @sIndex, TYPE 2,
                   "short" @sBitDepth, TYPE 2,
                   "boolean" @bHighQuality, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ConvertToGrayScale
      * method ConvertToGrayScale
               METHOD, 630, @ConvertToGrayScale,
                   "short" @sIndex, TYPE 2
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ClearTIFFCustomTag
      * method ClearTIFFCustomTag
               METHOD, 633, @ClearTIFFCustomTag
      *[Class: @IDynamicWebTwain] SetTIFFCustomTag
      * method SetTIFFCustomTag
               METHOD, 634, @SetTIFFCustomTag,
                   "int" @Tag, TYPE 22,
                   "BSTR" @Content, TYPE 8,
                   "boolean" @Base64Str, TYPE 11
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] ShowImageEditorEx
      * method ShowImageEditorEx
               METHOD, 635, @ShowImageEditorEx,
                   "int" @x, TYPE 22,
                   "int" @y, TYPE 22,
                   "int" @cx, TYPE 22,
                   "int" @cy, TYPE 22,
                   "int" @nCmdShow, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPUploadStreamThroughPost
      * method HTTPUploadStreamThroughPost
               METHOD, 636, @HTTPUploadStreamThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8,
                   "BSTR" @StreamContent, TYPE 8
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] HTTPDownloadStreamThroughPost
      * method HTTPDownloadStreamThroughPost
               METHOD, 637, @HTTPDownloadStreamThroughPost,
                   "BSTR" @HTTPServer, TYPE 8,
                   "BSTR" @HTTPRemoteFile, TYPE 8
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] RegisterEvent
      * method RegisterEvent
               METHOD, 638, @RegisterEvent,
                   "BSTR" @Name, TYPE 8,
                   "VARIANT" @evt, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] UnregisterEvent
      * method UnregisterEvent
               METHOD, 639, @UnregisterEvent,
                   "BSTR" @Name, TYPE 8,
                   "VARIANT" @evt, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] SetImageWidth
      * method SetImageWidth
               METHOD, 640, @SetImageWidth,
                   "short" @sIndex, TYPE 2,
                   "int" @iNewWidth, TYPE 22
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] GetFileHash
      * method GetFileHash
               METHOD, 642, @GetFileHash,
                   "BSTR" @FileName, TYPE 8
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] HttpContentTypeFieldValue
      * property HttpContentTypeFieldValue
               PROPERTY-GET, 646, @HttpContentTypeFieldValue
                       RETURNING "BSTR", TYPE 8
      *[Class: @IDynamicWebTwain] HttpContentTypeFieldValue
      * property HttpContentTypeFieldValue
               PROPERTY-PUT, 646, @HttpContentTypeFieldValue,
                   "BSTR (Property_Value)", TYPE 8
      *[Class: @IDynamicWebTwain] IfAllowLocalCache
      * property IfAllowLocalCache
               PROPERTY-GET, 647, @IfAllowLocalCache
                       RETURNING "boolean", TYPE 11
      *[Class: @IDynamicWebTwain] IfAllowLocalCache
      * property IfAllowLocalCache
               PROPERTY-PUT, 647, @IfAllowLocalCache,
                   "boolean (Property_Value)", TYPE 11
      *[Class: @IDynamicWebTwain] Addon
      * property Addon
               PROPERTY-GET, 649, @Addon
                       RETURNING "VARIANT", TYPE 12
      *[Class: @IDynamicWebTwain] BufferMemoryLimit
      * property BufferMemoryLimit
               PROPERTY-GET, 650, @BufferMemoryLimit
                       RETURNING "int", TYPE 22
      *[Class: @IDynamicWebTwain] BufferMemoryLimit
      * property BufferMemoryLimit
               PROPERTY-PUT, 650, @BufferMemoryLimit,
                   "int (Property_Value)", TYPE 22
          
      * enumTW_PIXEL_TYPE
           CLASS @enumTW_PIXEL_TYPE
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTW_PIXEL_TYPE"
      * "long TWPT_BW"
               ENUMERATOR, @TWPT_BW, 0
      * "long TWPT_GRAY"
               ENUMERATOR, @TWPT_GRAY, 1
      * "long TWPT_RGB"
               ENUMERATOR, @TWPT_RGB, 2
          
      * enumTW_MESSAGETYPE
           CLASS @enumTW_MESSAGETYPE
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTW_MESSAGETYPE"
      * "long TWQC_GET"
               ENUMERATOR, @TWQC_GET, 1
      * "long TWQC_SET"
               ENUMERATOR, @TWQC_SET, 2
      * "long TWQC_GETDEFAULT"
               ENUMERATOR, @TWQC_GETDEFAULT, 4
      * "long TWQC_GETCURRENT"
               ENUMERATOR, @TWQC_GETCURRENT, 8
      * "long TWQC_RESET"
               ENUMERATOR, @TWQC_RESET, 16
          
      * enumTW_CAP
           CLASS @enumTW_CAP
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTW_CAP"
      * "long CAP_XFERCOUNT"
               ENUMERATOR, @CAP_XFERCOUNT, 1
      * "long ICAP_COMPRESSION"
               ENUMERATOR, @ICAP_COMPRESSION, 256
      * "long ICAP_PIXELTYPE"
               ENUMERATOR, @ICAP_PIXELTYPE, 257
      * "long ICAP_UNITS"
               ENUMERATOR, @ICAP_UNITS, 258
      * "long ICAP_XFERMECH"
               ENUMERATOR, @ICAP_XFERMECH, 259
      * "long CAP_AUTHOR"
               ENUMERATOR, @CAP_AUTHOR, 4096
      * "long CAP_CAPTION"
               ENUMERATOR, @CAP_CAPTION, 4097
      * "long CAP_FEEDERENABLED"
               ENUMERATOR, @CAP_FEEDERENABLED, 4098
      * "long CAP_FEEDERLOADED"
               ENUMERATOR, @CAP_FEEDERLOADED, 4099
      * "long CAP_TIMEDATE"
               ENUMERATOR, @CAP_TIMEDATE, 4100
      * "long CAP_SUPPORTEDCAPS"
               ENUMERATOR, @CAP_SUPPORTEDCAPS, 4101
      * "long CAP_EXTENDEDCAPS"
               ENUMERATOR, @CAP_EXTENDEDCAPS, 4102
      * "long CAP_AUTOFEED"
               ENUMERATOR, @CAP_AUTOFEED, 4103
      * "long CAP_CLEARPAGE"
               ENUMERATOR, @CAP_CLEARPAGE, 4104
      * "long CAP_FEEDPAGE"
               ENUMERATOR, @CAP_FEEDPAGE, 4105
      * "long CAP_REWINDPAGE"
               ENUMERATOR, @CAP_REWINDPAGE, 4106
      * "long CAP_INDICATORS"
               ENUMERATOR, @CAP_INDICATORS, 4107
      * "long CAP_SUPPORTEDCAPSEXT"
               ENUMERATOR, @CAP_SUPPORTEDCAPSEXT, 4108
      * "long CAP_PAPERDETECTABLE"
               ENUMERATOR, @CAP_PAPERDETECTABLE, 4109
      * "long CAP_UICONTROLLABLE"
               ENUMERATOR, @CAP_UICONTROLLABLE, 4110
      * "long CAP_DEVICEONLINE"
               ENUMERATOR, @CAP_DEVICEONLINE, 4111
      * "long CAP_AUTOSCAN"
               ENUMERATOR, @CAP_AUTOSCAN, 4112
      * "long CAP_THUMBNAILSENABLED"
               ENUMERATOR, @CAP_THUMBNAILSENABLED, 4113
      * "long CAP_DUPLEX"
               ENUMERATOR, @CAP_DUPLEX, 4114
      * "long CAP_DUPLEXENABLED"
               ENUMERATOR, @CAP_DUPLEXENABLED, 4115
      * "long CAP_ENABLEDSUIONLY"
               ENUMERATOR, @CAP_ENABLEDSUIONLY, 4116
      * "long CAP_ENDORSER"
               ENUMERATOR, @CAP_ENDORSER, 4118
      * "long CAP_ALARMS"
               ENUMERATOR, @CAP_ALARMS, 4120
      * "long CAP_ALARMVOLUME"
               ENUMERATOR, @CAP_ALARMVOLUME, 4121
      * "long CAP_AUTOMATICCAPTURE"
               ENUMERATOR, @CAP_AUTOMATICCAPTURE, 4122
      * "long CAP_TIMEBEFOREFIRSTCAPTURE"
               ENUMERATOR, @CAP_TIMEBEFOREFIRSTCAPTURE, 4123
      * "long CAP_TIMEBETWEENCAPTURES"
               ENUMERATOR, @CAP_TIMEBETWEENCAPTURES, 4124
      * "long CAP_CLEARBUFFERS"
               ENUMERATOR, @CAP_CLEARBUFFERS, 4125
      * "long CAP_MAXBATCHBUFFERS"
               ENUMERATOR, @CAP_MAXBATCHBUFFERS, 4126
      * "long CAP_DEVICETIMEDATE"
               ENUMERATOR, @CAP_DEVICETIMEDATE, 4127
      * "long CAP_POWERSUPPLY"
               ENUMERATOR, @CAP_POWERSUPPLY, 4128
      * "long CAP_CAMERAPREVIEWUI"
               ENUMERATOR, @CAP_CAMERAPREVIEWUI, 4129
      * "long CAP_PAGEMULTIPLEACQUIRE"
               ENUMERATOR, @CAP_PAGEMULTIPLEACQUIRE, 4131
      * "long CAP_SERIALNUMBER"
               ENUMERATOR, @CAP_SERIALNUMBER, 4132
      * "long CAP_FILESYSTEM"
               ENUMERATOR, @CAP_FILESYSTEM, 4133
      * "long CAP_PRINTER"
               ENUMERATOR, @CAP_PRINTER, 4134
      * "long CAP_PRINTERENABLED"
               ENUMERATOR, @CAP_PRINTERENABLED, 4135
      * "long CAP_PRINTERINDEX"
               ENUMERATOR, @CAP_PRINTERINDEX, 4136
      * "long CAP_PRINTERMODE"
               ENUMERATOR, @CAP_PRINTERMODE, 4137
      * "long CAP_PRINTERSTRING"
               ENUMERATOR, @CAP_PRINTERSTRING, 4138
      * "long CAP_PRINTERSUFFIX"
               ENUMERATOR, @CAP_PRINTERSUFFIX, 4139
      * "long CAP_LANGUAGE"
               ENUMERATOR, @CAP_LANGUAGE, 4140
      * "long CAP_FEEDERALIGNMENT"
               ENUMERATOR, @CAP_FEEDERALIGNMENT, 4141
      * "long CAP_FEEDERORDER"
               ENUMERATOR, @CAP_FEEDERORDER, 4142
      * "long CAP_PAPERBINDING"
               ENUMERATOR, @CAP_PAPERBINDING, 4143
      * "long CAP_REACQUIREALLOWED"
               ENUMERATOR, @CAP_REACQUIREALLOWED, 4144
      * "long CAP_PASSTHRU"
               ENUMERATOR, @CAP_PASSTHRU, 4145
      * "long CAP_BATTERYMINUTES"
               ENUMERATOR, @CAP_BATTERYMINUTES, 4146
      * "long CAP_BATTERYPERCENTAGE"
               ENUMERATOR, @CAP_BATTERYPERCENTAGE, 4147
      * "long CAP_CAMERASIDE"
               ENUMERATOR, @CAP_CAMERASIDE, 4148
      * "long CAP_SEGMENTED"
               ENUMERATOR, @CAP_SEGMENTED, 4149
      * "long CAP_CAMERAENABLED"
               ENUMERATOR, @CAP_CAMERAENABLED, 4150
      * "long CAP_CAMERAORDER"
               ENUMERATOR, @CAP_CAMERAORDER, 4151
      * "long CAP_MICRENABLED"
               ENUMERATOR, @CAP_MICRENABLED, 4152
      * "long CAP_FEEDERPREP"
               ENUMERATOR, @CAP_FEEDERPREP, 4153
      * "long CAP_FEEDERPOCKET"
               ENUMERATOR, @CAP_FEEDERPOCKET, 4154
      * "long CAP_AUTOMATICSENSEMEDIUM"
               ENUMERATOR, @CAP_AUTOMATICSENSEMEDIUM, 4155
      * "long CAP_CUSTOMINTERFACEGUID"
               ENUMERATOR, @CAP_CUSTOMINTERFACEGUID, 4156
      * "long ICAP_AUTOBRIGHT"
               ENUMERATOR, @ICAP_AUTOBRIGHT, 4352
      * "long ICAP_BRIGHTNESS"
               ENUMERATOR, @ICAP_BRIGHTNESS, 4353
      * "long ICAP_CONTRAST"
               ENUMERATOR, @ICAP_CONTRAST, 4355
      * "long ICAP_CUSTHALFTONE"
               ENUMERATOR, @ICAP_CUSTHALFTONE, 4356
      * "long ICAP_EXPOSURETIME"
               ENUMERATOR, @ICAP_EXPOSURETIME, 4357
      * "long ICAP_FILTER"
               ENUMERATOR, @ICAP_FILTER, 4358
      * "long ICAP_FLASHUSED"
               ENUMERATOR, @ICAP_FLASHUSED, 4359
      * "long ICAP_GAMMA"
               ENUMERATOR, @ICAP_GAMMA, 4360
      * "long ICAP_HALFTONES"
               ENUMERATOR, @ICAP_HALFTONES, 4361
      * "long ICAP_HIGHLIGHT"
               ENUMERATOR, @ICAP_HIGHLIGHT, 4362
      * "long ICAP_IMAGEFILEFORMAT"
               ENUMERATOR, @ICAP_IMAGEFILEFORMAT, 4364
      * "long ICAP_LAMPSTATE"
               ENUMERATOR, @ICAP_LAMPSTATE, 4365
      * "long ICAP_LIGHTSOURCE"
               ENUMERATOR, @ICAP_LIGHTSOURCE, 4366
      * "long ICAP_ORIENTATION"
               ENUMERATOR, @ICAP_ORIENTATION, 4368
      * "long ICAP_PHYSICALWIDTH"
               ENUMERATOR, @ICAP_PHYSICALWIDTH, 4369
      * "long ICAP_PHYSICALHEIGHT"
               ENUMERATOR, @ICAP_PHYSICALHEIGHT, 4370
      * "long ICAP_SHADOW"
               ENUMERATOR, @ICAP_SHADOW, 4371
      * "long ICAP_FRAMES"
               ENUMERATOR, @ICAP_FRAMES, 4372
      * "long ICAP_XNATIVERESOLUTION"
               ENUMERATOR, @ICAP_XNATIVERESOLUTION, 4374
      * "long ICAP_YNATIVERESOLUTION"
               ENUMERATOR, @ICAP_YNATIVERESOLUTION, 4375
      * "long ICAP_XRESOLUTION"
               ENUMERATOR, @ICAP_XRESOLUTION, 4376
      * "long ICAP_YRESOLUTION"
               ENUMERATOR, @ICAP_YRESOLUTION, 4377
      * "long ICAP_MAXFRAMES"
               ENUMERATOR, @ICAP_MAXFRAMES, 4378
      * "long ICAP_TILES"
               ENUMERATOR, @ICAP_TILES, 4379
      * "long ICAP_BITORDER"
               ENUMERATOR, @ICAP_BITORDER, 4380
      * "long ICAP_CCITTKFACTOR"
               ENUMERATOR, @ICAP_CCITTKFACTOR, 4381
      * "long ICAP_LIGHTPATH"
               ENUMERATOR, @ICAP_LIGHTPATH, 4382
      * "long ICAP_PIXELFLAVOR"
               ENUMERATOR, @ICAP_PIXELFLAVOR, 4383
      * "long ICAP_PLANARCHUNKY"
               ENUMERATOR, @ICAP_PLANARCHUNKY, 4384
      * "long ICAP_ROTATION"
               ENUMERATOR, @ICAP_ROTATION, 4385
      * "long ICAP_SUPPORTEDSIZES"
               ENUMERATOR, @ICAP_SUPPORTEDSIZES, 4386
      * "long ICAP_THRESHOLD"
               ENUMERATOR, @ICAP_THRESHOLD, 4387
      * "long ICAP_XSCALING"
               ENUMERATOR, @ICAP_XSCALING, 4388
      * "long ICAP_YSCALING"
               ENUMERATOR, @ICAP_YSCALING, 4389
      * "long ICAP_BITORDERCODES"
               ENUMERATOR, @ICAP_BITORDERCODES, 4390
      * "long ICAP_PIXELFLAVORCODES"
               ENUMERATOR, @ICAP_PIXELFLAVORCODES, 4391
      * "long ICAP_JPEGPIXELTYPE"
               ENUMERATOR, @ICAP_JPEGPIXELTYPE, 4392
      * "long ICAP_TIMEFILL"
               ENUMERATOR, @ICAP_TIMEFILL, 4394
      * "long ICAP_BITDEPTH"
               ENUMERATOR, @ICAP_BITDEPTH, 4395
      * "long ICAP_BITDEPTHREDUCTION"
               ENUMERATOR, @ICAP_BITDEPTHREDUCTION, 4396
      * "long ICAP_UNDEFINEDIMAGESIZE"
               ENUMERATOR, @ICAP_UNDEFINEDIMAGESIZE, 4397
      * "long ICAP_EXTIMAGEINFO"
               ENUMERATOR, @ICAP_EXTIMAGEINFO, 4399
      * "long ICAP_MINIMUMHEIGHT"
               ENUMERATOR, @ICAP_MINIMUMHEIGHT, 4400
      * "long ICAP_MINIMUMWIDTH"
               ENUMERATOR, @ICAP_MINIMUMWIDTH, 4401
      * "long ICAP_AUTODISCARDBLANKPAGES"
               ENUMERATOR, @ICAP_AUTODISCARDBLANKPAGES, 4404
      * "long ICAP_FLIPROTATION"
               ENUMERATOR, @ICAP_FLIPROTATION, 4406
      * "long ICAP_BARCODEDETECTIONENABLED"
               ENUMERATOR, @ICAP_BARCODEDETECTIONENABLED, 4407
      * "long ICAP_SUPPORTEDBARCODETYPES"
               ENUMERATOR, @ICAP_SUPPORTEDBARCODETYPES, 4408
      * "long ICAP_BARCODEMAXSEARCHPRIORITIES"
               ENUMERATOR, @ICAP_BARCODEMAXSEARCHPRIORITIES, 4409
      * "long ICAP_BARCODESEARCHPRIORITIES"
               ENUMERATOR, @ICAP_BARCODESEARCHPRIORITIES, 4410
      * "long ICAP_BARCODESEARCHMODE"
               ENUMERATOR, @ICAP_BARCODESEARCHMODE, 4411
      * "long ICAP_BARCODEMAXRETRIES"
               ENUMERATOR, @ICAP_BARCODEMAXRETRIES, 4412
      * "long ICAP_BARCODETIMEOUT"
               ENUMERATOR, @ICAP_BARCODETIMEOUT, 4413
      * "long ICAP_ZOOMFACTOR"
               ENUMERATOR, @ICAP_ZOOMFACTOR, 4414
      * "long ICAP_PATCHCODEDETECTIONENABLED"
               ENUMERATOR, @ICAP_PATCHCODEDETECTIONENABLED, 4415
      * "long ICAP_SUPPORTEDPATCHCODETYPES"
               ENUMERATOR, @ICAP_SUPPORTEDPATCHCODETYPES, 4416
      * "long ICAP_PATCHCODEMAXSEARCHPRIORITIES"
               ENUMERATOR, @ICAP_PATCHCODEMAXSEARCHPRIORITIES, 4417
      * "long ICAP_PATCHCODESEARCHPRIORITIES"
               ENUMERATOR, @ICAP_PATCHCODESEARCHPRIORITIES, 4418
      * "long ICAP_PATCHCODESEARCHMODE"
               ENUMERATOR, @ICAP_PATCHCODESEARCHMODE, 4419
      * "long ICAP_PATCHCODEMAXRETRIES"
               ENUMERATOR, @ICAP_PATCHCODEMAXRETRIES, 4420
      * "long ICAP_PATCHCODETIMEOUT"
               ENUMERATOR, @ICAP_PATCHCODETIMEOUT, 4421
      * "long ICAP_FLASHUSED2"
               ENUMERATOR, @ICAP_FLASHUSED2, 4422
      * "long ICAP_IMAGEFILTER"
               ENUMERATOR, @ICAP_IMAGEFILTER, 4423
      * "long ICAP_NOISEFILTER"
               ENUMERATOR, @ICAP_NOISEFILTER, 4424
      * "long ICAP_OVERSCAN"
               ENUMERATOR, @ICAP_OVERSCAN, 4425
      * "long ICAP_AUTOMATICBORDERDETECTION"
               ENUMERATOR, @ICAP_AUTOMATICBORDERDETECTION, 4432
      * "long ICAP_AUTOMATICDESKEW"
               ENUMERATOR, @ICAP_AUTOMATICDESKEW, 4433
      * "long ICAP_AUTOMATICROTATE"
               ENUMERATOR, @ICAP_AUTOMATICROTATE, 4434
      * "long ICAP_JPEGQUALITY"
               ENUMERATOR, @ICAP_JPEGQUALITY, 4435
      * "long ICAP_FEEDERTYPE"
               ENUMERATOR, @ICAP_FEEDERTYPE, 4436
      * "long ICAP_ICCPROFILE"
               ENUMERATOR, @ICAP_ICCPROFILE, 4437
      * "long ICAP_AUTOSIZE"
               ENUMERATOR, @ICAP_AUTOSIZE, 4438
      * "long ICAP_AUTOMATICCROPUSESFRAME"
               ENUMERATOR, @ICAP_AUTOMATICCROPUSESFRAME, 4439
      * "long ICAP_AUTOMATICLENGTHDETECTION"
               ENUMERATOR, @ICAP_AUTOMATICLENGTHDETECTION, 4440
      * "long ICAP_AUTOMATICCOLORENABLED"
               ENUMERATOR, @ICAP_AUTOMATICCOLORENABLED, 4441
      * "long ICAP_AUTOMATICCOLORNONCOLORPIXELTYPE"
               ENUMERATOR, @ICAP_AUTOMATICCOLORNONCOLORPIXELTYPE, 4442
      * "long ICAP_COLORMANAGEMENTENABLED"
               ENUMERATOR, @ICAP_COLORMANAGEMENTENABLED, 4443
      * "long ICAP_IMAGEMERGE"
               ENUMERATOR, @ICAP_IMAGEMERGE, 4444
      * "long ICAP_IMAGEMERGEHEIGHTTHRESHOLD"
               ENUMERATOR, @ICAP_IMAGEMERGEHEIGHTTHRESHOLD, 4445
      * "long ICAP_SUPPORTEDEXTIMAGEINFO"
               ENUMERATOR, @ICAP_SUPPORTEDEXTIMAGEINFO, 4446
          
      * enumTW_CAPTYPE
           CLASS @enumTW_CAPTYPE
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTW_CAPTYPE"
      * "long TWON_ARRAY"
               ENUMERATOR, @TWON_ARRAY, 3
      * "long TWON_ENUMERATION"
               ENUMERATOR, @TWON_ENUMERATION, 4
      * "long TWON_ONEVALUE"
               ENUMERATOR, @TWON_ONEVALUE, 5
      * "long TWON_RANGE"
               ENUMERATOR, @TWON_RANGE, 6
          
      * enumTW_TRANSFERMODE
           CLASS @enumTW_TRANSFERMODE
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTW_TRANSFERMODE"
      * "long TWSX_NATIVE"
               ENUMERATOR, @TWSX_NATIVE, 0
      * "long TWSX_FILE"
               ENUMERATOR, @TWSX_FILE, 1
      * "long TWSX_MEMORY"
               ENUMERATOR, @TWSX_MEMORY, 2
          
      * enumTW_FILEFORMAT
           CLASS @enumTW_FILEFORMAT
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTW_FILEFORMAT"
      * "long TWFF_TIFF"
               ENUMERATOR, @TWFF_TIFF, 0
      * "long TWFF_PICT"
               ENUMERATOR, @TWFF_PICT, 1
      * "long TWFF_BMP"
               ENUMERATOR, @TWFF_BMP, 2
      * "long TWFF_XBM"
               ENUMERATOR, @TWFF_XBM, 3
      * "long TWFF_JFIF"
               ENUMERATOR, @TWFF_JFIF, 4
      * "long TWFF_FPX"
               ENUMERATOR, @TWFF_FPX, 5
      * "long TWFF_TIFFMULTI"
               ENUMERATOR, @TWFF_TIFFMULTI, 6
      * "long TWFF_PNG"
               ENUMERATOR, @TWFF_PNG, 7
      * "long TWFF_SPIFF"
               ENUMERATOR, @TWFF_SPIFF, 8
      * "long TWFF_EXIF"
               ENUMERATOR, @TWFF_EXIF, 9
          
      * enumBORDER_STYLE
           CLASS @enumBORDER_STYLE
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumBORDER_STYLE"
      * "long None"
               ENUMERATOR, @None, 0
      * "long SingleFlat"
               ENUMERATOR, @SingleFlat, 1
      * "long Single3D"
               ENUMERATOR, @Single3D, 2
          
      * enumTIFFCompressionType
           CLASS @enumTIFFCompressionType
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTIFFCompressionType"
      * "long TIFF_AUTO"
               ENUMERATOR, @TIFF_AUTO, 0
      * "long TIFF_NONE"
               ENUMERATOR, @TIFF_NONE, 1
      * "long TIFF_RLE"
               ENUMERATOR, @TIFF_RLE, 2
      * "long TIFF_FAX3"
               ENUMERATOR, @TIFF_FAX3, 3
      * "long TIFF_T4"
               ENUMERATOR, @TIFF_T4, 3
      * "long TIFF_FAX4"
               ENUMERATOR, @TIFF_FAX4, 4
      * "long TIFF_T6"
               ENUMERATOR, @TIFF_T6, 4
      * "long TIFF_LZW"
               ENUMERATOR, @TIFF_LZW, 5
      * "long TIFF_PACKBITS"
               ENUMERATOR, @TIFF_PACKBITS, 32773
          
      * enumInterpolationMethod
           CLASS @enumInterpolationMethod
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumInterpolationMethod"
      * "long NearestNeighbour"
               ENUMERATOR, @NearestNeighbour, 1
      * "long Bilinear"
               ENUMERATOR, @Bilinear, 2
      * "long Bicubic"
               ENUMERATOR, @Bicubic, 3
          
      * enumTW_IMAGE_TYPE
           CLASS @enumTW_IMAGE_TYPE
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumTW_IMAGE_TYPE"
      * "long WEBTW_BMP"
               ENUMERATOR, @WEBTW_BMP, 0
      * "long WEBTW_JPG"
               ENUMERATOR, @WEBTW_JPG, 1
      * "long WEBTW_TIF"
               ENUMERATOR, @WEBTW_TIF, 2
      * "long WEBTW_PNG"
               ENUMERATOR, @WEBTW_PNG, 3
      * "long WEBTW_PDF"
               ENUMERATOR, @WEBTW_PDF, 4
          
      * enumPDFCompressionType
           CLASS @enumPDFCompressionType
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumPDFCompressionType"
      * "long enumAutoEncode"
               ENUMERATOR, @enumAutoEncode, 0
      * "long enumCCITTFax3Encode"
               ENUMERATOR, @enumCCITTFax3Encode, 1
      * "long enumCCITTFax4Encode"
               ENUMERATOR, @enumCCITTFax4Encode, 2
      * "long enumLZWEncode"
               ENUMERATOR, @enumLZWEncode, 3
      * "long enumRunLengthEncode"
               ENUMERATOR, @enumRunLengthEncode, 4
      * "long enumJPEGEncode"
               ENUMERATOR, @enumJPEGEncode, 5
          
      * enumBarcodeInfoType
           CLASS @enumBarcodeInfoType
               CLSID, 00000000-0000-0000-0000-000000000000
               NAME, "enumBarcodeInfoType"
      * "long enumBarcodeX"
               ENUMERATOR, @enumBarcodeX, 0
      * "long enumBarcodeY"
               ENUMERATOR, @enumBarcodeY, 1
      * "long enumBarcodeType"
               ENUMERATOR, @enumBarcodeType, 2
      * "long enumBarcodeConfidence"
               ENUMERATOR, @enumBarcodeConfidence, 3
      * "long enumBarcodeRotation"
               ENUMERATOR, @enumBarcodeRotation, 4
      * "long enumBarcodeTextLength"
               ENUMERATOR, @enumBarcodeTextLength, 5
          
      * Cancel Class
          
      * Cancel
           CLASS @Cancel
               CLSID, EFA17B25-7785-44AD-98CA-5E964BC17057
               NAME, "Cancel"
               DEFAULT-INTERFACE, "ICancel"
      *[Class: @Cancel] Cancelled
      * property Cancelled
               PROPERTY-GET, 1, @Cancelled
                       RETURNING "boolean", TYPE 11
      *[Class: @Cancel] Cancelled
      * property Cancelled
               PROPERTY-PUT, 1, @Cancelled,
                   "boolean (Property_Value)", TYPE 11
          
      * Addon Class
          
      * Addon
           CLASS @Addon
               CLSID, C3FD4963-89C2-4297-8994-A17075A0AD65
               NAME, "Addon"
               DEFAULT-INTERFACE, "IAddon"
      *[Class: @Addon] Barcode
      * property Barcode
               PROPERTY-GET, 1, @Barcode
                       RETURNING "VARIANT", TYPE 12
          
      * Barcode Class
          
      * Barcode
           CLASS @Barcode
               CLSID, 564AC459-4909-493C-A275-CBC1B02EBADC
               NAME, "Barcode"
               DEFAULT-INTERFACE, "IBarcode"
      *[Class: @Barcode] Read
      * method Read
               METHOD, 1, @Read,
                   "short" @sImageIndex, TYPE 2,
                   "int" @format, TYPE 22
                       RETURNING "VARIANT", TYPE 12
      *[Class: @Barcode] ReadAsync
      * method ReadAsync
               METHOD, 2, @ReadAsync,
                   "short" @sImageIndex, TYPE 2,
                   "int" @format, TYPE 22,
                   "VARIANT" @readBarcodeCompletedEventHandler, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @Barcode] ReadRect
      * method ReadRect
               METHOD, 3, @ReadRect,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "int" @format, TYPE 22
                       RETURNING "VARIANT", TYPE 12
      *[Class: @Barcode] ReadRectAsync
      * method ReadRectAsync
               METHOD, 4, @ReadRectAsync,
                   "short" @sImageIndex, TYPE 2,
                   "int" @left, TYPE 22,
                   "int" @top, TYPE 22,
                   "int" @right, TYPE 22,
                   "int" @bottom, TYPE 22,
                   "int" @format, TYPE 22,
                   "VARIANT" @readBarcodeCompletedEventHandler, TYPE 12
                       RETURNING "boolean", TYPE 11
      *[Class: @Barcode] GetLocalVersion
      * method GetLocalVersion
               METHOD, 5, @GetLocalVersion
                       RETURNING "BSTR", TYPE 8
      *[Class: @Barcode] Download
      * method Download
               METHOD, 6, @Download,
                   "BSTR" @RemoteFile, TYPE 8
                       RETURNING "boolean", TYPE 11
          
      * BarcodeResult Class
          
      * BarcodeResult
           CLASS @BarcodeResult
               CLSID, 35AA921A-8C14-449B-8A6E-C44CC1316E27
               NAME, "BarcodeResult"
               DEFAULT-INTERFACE, "IBarcodeResult"
      *[Class: @BarcodeResult] GetErrorCode
      * method GetErrorCode
               METHOD, 1, @GetErrorCode
                       RETURNING "long", TYPE 3
      *[Class: @BarcodeResult] GetErrorString
      * method GetErrorString
               METHOD, 2, @GetErrorString
                       RETURNING "BSTR", TYPE 8
      *[Class: @BarcodeResult] GetCount
      * method GetCount
               METHOD, 3, @GetCount
                       RETURNING "long", TYPE 3
      *[Class: @BarcodeResult] GetContent
      * method GetContent
               METHOD, 5, @GetContent,
                   "int" @Index, TYPE 22
                       RETURNING "BSTR", TYPE 8
      *[Class: @BarcodeResult] GetFormat
      * method GetFormat
               METHOD, 6, @GetFormat,
                   "int" @Index, TYPE 22
                       RETURNING "long", TYPE 3
      *[Class: @BarcodeResult] GetContentType
      * method GetContentType
               METHOD, 7, @GetContentType,
                   "int" @Index, TYPE 22
                       RETURNING "long", TYPE 3
      *[Class: @BarcodeResult] GetX1
      * method GetX1
               METHOD, 8, @GetX1,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @BarcodeResult] GetX2
      * method GetX2
               METHOD, 9, @GetX2,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @BarcodeResult] GetX3
      * method GetX3
               METHOD, 10, @GetX3,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @BarcodeResult] GetX4
      * method GetX4
               METHOD, 11, @GetX4,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @BarcodeResult] GetY1
      * method GetY1
               METHOD, 12, @GetY1,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @BarcodeResult] GetY2
      * method GetY2
               METHOD, 13, @GetY2,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @BarcodeResult] GetY3
      * method GetY3
               METHOD, 14, @GetY3,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4
      *[Class: @BarcodeResult] GetY4
      * method GetY4
               METHOD, 15, @GetY4,
                   "int" @Index, TYPE 22
                       RETURNING "single", TYPE 4

0 Likes
8 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: error creating ActiveX control

It appears that the Class is IAddon (not Addon). Typically once you instantiate the control (Display @DynamicWebTwain, you shouldn't need to display again,you typically use Modify to bring in the functions of the control. So first try and use IAddon and then try using Modify @IAddon and see if the error continues.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: error creating ActiveX control

Thank you for your reply shjerpe. I am not so good in translating this kind of code so if you could help with the syntax I would be very greatful.

I need the handle for @Iaddon and @Ibarcode and I thought this would be done by using the display statement.

The function I need is the @Read statement which gives the content of a barcode.

          CLASS @IBarcode

              CLSID, CC48C3D2-8F84-4011-BD6D-A8D2F42384B4

              NAME, "IBarcode"

     *[Class: @IBarcode] Read

     * method Read

              METHOD, 1, @Read,

                  "short" @sImageIndex, TYPE 2,

                  "int" @format, TYPE 22

                      RETURNING "VARIANT", TYPE 12

Can you help me with this?

Regards

André

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: error creating ActiveX control

I'll try, but this is a complicated control. Does the vendor fr the control provide any VB or C or C# examples.

77  H-Barcode  handle of @Barcode.

try

77  H-Barcode  handle of @IBarcode.

I wonder if you need this line of code  DISPLAY @DynamicWebTwain - comment it out and

DISPLAY @IBarcode

                     line 2  col 2  lines 10  size 30

                     license-key " "

                     handle in H-Barcode

modify H-Barcode "@Read"  (() returning my-val

you'll actually need to put item in the ()  a short and an int to match what the function is expecting.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: error creating ActiveX control

Hello shjerpe,

I tried

77  H-Barcode  handle of @IBarcode. and this works

So I have the handle for @Ibarcode and @Iaddon

           inquire H-DynamicWebTwain @addon IN h-addon.

           inquire h-addon @Barcode IN h-barcode.

So far so good. But when I want to read the barcode or find out how many barcodes there are (Barcodecount) I get no result

They have samples which are written in HTML&JS

<!DOCTYPE html>
<html>
<head>
    <title>Use Dynamic Web TWAIN to read Barcode</title>
    <script type="text/javascript" src="Resources/dynamsoft.webtwain.initiate.js"> </script>
    <script type="text/javascript" src="Resources/dynamsoft.webtwain.config.js"> </script>
</head>

<body>
    <input type="button" value="Scan" onclick="AcquireImage();" />
    <input type="button" value="Load" onclick="LoadImage();" /><br />
    <select size="1" id="barcodeformat" style="position: relative; width: 220px;"></select>
    <input type="button" value="Read Barcode" onclick="ReadBarcode();" />

    <!-- dwtcontrolContainer is the default div id for Dynamic Web TWAIN control.
         If you need to rename the id, you should also change the id in the dynamsoft.webtwain.config.js accordingly. -->
    <div id="dwtcontrolContainer"></div>

    <script type="text/javascript">
        Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady); // Register OnWebTwainReady event. This event fires as soon as Dynamic Web TWAIN is initialized and ready to be used

        var DWObject;

        function Dynamsoft_OnReady() {
            DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); // Get the Dynamic Web TWAIN object that is embeded in the div with id 'dwtcontrolContainer'
            if (DWObject) {//Currently only code 39 and code 128 are supported
                document.getElementById("barcodeformat").options.add(new Option("Code 39", 1));
                document.getElementById("barcodeformat").options.add(new Option("Code 128", 0));
            }
        }

        function AcquireImage() {
            if (DWObject) {
                DWObject.SelectSource();
                DWObject.OpenSource();
                DWObject.IfDisableSourceAfterAcquire = true; // Scanner source will be disabled/closed automatically after the scan.
                DWObject.AcquireImage();
            }
        }

        //Callback functions for async APIs
        function OnSuccess() {
            console.log('successful');
        }

        function OnFailure(errorCode, errorString) {
            alert(errorString);
        }

        function LoadImage() {
            if (DWObject) {
                DWObject.IfShowFileDialog = true; // Open the system's file dialog to load image
                DWObject.LoadImageEx("", EnumDWT_ImageType.IT_ALL, OnSuccess, OnFailure); // Load images in all supported formats (.bmp, .jpg, .tif, .png, .pdf). OnSuccess or OnFailure will be called after the operation
            }
        }
       
        function GetBarcodeInfo(sImageIndex, result) {//This is the function called when barcode is read successfully
            //Retrieve barcode details
            var count = result.GetCount();
            if (count == 0) {
                alert("The barcode for the selected format is not found.");
                return;
            } else {
                for (i = 0; i < count; i++) {
                    var text = result.GetContent(i);
                    var x = result.GetX1(i);
                    var y = result.GetY1(i);
                    var format = result.GetFormat(i);
                    var barcodeText = ("barcode[" + (i + 1) + "]: " + text + "\n");
                    barcodeText += ("format:" + (format==4?"Code 39":"Code 128") + "\n");
                    barcodeText += ("x: " + x + " y:" + y + "\n");
                    alert(barcodeText);
                }
            }
        }

        function GetErrorInfo (errorcode, errorstring) {//This is the function called when barcode reading fails
            alert(errorstring);
        }
       
        function ReadBarcode() {
            if (DWObject) {
                if (DWObject.HowManyImagesInBuffer == 0) {
                    alert("Please scan or load an image first.");
                    return;
                }
                //Get barcode result.
                switch (document.getElementById("barcodeformat").selectedIndex) {
                    case 0:
                        result = DWObject.Addon.Barcode.Read(
                            DWObject.CurrentImageIndexInBuffer, EnumDWT_BarcodeFormat.CODE_39, GetBarcodeInfo, GetErrorInfo);
                        break;
                    case 1:
                        result = DWObject.Addon.Barcode.Read(
                            DWObject.CurrentImageIndexInBuffer, EnumDWT_BarcodeFormat.CODE_128, GetBarcodeInfo, GetErrorInfo);
                        break;
                    default:
                        break;
                }
            }
        }
    </script>
</body>
</html>

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: error creating ActiveX control

I apologize. I've provided as much as I know. I'm sure there is a way the control gathers the info to do the read but it is beyond my skills. - Steve

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: error creating ActiveX control

Ok Steve thank you for your help.

I got a little bit further in my search. The next line returns a value in w-var-variant.

But when I want to use C$GETVARIANT it says Invalid or missing parameter to "C$GETVARIANT"

 modify H-Barcode  @Read (

                    by name  sImageIndex  1

                    by name  format  16)

                    Returning W-Var-variant.

  call "C$GETVARIANT" using W-Var-VARIANT, w-var-text

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: error creating ActiveX control

Is W-Var-variant defined in linkage as usage handle?

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: error creating ActiveX control

Hello Steve,

I gave up on this control. I found another one from viscomsoft and I got it working in a few hours.

Anyway thanks for your help

André

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.