delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/12/11:49:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,TW_NX,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: jojelino <jojelino AT gmail DOT com>
Subject: Re: Win2000 compatibility
Date: Fri, 13 Apr 2012 00:48:30 +0900
Lines: 30
Message-ID: <jm6tgc$jj0$1@dough.gmane.org>
References: <1581884843 DOT 20120412191907 AT mail DOT ru>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:14.0) Gecko/20120411 Thunderbird/14.0a1
In-Reply-To: <1581884843.20120412191907@mail.ru>
Cc: mingw-users AT lists DOT sourceforge DOT net
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

2012-04-13 AM 12:19, iggor 쓴 글:
> Hello,
>
> 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.
>
you can fix the problem by building setup.exe from scratch.

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), 
according to 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683200(v=vs.85).aspx
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*);
#endif

-- 
Regards.




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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