I use this, get the contents of the foo directory: FindFirstFile(L"foo\\*", &findData) . It works fine when foo is a regular directory. However, when foo is a connection pointing to another directory (created using mklink /j foo C:\gah ), FindFirstFile fails.
The documents should say: "If the path points to a symbolic link, the WIN32_FIND_DATA buffer contains information about the symbolic link, not the target." But when I run it with a debugger, I just get INVALID_HANDLE_VALUE and findData remains untouched.
So how do I get around this?
source share