> -----Original Message-----
> From: firebird-devel-admin@...
> [mailto:firebird-devel-admin@... Behalf Of Ann=
W.
> Harrison
> Sent: S=E1bado 27 de Octubre de 2001 17:23
>
> At 06:07 PM 10/27/2001 -0400, Claudio Valderrama C. wrote:
>
> >Ok, do you want that I change GetShortPathName to
> GetLongPathName and retry
> >my tests?
>
> Unless someone else complains, by all means.
I will have to complain before anybody else, Mom. I thought in good f=
aith
that the MS SDK could be wrong in the requirements, but it wasn't.
GetShortPathName (this is the currently used function)
Windows NT/2000: Requires Windows NT 3.5 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/200=
0.
GetFullPathName (used to complete a non-absolute path, both directly =
and
through _fullpath)
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/200=
0.
GetLongPathName (this is the one I intended to use, in the belief tha=
t the
MS SDK *could* be wrong, pay attention)
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 98.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
In plain words: GetLongPathName is not available in NT neither in W95=
. I'm
on NT4. I compiled, ran and got the typical message that the entry po=
int is
not found in kernel32.dll. The doco is right: no W95, no NT4. I can i=
magine
Mike with a big smile, saying "I know the SDK docs have bugs, but don=
't
exaggerate".
MS always makes interesting decisions... they had GetShortPathName av=
ailable
since w95/Nt3.5 but they never thought before W98 that the counterpar=
t
GetLongPathName could be needed. So, we are hosed again. I don't like=
to be
a loser and I created a program that, based on FindFirstFile() is abl=
e to
reconstruct the full path with long names. I don't know how many devs=
in the
list have access to Win32 MSDEV, so even if the sources are less than=
2 KB,
I won't send it to the list. Contact me if you want your copy; I sent=
it
only to three people I know they have MSVC. However, probably this pr=
ogram
will be left as a toy, because Ann will prefer to stick to GetShortPa=
thName
in this case.
In the meantime, I changed my build to use references to winsock v2 a=
nd not
v1, that's absolutely outdated. Time to move on.
C.
|