-
Notifications
You must be signed in to change notification settings - Fork 11
/
ImgFileFind.h
executable file
·89 lines (71 loc) · 2.02 KB
/
ImgFileFind.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// ImgFileFind.h: interface for the CImgFileFind class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_IMGFILEFIND_H__EB76A210_0CB0_46A6_8A92_FF1A7E35E06A__INCLUDED_)
#define AFX_IMGFILEFIND_H__EB76A210_0CB0_46A6_8A92_FF1A7E35E06A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DiskImgFile.h"
//#include "Ext4ImgFile.h"
#include "sysfs.h"
class CImgFileFind
{
public:
CImgFileFind(){_lpFileName = NULL; _lpCurFileName = NULL;_imgFile = NULL; _curIndex = -1;}
CImgFileFind(DiskImgFile* pImgFile);
CImgFileFind(const CImgFileFind& src);
~CImgFileFind();
public:
BOOL SetImgFile(DiskImgFile* pImgFile);
BOOL SetCurDirectory(LPCSTR lpDirPath);
BOOL FindFile(LPCSTR lpName);
BOOL FindNextFile();
BOOL CloseFind();
BOOL IsDots();
BOOL IsDirectory();
BOOL IsVolID();
BOOL GetFullPathName(LPSTR lpPathName, int nLen);
LPSTR GetFileName();
CTime GetFileCrtTime();
CTime GetFileLstAcceDate();
CTime GetFileWrTime();
DWORD GetFileSize();
public:
DiskImgFile* _imgFile;
Fat_Directory _curDirTab;
LPSTR _lpFileName;
LPSTR _lpCurFileName;
int _curIndex;
};
class CFileFindEx
{
public:
CFileFindEx(){_lpFileName = NULL; _lpCurFileName = NULL; _curIndex = -1;}
CFileFindEx(CSysfs* pFSysfs);
CFileFindEx(const CFileFindEx& src);
~CFileFindEx();
public:
BOOL SetSysfs(CSysfs* pSysfs);
BOOL SetCurDirectory(LPCSTR lpDirPath);
BOOL FindFile(LPCSTR lpName);
BOOL FindNextFile();
BOOL CloseFind();
BOOL IsDots();
BOOL IsDirectory();
BOOL IsVolID();
BOOL GetFullPathName(LPSTR lpPathName, int nLen);
LPSTR GetFileName();
CTime GetFileCrtTime();
CTime GetFileLstAcceDate();
CTime GetFileWrTime();
DWORD GetFileSize();
public:
CSysfs* _pSysfs;
LPSTR _lpFileName;
LPSTR _lpCurFileName;
int _curIndex;
HANDLE _hFindHandle;
WIN32_FIND_DATA _findData;
};
#endif // !defined(AFX_IMGFILEFIND_H__EB76A210_0CB0_46A6_8A92_FF1A7E35E06A__INCLUDED_)