#include #include #include using sword::SWBuf; struct dirent { char d_name[MAX_PATH]; }; typedef struct { WIN32_FIND_DATA wfd; HANDLE hFind; SWBuf *dirPath; dirent de; } DIR; DIR * opendir ( const char * path ); dirent * readdir ( DIR * pDir ); void closedir ( DIR * pDir); void rewinddir ( DIR * dir );