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 );
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 );
/// <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); }
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 );
private static extern UInt16 LinuxDsmEntryImagenativexfer ( ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest, DG dg, DAT dat, MSG msg, ref IntPtr intptrBitmap );
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 );
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 );
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 );
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 );
private static extern UInt16 LinuxDsmEntryParent ( ref TW_IDENTITY_LEGACY origin, IntPtr dest, DG dg, DAT dat, MSG msg, ref IntPtr hwnd );
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 );
private static extern UInt16 LinuxDsmEntryIdentity ( ref TW_IDENTITY_LEGACY origin, IntPtr dest, DG dg, DAT dat, MSG msg, ref TW_IDENTITY_LEGACY twidentity );
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 );
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 );
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 );
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 );
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 );
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 );
private static extern UInt16 LinuxDsmEntryImagefilexfer ( ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest, DG dg, DAT dat, MSG msg, IntPtr twmemref );
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 );
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 );
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 );
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 );
private static extern UInt16 LinuxDsmEntryXfergroup ( ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest, DG dg, DAT dat, MSG msg, ref UInt32 twuint32 );
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 );
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 );
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 );
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 );
/// <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); }
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 );