dirent.h is part of POSIX, so it's quite unlikely you'll ever find it on Windows, except if you use some POSIX port like Cygwin.

For platform-independent directory and path handling, use the Boost Filesystem library from www.boost.org