Hi,
As part of our file system filter driver implementation, we need to
determine whether the file name specified in an IRP_MJ_CREATE request is a
short file name ( MS DOS type file name) or not. Is there any way to
determine whether the the passed in name is a short file name or not.?
Once it is identified that it is a short file name, is there any kernel mode
routine available to get its equivalent long file name.
Any useful hints will be most helpful.
Thanks in advance,
Mini
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
All short names have a tilda (“~”) character in them. This does not
mean that a filename with a tilda is a short name. If you see an
individual name component with a ~ in it that is 12 characters or less
in size then it is a candidate to be a short name.
If you want to find out if there is a long name equivalent you need to
do the following:
- Open the directory the file exists in.
- Call ZwQueryDirectiryFile asking for FileNamesInformation with the
short name you want to expand as the “FileName” parameter
- You will receive back the long name if there is one.
Neal Christiansen
-----Original Message-----
From: MINI MOL [mailto:xxxxx@nestec.net]
Sent: Friday, January 12, 2001 7:51 PM
To: File Systems Developers
Subject: [ntfsd] Identification of Short File Names
Hi,
As part of our file system filter driver implementation, we need to
determine whether the file name specified in an IRP_MJ_CREATE request is
a
short file name ( MS DOS type file name) or not. Is there any
way to
determine whether the the passed in name is a short file name or not.?
Once it is identified that it is a short file name, is there any kernel
mode
routine available to get its equivalent long file name.
Any useful hints will be most helpful.
Thanks in advance,
Mini
You are currently subscribed to ntfsd as: xxxxx@Exchange.Microsoft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com