Files in explorer.exe are not sorted correctly

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

Check If you are passing the right information on IRP_MJ_QUERY_INFORMATION ioctl to your device.

Cheers
K.Raju

-----Original Message-----
From: RDM [mailto:xxxxx@yahoo.com]
Sent: Monday, September 27, 2004 1:30 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Files in explorer.exe are not sorted correctly

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


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com To unsubscribe send a blank email to xxxxx@lists.osr.com

I have checked this.
I return also the same attributes on
IRP_MJ_QUERY_INFORMATION/FileBasicInformation, but same behavior.

“Krishnama Raju” wrote in message
news:xxxxx@ntfsd…

Check If you are passing the right information on
IRP_MJ_QUERY_INFORMATION ioctl to your device.

Cheers
K.Raju

=====
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!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com