* Re: Exposing new Kernel APIs
@ 2000-01-18 14:31 Uwe Bonnes
0 siblings, 0 replies; 3+ messages in thread
From: Uwe Bonnes @ 2000-01-18 14:31 UTC (permalink / raw)
To: cygwin
Hallo again,
thinking again, I did it myself.
Checking with i386-mingxxxx-nm on libkernel32.a showed me that
GetLongPathName was available. So I only had to add it to winbase.h
and mingw compile my programm successfull. Patch appended ( also I
guess it it already in Mumit's tree, nut perhaps helpfull for others).
Bye
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Free Software: If you contribute nothing, expect nothing
--
--- winbase.h~ Tue Dec 21 09:56:32 1999
+++ winbase.h Tue Jan 18 20:08:01 2000
@@ -1162,6 +1162,8 @@
BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
DWORD WINAPI GetFileType(HANDLE);
#define GetFreeSpace(w) (0x100000L)
+DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
+DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
BOOL WINAPI GetHandleInformation(HANDLE,PDWORD);
@@ -1621,6 +1623,7 @@
#define GetFileAttributes GetFileAttributesW
#define GetFileSecurity GetFileSecurityW
#define GetFileAttributesEx GetFileAttributesExW
+#define GetLongPathName GetLongPathNameW
#define GetFullPathName GetFullPathNameW
#define GetLogicalDriveStrings GetLogicalDriveStringsW
#define GetModuleFileName GetModuleFileNameW
@@ -1755,6 +1758,7 @@
#define GetFileAttributes GetFileAttributesA
#define GetFileSecurity GetFileSecurityA
#define GetFileAttributesEx GetFileAttributesExA
+#define GetLongPathName GetLongPathNameA
#define GetFullPathName GetFullPathNameA
#define GetLogicalDriveStrings GetLogicalDriveStringsA
#define GetNamedPipeHandleState GetNamedPipeHandleStateA
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Exposing new Kernel APIs
2000-01-18 0:18 Uwe Bonnes
@ 2000-01-18 1:00 ` Mumit Khan
0 siblings, 0 replies; 3+ messages in thread
From: Mumit Khan @ 2000-01-18 1:00 UTC (permalink / raw)
To: Uwe Bonnes; +Cc: cygwin
Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> writes:
> Hallo,
>
> Win98 introduces
> GetLongPathNameA(LPCSTR,LPSTR,DWORD)
> and NT has the coresponding W function too.
>
> At least MingW32 doesn't know about this function:
Thanks for pointing it out.
I added GetLongPathName{A,W} just last week, so it'll be in the next
mingw32+w32api runtime update. My next patch to Cygwin's dev snapshots
will include this as well.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Exposing new Kernel APIs
@ 2000-01-18 0:18 Uwe Bonnes
2000-01-18 1:00 ` Mumit Khan
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Bonnes @ 2000-01-18 0:18 UTC (permalink / raw)
To: cygwin
Hallo,
Win98 introduces
GetLongPathNameA(LPCSTR,LPSTR,DWORD)
and NT has the coresponding W function too.
At least MingW32 doesn't know about this function:
hertz:/spare/bon/problems/getlong> i386-mingw32msvc-gcc -V
i386-mingw32msvc-gcc: argument to `-V' is missing
hertz:/spare/bon/problems/getlong> i386-mingw32msvc-gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-mingw32msvc/2.95.2/specs
gcc version 2.95.2 19991024 (release)
hertz:/spare/bon/problems/getlong> i386-mingw32msvc-gcc getlongpathname.c
/tmp/cc1tUoA2.o(.text+0x45b):getlongpathnam: undefined reference to
`GetLongPathName'
What is needed to make cygwine recognize that function?
(I read the list only through the archive interface, so a CC to me
will speed up communication)
Thanks
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-01-18 14:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-18 14:31 Exposing new Kernel APIs Uwe Bonnes
-- strict thread matches above, loose matches on Subject: below --
2000-01-18 0:18 Uwe Bonnes
2000-01-18 1:00 ` Mumit Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).