FastFileManager.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Written by FangHong, 1998
- // Based DX5SDK samples "FastFile"
- #ifndef _FASTFILEMANAGER__H
- #define _FASTFILEMANAGER__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "FastFile.h"
- class CFastFileManager
- {
- public:
- CFastFileManager(void);
- ~CFastFileManager();
- public:
- BOOL Create(LPCTSTR lpstrName);
- FILE_ENTRY* GetFileEntryInfo(LPCSTR lpstrName);
- static int AFX_CDECL Compare(const void* p1, const void* p2);
- DWORD GetFiles(void) const
- {
- return m_head.dwEntryCount;
- }
- public:
- HANDLE m_hFileMapping;
- HANDLE m_hFile;
- LPBYTE m_pBase;
- PACK_FILE_HEAD m_head;
- FILE_ENTRY* m_aFileEntry;
- };
- #endif // _FASTFILEMANAGER__H