An application opened the file using the short name. How do I retrieve the long name?
The one mechanism that works on all versions of Windows NT, 2000, and XP is to look into the directory that contains the entry. In Windows XP, this can be done using NtQueryDirectoryFile, which is part of the Windows XP IFS Kit. However, in earlier versions this call is not exposed by the IFS Kit and thus it requires that a filter driver implement equivalent functionality by using the IRP_MN_QUERY_DIRECTORY operations. Using NtQueryDirectoryFile, the filter driver can specify a search of the directory using the short file name. The FSD will then return one (or more) file that has a matching short file name as well as its corresponding long file name. For the standard file systems, this would only return a single matching entry. From this, both the short name and long name of the file can be retrieved.
Related Questions
- All I need to do to file a provisional patent application is file a picture of my invention along with a short description, right?
- If I am filing a Short Form 175 (Application to Participate in an FCC Auction), am I required to file Form 602?
- An application opened the file using the short name. How do I retrieve the long name?