Hi all,
I had sent a similar message a week ago, but no one replied.
So, I’ll try again,
I’m working on XP. Trying to get the full path name of
a file whenever a Dos8.3 name is sent.
On W2K I’d found a way: ZwQueryInformationFile() with
FileNameInformation. For some reason on XP it doesn’t work.
Any help would be appreciated.
Regards,
Guy.
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
Guy,
When you query for the file name using ZwQueryInformationFile with
FileNameInformation class, you get the name that the user used to open
the file – therefore if the user opened the file via the 8.3 name,
that’s what you get. NTFS has always done this and FAT was changed to
match the NTFS behavior in Windows XP.
If you have the short name for a file and you want to get the long name,
you need to open the parent directory of the file then use
ZwQueryDirectoryFile() with the FileNamesInformation class to get the
long file name for this file contained in the directory.
Molly Brown
Microsoft Corporation
This posting is provided “AS IS” with no warranties, and confers no
rights. You assume all risk for your use. Copyright 2001 Microsoft
Corporation. All rights reserved.
-----Original Message-----
From: xxxxx@hotmail.com [mailto:xxxxx@hotmail.com]
Sent: Thursday, November 08, 2001 3:11 AM
To: File Systems Developers
Subject: [ntfsd] Dos name to Full name
Hi all,
I had sent a similar message a week ago, but no one replied. So, I’ll
try again,
I’m working on XP. Trying to get the full path name of
a file whenever a Dos8.3 name is sent.
On W2K I’d found a way: ZwQueryInformationFile() with
FileNameInformation. For some reason on XP it doesn’t work.
Any help would be appreciated.
Regards,
Guy.
You are currently subscribed to ntfsd as: xxxxx@windows.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