soukoku / ntwain

A TWAIN lib for dotnet.
MIT License
117 stars 47 forks source link

Close Twain UI from code? #51

Closed mikebm closed 7 months ago

mikebm commented 7 months ago

Hello. Am using this library with some success but I have a use case where Enable is called with show UI. I have a cancellation token that when cancelled will need to close the Twain UI. I figured some method of sending a WM_CLOSE call to the thread but haven't had any luck. Anyone know how to accomplish this? Thanks

mikebm commented 7 months ago

disabling the source does this.