I need a way to convert 8.3 shorten paths (windows 95 paths containing ~1 at the end) to their long names. There is a function in Win32 api, called GetShortPathName() which converts a long path to a short one. There's also a function called GetFullPathName() but that seems to do absolutely nothing. It has 4 parameters, filename, size of path buffer, path buffer, and buffer to recieve the 'full' filename. I've tried everything, but can't seem to get it to work properly. If someone could show me how to do this correctly (C win32 API) I would appreciate it. Example:
I need to convert the directory of "Exampl~1" (dos 8.3 name) to "Example of long directory name" (long file name).