Opens the Twain Data Source manager. This must be done before calling many other Twain functions.
Synopsis
error = TwainOpenDSM(Window)
Args
Window is a handle to a REXX GUI window. Typically, this will be your main window, and you will pass the value of its GuiWindow variable after your main window has been created with GuiCreateWindow, and twain support has been enabled with GuiWindowDefaults 'TWAIN' option.
Returns
An empty string if the data source manager is successfully opened, or an error code not.
Notes
TwainInit should be called before opening the Data Source Manager.
If you wish to change the window that receives twain signals, you should first call TwainCloseDSM to close the data source manager, then call TwainOpenDSM again, passing the handle to the desired window.