(Win32) Implementation for S_ISDIR