AppInstance.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
- #ifndef _APPINSTANCE_H
- #define _APPINSTANCE_H
- //Agent资源dbfiles.data内部附加文件长度定义
- #define _szFilename 128
- #define _szFilesize 8
- #define _szExtraFileCount 3
- #define MASS_BLOCK_SIZE 8096
- class CAppInstance
- {
- public:
- CAppInstance();
- virtual ~CAppInstance();
- BOOL Exists();
- //initializing system environment.
- //for example : creating system directory,
- // extracting system files from applicaton's resource and so on.
- BOOL InitApp(void);
- void UnInitApp(void);
- public:
- char m_sModuleFile[MAX_PATH]; //系统所对应的程序文件全路径
- CGuiConnection m_adoconn; //system ado connection object.
- bool m_binadminmode; //标志当前用户是否处于管理员模式
- AUTHORINFO m_authorinfo; //如果m_binadminmode=true则保存
- //当前管理员的用户名和密码(DES加密内容)
- char m_sHDID[32]; //当前用户硬盘ID号.
- protected:
- BOOL SysFirstInit(void);
- BOOL ExtractAllFileFromAG(LPCSTR lpcsSrcFilename, LPCSTR lpcsDestDir);
- private:
- HANDLE m_hAppMutex;
- };
- #endif // _APPINSTANCE_H