#ifndef __FFFIND_H
#define __FFFIND_H
#include
class FileFinder {
int Drives[26];
int iHidden,iSystem;
char pat[128];
int match(struct ffblk& blk);
struct ffblkstackitem {
char dir[128];
struct ffblk blk;
struct ffblkstackitem *prev;
};
ffblkstackitem *current;
void AddLevel(const char *dirname);
void SubLevel();
struct FoundFile {
char name[128];
struct FoundFile *next;
};
FoundFile *list,*clist;
int files;
int AddFile(const char *fn);
public:
FileFinder(const char *pattern,int IncludeHidden,int IncludeSystem);
void AddDrive(int drive);
~FileFinder();
void StartSearch();
int Search();
int FoundFiles();
const char *File(int n);
};
#endif