Commit Graph
100 Commits
Author SHA1 Message Date
Eugene Wang f3e9907dfc Merge pull request #71 from SteffenSH/v4-fixed-DetatchAsync
Fix: CloseDSMAsync() hang in TwainAppSession
2025-09-18 05:44:12 -04:00
Eugene Wang 83ab3d5f0a Remove net6 build. 2025-06-24 21:33:53 -04:00
Eugene Wang 81c8544691 Fix customdsdata property always returning null. 2025-04-24 14:15:47 -04:00
Eugene Wang 439af52300 Try to fix range value reader. 2025-03-09 18:52:44 -04:00
Eugene Wang 22fd782d27 A few more kds caps. 2025-03-09 13:53:19 -04:00
Eugene Wang 07cd106ff0 Added some kds custom caps. 2025-03-09 13:19:11 -04:00
Eugene Wang d71448bdbb Add placeholder for KDS caps. 2025-03-09 12:36:15 -04:00
Eugene Wang 0860e6534b Tried to add KDS custom structs. 2025-03-09 10:10:29 -04:00
Eugene Wang c8ee66a828 Try to put KDS values in own namespace and enum. 2025-03-09 08:55:45 -04:00
Eugene Wang 5c15ec3711 Check for empty path in TryLoadCustomDSM. 2025-03-05 08:54:45 -05:00
Eugene Wang 6b35b1735d Timing hack for file transfer. 2025-02-19 06:47:37 -05:00
Eugene Wang 69d90aa945 Test kodak SDMI. 2025-02-18 17:04:38 -05:00
Eugene Wang 62eaa6083a Some kodak values for use with its SDMI flow. 2025-02-18 15:24:55 -05:00
Eugene Wang e3dfa8f4dd Add method to set filexfer options on xferready event. 2025-02-15 18:39:13 -05:00
Eugene Wang b2fe1c1bcd Added image saving and time log to console tester. 2025-02-11 16:55:05 -05:00
Eugene Wang f205d73f64 Add xfermech info to transfer ready event. 2025-02-11 16:40:05 -05:00
Eugene Wang e107a927b3 Add dotnet 9 target. 2025-02-11 16:39:02 -05:00
Eugene Wang 5ec2118ef2 change dontcare pendingxfers to static method. 2024-10-10 23:18:43 -04:00
Eugene Wang de017f3439 Expose wndproc hook method and test reset TW_PENDINGXFERS before use. 2024-10-10 11:06:27 -04:00
Eugene Wang cea9a990b9 Lib version bumps and change net7 to net8. 2024-07-12 08:19:55 -04:00
Eugene Wang 474b066bd0 Added parameterless ctor for TwainAppSession. 2023-04-28 08:53:51 -04:00
Eugene Wang f25587cab2 Reduced ctors for TwainAppSession. 2023-04-28 08:15:53 -04:00
Eugene Wang d68e9800ba Version bump to alpha.3 2023-04-15 07:19:44 -04:00
Eugene Wang ba76de99c6 Merge pull request #44 from soukoku/internal-thread-test
Integrated message thread inside TwainAppSession
2023-04-15 06:34:21 -04:00
Eugene Wang 1364150697 Integrated message thread inside TwainAppSession as a different OpenDSM method. 2023-04-15 06:33:12 -04:00
Eugene Wang ef881784a6 Merge pull request #43 from soukoku/internal-thread-test
Added a msg loop thread option for windows.
2023-04-14 07:18:28 -04:00
Eugene Wang 0e5aef00e5 Changed ManualResetEventSlim to TaskCompletionSource in pump thread attach. 2023-04-14 07:13:07 -04:00
Eugene Wang 54d73eb42c Added old console sample to test diy message pump. 2023-04-13 22:52:04 -04:00
Eugene Wang 502013ee57 Experiment with a winform-based msg pump. 2023-04-13 22:19:05 -04:00
Eugene Wang 24d4471e0f Merge pull request #42 from soukoku/known-caps-test
Bring back cap wrapper idea from previous versions
2023-04-12 21:45:49 -04:00
Eugene Wang 6e26b7a009 Tried to make a cap wrapper property on spec-defined caps. 2023-04-12 21:42:30 -04:00
Eugene Wang 232aa93e6e Add reset on cancel so sample ds works. 2023-04-12 18:57:15 -04:00
Eugene Wang 1873ad31a0 Trying to resurrect my old cap wrapper. 2023-04-12 08:50:18 -04:00
Eugene Wang 4d8da799c0 Some more QoL and sample process options. 2023-04-11 08:21:49 -04:00
Eugene Wang f58bf3c620 Merge pull request #40 from soukoku/v4-support-bg-handling
Some more unverified tw_info reads ideas.
2023-04-10 22:21:24 -04:00
Eugene Wang 2fd5f056e3 Some more unverified tw_info reads ideas. 2023-04-10 22:17:17 -04:00
Eugene Wang d4238f56fb Merge pull request #39 from soukoku/v4-support-bg-handling
Added possibility to handle transferred data by app in another thread…
2023-04-10 20:44:16 -04:00
Eugene Wang fa88dd4d1f Added possibility to handle transferred data by app in another thread for high-speed scanner use. 2023-04-10 20:42:41 -04:00
Eugene Wang b89c186987 Some quality of life improvements. 2023-04-10 19:47:01 -04:00
Eugene Wang 88458c0d7d Fixed broken link and typo. 2023-04-10 18:45:09 -04:00
Eugene Wang 9cd20f3e62 Changed to use SynchronizationContext instead of the DIY threadmarshaller. 2023-04-10 08:02:38 -04:00
Eugene Wang 4b337f036e Experiment with only transferring data in background thread to work with bad sources. 2023-04-09 23:30:06 -04:00
Eugene Wang 902cf844df Merge pull request #38 from soukoku/v4-libraryimport
Added net7 targets and uses LibraryImport on them for pinvokes.
2023-04-09 22:39:37 -04:00
Eugene Wang 3d82558af6 Some fixes for bad sources. 2023-04-09 22:35:15 -04:00
Eugene Wang 3424a580fe Added net7 targets and uses LibraryImport on them for pinvokes. 2023-04-09 21:16:30 -04:00
Eugene Wang 64268b3a27 alpha2 version bump. 2023-04-09 18:03:57 -04:00
Eugene Wang dcc2c8b862 Add show UI checkbox to sample. 2023-04-09 18:03:42 -04:00
Eugene Wang fe89e661fc V4 add extimginfo (#37)
* Added my old struct size tester cpp proj.
* Added transfercanceled event like PR #35.
* Renamed datatransferred event.
* Idea for getting EXT_IMAGEINFO in transferred event.
* Renamed twain const and platform classes to shorter name.
* First attempt at reading TW_INFO, probably not correct.
2023-04-09 17:52:23 -04:00
Eugene Wang a0da65dcca Delete old files. 2023-04-08 19:46:54 -04:00
Eugene Wang 6fad6af280 Updated readme. 2023-04-08 19:34:57 -04:00
Eugene Wang 2474fbf74d Fixed wrong assumption of rented array size and added example of using non system.drawing image lib. 2023-04-08 18:38:51 -04:00
Eugene Wang 29a8031817 Missed customdsdata map. 2023-04-08 15:37:50 -04:00
Eugene Wang 9486fc8cce Used mapping to get cap current/default values with names! 2023-04-08 15:35:08 -04:00
Eugene Wang 7acbdb5e41 Added cap enum map idea. 2023-04-08 15:20:38 -04:00
Eugene Wang f015e82682 Checked for rc in prepre mem xfer calls now. 2023-04-08 13:41:20 -04:00
Eugene Wang c0eb79310f Changed to handle end xfer code only once. 2023-04-08 12:35:42 -04:00
Eugene Wang 633e8b1236 Moved DetermineBufferSize() to TW_SETUPMEMXFER 2023-04-08 12:18:01 -04:00
Eugene Wang 830dc8cd9b Updated mem file xfer with right buffer size and osx calls. 2023-04-08 12:07:30 -04:00
Eugene Wang 558dad90a1 Attempt on porting previous memfilexfer. 2023-04-08 11:43:54 -04:00
Eugene Wang 945a078f9a fix moar xmldoc warning. 2023-04-08 08:30:58 -04:00
Eugene Wang 250788047c Progress in memory xfers. 2023-04-08 08:22:58 -04:00
Eugene Wang 668066cd2b Progress in file xfers. 2023-04-08 07:03:30 -04:00
Eugene Wang 443419ff64 Attempt on file xfer. 2023-04-07 23:07:44 -04:00
Eugene Wang 54c7fc1d50 Fixed some warnings. 2023-04-07 22:20:42 -04:00
Eugene Wang 6fff04fc65 Added optional encoding param to STR conversions. 2023-04-07 21:31:39 -04:00
Eugene Wang 0a7ff8b140 Tweak double buffer use in sample. 2023-04-07 21:20:57 -04:00
Eugene Wang ebe277e614 Tweak native memory image getter. 2023-04-07 21:20:41 -04:00
Eugene Wang 416c3a80b0 Typos and debug msg updates. 2023-04-07 20:39:14 -04:00
Eugene Wang c29f4944e9 Resurrected previous cap value writer from twaincs. 2023-04-07 20:11:26 -04:00
Eugene Wang 60ef4c144b Added more event debug logs in sample. 2023-04-07 08:39:08 -04:00
Eugene Wang 20df6fc74c Ported old native image xfer with shared buffer test. 2023-04-07 08:25:39 -04:00
Eugene Wang 242e3eba15 Progress on transfer logic. 2023-04-06 22:47:47 -04:00
Eugene Wang fd44d9dddb Added attempt on cap grid listing. 2023-04-06 20:36:27 -04:00
Eugene Wang 0bef2e8374 Attempt on reading string for label/help text. 2023-04-06 08:50:03 -04:00
Eugene Wang 9145ea1851 Added a few more easy cap value read overloads. 2023-04-06 08:12:20 -04:00
Eugene Wang f7a3cc699e Wrap event calls in try-catch to prevent consumers from breaking flow. 2023-04-06 07:18:10 -04:00
Eugene Wang e4a6d8d8d3 DBG break if ever encounters drivers with cap label support. 2023-04-05 23:02:13 -04:00
Eugene Wang 13521c71d6 Update language encoding after certain calls. 2023-04-05 22:46:50 -04:00
Eugene Wang ab2947d03b Attempt to read cap values. 2023-04-05 21:59:50 -04:00
Eugene Wang 513dc96f64 Added local 2.5 dsm to samples in case system doesn't have it. 2023-04-05 18:53:55 -04:00
Eugene Wang 5fa6edab28 Fix some build warnings. 2023-04-05 07:53:10 -04:00
Eugene Wang 9d0770a2ef Add 64bit tester and fixed version # in builds by switching to v6 sdk. 2023-04-05 07:29:06 -04:00
Eugene Wang f48c731aad More ready event in xfer logic. 2023-04-04 22:53:05 -04:00
Eugene Wang a2c4d5a455 Experiment with pooled xfer buffer. 2023-04-04 22:22:02 -04:00
Eugene Wang 059b8dd60e Resurrected metrics and twaindirect task calls. 2023-04-04 22:21:40 -04:00
Eugene Wang 9e59e2355d Start resurrecting old value reader/writer. 2023-04-04 08:17:46 -04:00
Eugene Wang 5678fd3e77 Renamed TwainSession to TwainAppSession. I love renaming things. 2023-04-04 07:48:07 -04:00
Eugene Wang 946238c308 Made my own STS struct instead of the combined enum. 2023-04-04 06:53:19 -04:00
Eugene Wang aea7ff4f05 Started on caps support. 2023-04-03 23:06:10 -04:00
Eugene Wang a12abe7ab6 Testing a basic xfer loop. 2023-04-03 21:25:41 -04:00
Eugene Wang 0f0f613ced Msg loop filter tweaks. 2023-04-03 06:35:03 -04:00
Eugene Wang eee811df14 Cleanup unnecessary packages. 2023-04-02 22:55:50 -04:00
Eugene Wang acfbec6a38 Added twaindirect call. 2023-04-02 22:48:17 -04:00
Eugene Wang 679a00818a Experimenting with bg thread processing. 2023-04-02 22:36:58 -04:00
Eugene Wang 84251a6a5e Added winform/wpf reg methods 2023-04-02 21:45:48 -04:00
Eugene Wang 16aaf25f10 Test winform integration. 2023-04-02 21:15:10 -04:00
Eugene Wang 4e336ff110 Extracted used parts of nativemethods. 2023-04-02 20:05:18 -04:00
Eugene Wang e67c6af195 Add rest of DG image triplets. 2023-04-02 19:31:10 -04:00
Eugene Wang 0d75d44d30 Tried to generate linux DSM files. 2023-04-02 18:02:34 -04:00
Eugene Wang 5bd4a42015 Using template to generate DSM classes like I should've done. 2023-04-02 17:44:36 -04:00