// TwnConfig.h : main header file for the TWNCONFIG application // #if !defined(AFX_TWNCONFIG_H__B6EE0E98_D076_44CF_BE4C_33C10099DC4E__INCLUDED_) #define AFX_TWNCONFIG_H__B6EE0E98_D076_44CF_BE4C_33C10099DC4E__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CTwainConfigApp: // See TwnConfig.cpp for the implementation of this class // class CTwainConfigApp : public CWinApp { public: CTwainConfigApp(); void StartLogFile(CString csFileName); void EndLogFile(pFASTCONFIG pBestConfig); void WriteConfig(pFASTCONFIG pConfigs, L_BOOL bBest = FALSE); void ShowConfigsResult(pFASTCONFIG pConfigs, L_INT nConfigsCount, pFASTCONFIG pBestConfig); L_BOOL OpenLogFile(CString csFileName); L_BOOL OpenDatFile(CString csFileName); void CloseDatFile(); void WriteConfigsToDatFile(pFASTCONFIG pConfigs, L_INT nConfigsCount); L_BOOL GetWorkingConfigs(CString csDatFile, L_BOOL bAuto); L_BOOL ReadFileConfigs(CString csDatFileName, CString csDatFileNameNum); void ParseBuffer(CStdioFile * pStdFile, L_TCHAR *pszBuffer, pFASTCONFIG * ppConfigs, L_INT *pnConfigsCount); L_BOOL GetConfiguration(L_TCHAR * pszLine, pFASTCONFIG pConfig); void CopyConfigurations(pFASTCONFIG pDstConfigs, pFASTCONFIG pSrcConfigs, L_INT nSrcConfigsCount, L_INT nIgnoreConfigsCount); L_INT TestManualConfiguration(); void ParseBestConfig(L_TCHAR * pszBuffer, L_INT * pnTestConfigsCount); L_BOOL GetScannerBPP(); void GetTransferName(pFASTCONFIG pConfig, CString & csName); void GetFormatName(pFASTCONFIG pConfig, CString & csName); void ErrorMsgBox(L_INT nErrorCode); void GetSelectScannerName(); L_BOOL WriteDATCFile(); void SkipConfiguration(); void TestFastConfig(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTwainConfigApp) public: virtual BOOL InitInstance(); virtual int ExitInstance(); //}}AFX_VIRTUAL HTWAINSESSION m_hSession; L_BOOL m_bStartNegs; L_BOOL m_bSetConfigs; CString m_csTwnSourceName; CString m_csTwnFamilyName; CString m_csTwnManufacturerName; CString m_csDatFileNameNum; CString m_csDatFileName; CString m_csLogFileName; CString m_csWorkingFolder; L_INT m_nBPP; L_INT m_nBufferIter; FASTCONFIG m_BestConfig; pFASTCONFIG m_pInFastConfigs; L_INT m_nInFastConfigsCount; CStdioFile *m_pStdFile; CStdioFile *m_pDatStdFile; L_BOOL m_bUseThreadMode; L_BOOL m_bUseAllBPP; L_INT m_nTestConfigCount; L_INT m_nAllBPPCount; L_INT *m_pnBPP; CString m_csTutorialPath; L_BOOL m_bFillDATC; L_BOOL m_bScanConfigs; L_UINT m_uFlags; L_INT m_nScannedPageCount; DWORD m_dwStartTickCount; DWORD m_dwEndTickCount; L_UINT * m_pTime; L_INT m_nTimeLen; // Implementation //{{AFX_MSG(CTwainConfigApp) afx_msg void OnAppAbout(); afx_msg void OnConfigurationAutoScan(); afx_msg void OnConfigurationManualScan(); afx_msg void OnConfigurationContinueStoppedScan(); afx_msg void OnConfigurationOptions(); afx_msg void OnUpdateConfigurationAutoscan(CCmdUI* pCmdUI); afx_msg void OnUpdateConfigurationManualscan(CCmdUI* pCmdUI); afx_msg void OnHelpUtilityInstructions(); afx_msg void OnToolsUploadDATCFile(); afx_msg void OnUpdateToolsUploadDATCFile(CCmdUI* pCmdUI); afx_msg void OnUpdateConfigurationContinuestoppedscan(CCmdUI* pCmdUI); afx_msg void OnUpdateConfigurationOptions(CCmdUI* pCmdUI); afx_msg void OnUpdateAppExit(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TWNCONFIG_H__B6EE0E98_D076_44CF_BE4C_33C10099DC4E__INCLUDED_)