I have a mini-redirector prototype that I’m currently working
on. Currently, I have the QueryDirectory() function working
in most cases. I can sucessfully browse through directories
in explorer.
But… here is the tricky part. From cmd.exe, if I try to
cd into a subdirectory of the drive root, I get an error:
‘The directory name is invalid.’
And if I do dir t:\svn-repo, for example, I get a listing
as if I had done dir t:\svn-repo* instead of the listing
of the contents of svn-repo.
Does anyone have any clue what part of this I’m messing up?
My redirector doesn’t have the ability to return short names…
(I set ShortNameLength = 0, and zero out ShortName.)
Does cmd require the short names?
Also, when should I be setting FILE_ATTRIBUTE_DIRECTORY? There
is a comment in ntifs.h about this being for DOS and not being
a valid NT flag…
Thanks,
Joseph