00001 #ifndef _WINCE_DIRECTORY_H_
00002 #define _WINCE_DIRECTORY_H_
00003
00004
00005 #include "OSDependent/OSDependent.h"
00006
00007 class DirectoryEntry;
00008
00009
00010 #pragma warning (disable : 4251)
00011
00012
00013
00014
00015 class ClassExport Directory {
00016 private:
00017 bool _hasFirst;
00018 bool _isRewound;
00019 char _name[128];
00020 HANDLE _handle;
00021 WIN32_FIND_DATA _data;
00022
00023 public:
00024 Directory(const char *name);
00025 ~Directory();
00026
00027 int open();
00028 int close();
00029 int rewind();
00030 int seek(int pos);
00031 const char *name() const;
00032 DirectoryEntry *read();
00033 };
00034
00035 #endif // _WINNT_DIRECTORY_H_