Handle EnumerateDirectory for Windows.