I am developping a FileSystem Driver and i have strange behavior when I
use
explorer on my driver. when I go in a directory of my filesystem, I get
the
file and directory that are sorted alphabetically and together :
I Have :
A1.txt
A2.txt
Dir1
Dir2
Dir3
Z1.txt
Z2.txt
instead of:
Dir1
Dir2
Dir3
A1.txt
A2.txt
Z1.txt
Z2.txt
when I implement IRP_MJ_DIRECTORY_CONTROL/FileBothDirectoryInformation
I return in FILE_BOTH_DIR_INFORMATION.FileAttributes
FILE_ATTRIBUTE_DIRECTORY when my item is a directory and
FILE_ATTRIBUTE_NORMAL for a file.
Explorer display my directory with good Icon and I can enter in, but
only
the sort is not working well.I have also tested with attribute set to
zero
or FILE_ATTRIBUTE_ARCHIVE instead of FILE_ATTRIBUTE_NORMAL but no
changes in
the behavior.
I create my device as a FILE_DEVICE_NETWORK_FILE_SYSTEM (this is the
same
with
FILE_DEVICE_DISK_FILE_SYSTEM) for avoid request for subfolder.
Have you any idea where I miss some informations to send from my driver
?
Thanks.
–
RDM
=====
RDM
La théorie, c’est quand on sait tout et que rien ne fonctionne. La pratique, c’est quand tout fonctionne et que personne ne sait pourquoi. Ici nous avons réuni théorie et pratique : rien ne fonctionne…et personne ne sait pourquoi !
Einstein
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail