Ejemplo n.º 1
0
 private static extern UInt16 WindowsTwaindsmDsmEntryEvent
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_EVENT twevent
 );
Ejemplo n.º 2
0
 private static extern UInt16 LinuxDsmEntryPalette8
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_PALETTE8 twpalette8
 );
Ejemplo n.º 3
0
 /// <summary>
 /// Our callback delegate for Linux...
 /// </summary>
 /// <param name="origin">Origin of message</param>
 /// <param name="dest">Message target</param>
 /// <param name="dg">Data group</param>
 /// <param name="dat">Data argument type</param>
 /// <param name="msg">Operation</param>
 /// <param name="twnull">NULL pointer</param>
 /// <returns>TWAIN status</returns>
 private UInt16 LinuxDsmEntryCallbackProxy
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     IntPtr twnull
 )
 {
     ProcessEvent(msg);
     return ((UInt16)STS.SUCCESS);
 }
Ejemplo n.º 4
0
 private static extern UInt16 WindowsTwaindsmDsmEntryImagememfilexfer
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_IMAGEMEMXFER twimagememxfer
 );
Ejemplo n.º 5
0
 private static extern UInt16 LinuxDsmEntryImagenativexfer
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref IntPtr intptrBitmap
 );
Ejemplo n.º 6
0
 private static extern UInt16 LinuxDsmEntryIccprofile
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_MEMORY twmemory
 );
Ejemplo n.º 7
0
 private static extern UInt16 LinuxDsmEntryImageinfo
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_IMAGEINFO twimageinfo
 );
Ejemplo n.º 8
0
 private static extern UInt16 LinuxDsmEntryPendingxfers
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_PENDINGXFERS twpendingxfers
 );
Ejemplo n.º 9
0
 private static extern UInt16 WindowsTwaindsmDsmEntrySetupfilexfer
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_SETUPFILEXFER twsetupfilexfer
 );
Ejemplo n.º 10
0
 private static extern UInt16 LinuxDsmEntryParent
 (
     ref TW_IDENTITY_LEGACY origin,
     IntPtr dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref IntPtr hwnd
 );
Ejemplo n.º 11
0
 private static extern UInt16 LinuxDsmEntryPassthru
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_PASSTHRU twpassthru
 );
Ejemplo n.º 12
0
 private static extern UInt16 LinuxDsmEntryIdentity
 (
     ref TW_IDENTITY_LEGACY origin,
     IntPtr dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_IDENTITY_LEGACY twidentity
 );
Ejemplo n.º 13
0
 private static extern UInt16 LinuxDsmEntryFilesystem
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_FILESYSTEM twfilesystem
 );
Ejemplo n.º 14
0
 private static extern UInt16 LinuxDsmEntryEntrypoint
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_ENTRYPOINT twentrypoint
 );
Ejemplo n.º 15
0
 private static extern UInt16 LinuxDsmEntryFilter
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_FILTER twfilter
 );
Ejemplo n.º 16
0
 private static extern UInt16 LinuxDsmEntrySetupmemxfer
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_SETUPMEMXFER twsetupmemxfer
 );
Ejemplo n.º 17
0
 private static extern UInt16 LinuxDsmEntryGrayresponse
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_GRAYRESPONSE twgrayresponse
 );
Ejemplo n.º 18
0
 private static extern UInt16 WindowsTwaindsmDsmEntryStatus
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_STATUS twstatus
 );
Ejemplo n.º 19
0
 private static extern UInt16 LinuxDsmEntryImagefilexfer
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     IntPtr twmemref
 );
Ejemplo n.º 20
0
 private static extern UInt16 LinuxDsmEntryStatusutf8
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_STATUSUTF8 twstatusutf8
 );
Ejemplo n.º 21
0
 private static extern UInt16 LinuxDsmEntryImagelayout
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_IMAGELAYOUT twimagelayout
 );
Ejemplo n.º 22
0
 private static extern UInt16 LinuxDsmEntryUserinterface
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_USERINTERFACE twuserinterface
 );
Ejemplo n.º 23
0
 private static extern UInt16 LinuxDsmEntryImagememxfer
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_IMAGEMEMXFER twimagememxfer
 );
Ejemplo n.º 24
0
 private static extern UInt16 LinuxDsmEntryXfergroup
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref UInt32 twuint32
 );
Ejemplo n.º 25
0
 private static extern UInt16 LinuxDsmEntryJpegcompression
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_JPEGCOMPRESSION twjpegcompression
 );
Ejemplo n.º 26
0
 private static extern UInt16 LinuxDsmEntryCiecolor
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_CIECOLOR twciecolor
 );
Ejemplo n.º 27
0
 private static extern UInt16 LinuxDsmEntryRgbresponse
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_RGBRESPONSE twrgbresponse
 );
Ejemplo n.º 28
0
 private static extern UInt16 WindowsTwaindsmDsmEntryExtimageinfo
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_EXTIMAGEINFO twextimageinfo
 );
Ejemplo n.º 29
0
 /// <summary>
 /// Convert a legacy identity to a public identity...
 /// </summary>
 /// <param name="a_twidentitylegacy">Legacy identity to convert</param>
 /// <returns>Regular form of identity</returns>
 private TW_IDENTITY TwidentitylegacyToTwidentity(TW_IDENTITY_LEGACY a_twidentitylegacy)
 {
     TW_IDENTITY twidentity = new TW_IDENTITY();
     twidentity.Id = a_twidentitylegacy.Id;
     twidentity.Manufacturer = a_twidentitylegacy.Manufacturer;
     twidentity.ProductFamily = a_twidentitylegacy.ProductFamily;
     twidentity.ProductName = a_twidentitylegacy.ProductName;
     twidentity.ProtocolMajor = a_twidentitylegacy.ProtocolMajor;
     twidentity.ProtocolMinor = a_twidentitylegacy.ProtocolMinor;
     twidentity.SupportedGroups = a_twidentitylegacy.SupportedGroups;
     twidentity.Version.Country = a_twidentitylegacy.Version.Country;
     twidentity.Version.Info = a_twidentitylegacy.Version.Info;
     twidentity.Version.Language = a_twidentitylegacy.Version.Language;
     twidentity.Version.MajorNum = a_twidentitylegacy.Version.MajorNum;
     twidentity.Version.MinorNum = a_twidentitylegacy.Version.MinorNum;
     return (twidentity);
 }
Ejemplo n.º 30
0
 private static extern UInt16 LinuxDsmEntryDeviceevent
 (
     ref TW_IDENTITY_LEGACY origin,
     ref TW_IDENTITY_LEGACY dest,
     DG dg,
     DAT dat,
     MSG msg,
     ref TW_DEVICEEVENT twdeviceevent
 );