On Sep 26, 2010, at 7:36 AM, Paul Moore wrote: > On 26 September 2010 09:01, Paul Moore <p.f.moore at gmail.com> wrote: >> On 25 September 2010 23:57, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: >>> Paul Moore wrote: >>> >>>> Windows has (I believe) user definable filesystems, too, but the OS >>>> has "get me the real filename" style calls, >>> >>> Does it really, though? The suggestions I've seen for doing >>> this involve abusing the short/long filename translation >>> machinery, and I'm not sure they're guaranteed to return the >>> actual case rather than something that happens to work. >> >> There's another call available. I've been too lazy to go and look it >> up, but I'll do so sometime today. > > Hmm, I can't find the one I was thinking of. GetLongFileName correctly > sets the case of all but the final part, and FindFile can be used to > find the last part, but that's not what I recall. > > GetFinalPathNameByHandle works, and is documented to do so, but (a) it > works on an open file handle, so you need to open the file, and (b) > it's Vista and later only... Were you thinking of SHGetFileInfo? http://stackoverflow.com/questions/74451/getting-actual-file-name-with-proper-casing-on-windows James
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4