Page 1 of 1

[Windows] GetLongPathName API

Posted: Sun Jan 02, 2011 12:19 pm
by Little John
Please include a wrapper for the Windows GetLongPathName API function.

Regards, Little John

Re: [Windows] GetLongPathName API

Posted: Sun Jan 02, 2011 12:25 pm
by ts-soft
Little John wrote:Please include a wrapper for the Windows GetLongPathName API function.

Regards, Little John
This API is not available on Win95 and NT4, i think this will never come :wink:

Re: [Windows] GetLongPathName API

Posted: Sun Jan 02, 2011 5:52 pm
by IdeasVacuum
....It would be very good to have since the world is going 64bit very rapidly thanks to Win7.

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 10:51 pm
by nco2k
i second the request. :)

it would be weird to not add a function, only because a 16 years old os doesnt support it. :?

c ya,
nco2k

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 11:02 pm
by ts-soft
What should the Function do on linux and MacOS :mrgreen:
I would say, simple use the API if required.
And after over 16 years long names, there should no more many short names in this world :mrgreen:

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 11:07 pm
by nco2k
what? Oo

im talking about a simple GetLongPathName_() wrapper, without the need for OpenLibrary, Import etc. :wink:

c ya,
nco2k

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 11:08 pm
by ts-soft
nco2k wrote:what? Oo

im talking about a simple GetLongPathName_() wrapper, without the need for OpenLibrary, Import etc. :wink:

c ya,
nco2k
If you use this function and your program start on older OS, it will crash on static binding. Better use dynamic Bindung vor this functions, to solve this crash. Only OpenLibrary is good in this case, Import is the same problem.

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 11:25 pm
by Little John
ts-soft wrote:What should the Function do on linux and MacOS :mrgreen:
Plese read at least the title of this thread ...

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 11:26 pm
by nco2k
@ts-soft
i know, but thats something the programmer should be aware of, before using such a function. besides GlobalMemoryStatusEx_() wont work on win9x aswell, but its available in pb. its good to have the choice and no one forces you to use it. if you need win9x support you simply use OpenLibrary() instead. :)

c ya,
nco2k

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 11:36 pm
by ts-soft
Many NTFS System creates no more shortpath names. This make the saving and so on faster.
But if you really require this IMHO useless function :mrgreen:

Re: [Windows] GetLongPathName API

Posted: Fri Jan 14, 2011 11:40 pm
by nco2k
well, you never know and one extra line of code doesnt hurt. :D

c ya,
nco2k