Now I need the 8.3 version of a Path (no filename). Therefore FindFirstFile is of now use.

As stated in another post, proper calling GetShortPathName on Win98 will return with ERROR_BAD_PATHNAME.

Could someone with a Win98 box do me a really big favor? I need an app coded in masm (I'm using Fasm) that calls GetShortPathName for "C:\Program Files\". I would like to look at the working app with my debugger to see what kind of voodoo makes it work under Win98.


GetShortPathName returns ERROR_PATH_NOT_FOUND is the path does not exist.

FindFirstFile will leave cAlternateFileName blank if the supplied filename is all lowercase.
Posted on 2002-05-29 16:37:46 by eet_1024
A closer look reveals that GetShortPathName DOES provide the short name. But for some reason it also returns with an error under Win98.
Posted on 2002-05-29 16:57:22 by eet_1024
Attached worked example on GetShortPathName on win98 :)
Posted on 2002-05-29 17:06:38 by Sa6ry

Thanks. I just looked at it. Nothing special from MAsm either. The funny stuff I saw (the other tread) was simply the the pointer the ShortString.

Still no explaination for the error.
Posted on 2002-05-30 00:28:14 by eet_1024