MemFileObject.h
资源名称:BAV.v2.rar [点击查看]
上传用户:chaoyu
上传日期:2013-04-28
资源大小:18k
文件大小:1k
源码类别:
杀毒
开发平台:
Visual C++
- #pragma once
- #include "FileObject.h"
- class CMemFileObject :
- public CFileObject
- {
- protected:
- HANDLE m_hMapFile;
- LPBYTE m_pFile;
- public:
- CMemFileObject(void);
- CMemFileObject(CMemFileObject& cMemFileObj);
- ~CMemFileObject(void);
- 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();
- LPBYTE GetBuffer();
- };