delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/18/17:28:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Uwe Bonnes <bon AT elektron DOT ikp DOT physik DOT tu-darmstadt DOT de>
MIME-Version: 1.0
Date: Tue, 18 Jan 2000 23:34:39 +0100 (MET)
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Exposing new Kernel APIs
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid
Message-ID: <14468.59858.418533.837614@gauss.local>

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 AT elektron DOT ikp DOT physik DOT tu-darmstadt DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019