This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Exposing new Kernel APIs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]