DTwainInterface::StartSession |
Top Previous Next |
Syntax DTwainInterface& DTwainInterface::StartSession( HWND hTwainWnd=NULL, const std::string szTwain = "" );
Parameters hTwainWnd Handle to the TWAIN window.
szTwain TWAIN Source Manager file name
Return Value Returns reference to the current DTwainInterface object (*this).
Comments Call DTwainInterface::StartSession function to start a TWAIN session. If hTwainWnd is NULL, DTWAIN will internally create a window that will capture the TWAIN messages. If szTwain is an empty string, DTWAIN uses the default name for the TWAIN Source Manager DLL.
Alternately, a Twain session can be started on construction of the DTwainInterface object.
|