This is the mail archive of the
mailing list for the Cygwin project.
Re: Win2000 compatibility
- From: jojelino <jojelino at gmail dot com>
- To: cygwin at cygwin dot com
- Cc: mingw-users at lists dot sourceforge dot net
- Date: Fri, 13 Apr 2012 00:48:30 +0900
- Subject: Re: Win2000 compatibility
- References: <email@example.com>
2012-04-13 AM 12:19, iggor ì ê:
Hello,you can fix the problem by building setup.exe from scratch.
It appears that Cygwin SETUP.EXE at this time is uncompatible with
Windows 2000, since it uses function GetModuleHandleExA
which leads to error in searching entry point in kernel32.dll.
So, I cannot run setup at all, even get help with option.
AFAIK, this function is absent in all Win2k, not only my
SP4, build 2195.
before you build setup.exe, please checkout commits that used
GetModuleHandleExA, and fix it by replacing with alternative api
provided in win2k.
GetModuleHandleEx is known to be supported in minimum winxp (0x0501),
by the way, in winbase.h, it is enabled with minimum of win2k. which
should be fixed.
#if (_WIN32_WINNT >= 0x0500)
WINBASEAPI BOOL WINAPI GetModuleHandleExA(DWORD,LPCSTR,HMODULE*);
WINBASEAPI BOOL WINAPI GetModuleHandleExW(DWORD,LPCWSTR,HMODULE*);
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple