X-Spam-Check-By: sourceware.org Message-ID: <44E315EF.4080006@byu.net> Date: Wed, 16 Aug 2006 06:56:15 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, pchico AT clip DOT dia DOT fi DOT upm DOT es Subject: Re: How can I know if a Windows execution is under cygwin?? References: <17634 DOT 19312 DOT 57788 DOT 859430 AT clip DOT dia DOT fi DOT upm DOT es> In-Reply-To: <17634.19312.57788.859430@clip.dia.fi.upm.es> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Pablo Chico de ? Huerta on 8/15/2006 4:32 PM: > Hi, > > My work group has developed a Prolog Language to Unix. Now, we are > going to adapt it to work under windows, but when a .exe is > executed, we need know is the execution is under CygWin or no. We > used CYGWIN variable, but we think that it does not exist any > longer under CygWin. The CYGWIN variable still exists and is used, if you explicitly set it, but has never been an indicator of whether a particular .exe was linked with cygwin or not. > How can we know if a Windows execution is > under CygWin now?? I assume this is your app determining if some other .exe is linked against cygwin (since you should already know whether your app is a cygwin app). One way would be using cygcheck to see if the .exe depends on cygwin1.dll. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE4xXv84KuGfSFAYARAkejAKCT73pTFssQBF0YgRVn3Hqa38wKlACfVat3 V6Dv/O4ef7aX8hHQYNEsDZc= =M5oB -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/