FileObject.h
资源名称:BAV.v2.rar [点击查看]
上传用户:chaoyu
上传日期:2013-04-28
资源大小:18k
文件大小:1k
源码类别:
杀毒
开发平台:
Visual C++
- #pragma once
- #include "ScanObject.h"
- class CFileObject :
- public CScanObject
- {
- protected:
- HANDLE m_hFile;
- DWORD m_dwObjSize;
- public:
- CFileObject(void);
- CFileObject(CFileObject& cFileObj);
- ~CFileObject(void);
- CString m_strObjName;
- bool SetObjectName(CString* pstrName);
- PCSTR GetObjectName();
- bool Open(IN bool bScan=true);
- bool Close();
- bool Compare(IN INT nOffset, IN INT nSize, IN LPBYTE pSignature, IN BAV_SIGN_LOGIC_OPERATION eLogicOp=BL_EQUAL);
- bool Compare(IN LPBYTE pData, IN INT nSize, IN LPBYTE pSignature, IN BAV_SIGN_LOGIC_OPERATION eLogicOp=BL_EQUAL);
- inline bool IsOpened();
- inline BAV_OBJ_TYPE GetObjectType();
- inline DWORD GetObjectSize();
- };