The header you refer to effectively turns your (POSIX) dirent.hcalls into (native) Windows calls. But dirent.h- this is _dir_ectory _ent_ries, that is, reading directories, not creating.
If you want to create a directory ( mkdir()), you will need:
- (POSIX)
mkdir() () Windows ( ) - Windows API, , POSIX Windows...
#include <dirent.h>
#include <windows.h>
CreateDirectory( "D:\\TestDir", NULL );
Cygwin, POSIX, Windows, Bash shell, GCC POSIX, dirent.h, sys/stat.h, sys/types.h .., POSIX API .