delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44578DC0.5040606@arkasoft.com> |
Date: | Tue, 02 May 2006 17:50:08 +0100 |
From: | Kaveh Goudarzi <kaveh AT arkasoft DOT com> |
User-Agent: | Thunderbird 1.5.0.2 (Windows/20060308) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Truncated Environment Variables? - using Cygwin + GetEnvironmentStrings() WIN32 API |
References: | <44576A04 DOT 3090409 AT arkasoft DOT com> <001201c66df5$46bca0e0$a501a8c0 AT CAM DOT ARTIMI DOT COM> <20060502155721 DOT GB982 AT trixie DOT casa DOT cgf DOT cx> <20060502160118 DOT GC982 AT trixie DOT casa DOT cgf DOT cx> |
In-Reply-To: | <20060502160118.GC982@trixie.casa.cgf.cx> |
X-DSPAM-Result: | Innocent |
X-DSPAM-Processed: | Tue May 2 17:50:20 2006 |
X-DSPAM-Confidence: | 0.5812 |
X-DSPAM-Probability: | 0.0000 |
X-DSPAM-Signature: | 44578dcc118625260519334 |
X-DSPAM-Factors: | 27, |
X-Spam-Score: | -1.796 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Hi Guys, Thanks for your input. So it looks like my version of cygwin1.dll does not have the functionality I was trying to use namely the CW_SYNC_WINENV (doing an nm on cygwin1.dll I don't see sync_winenv ()). So unless there is going to be an imminent release I would be grateful if you could answer a few more questions :-) I will try to make them smarter (but can't promise I will succeed) :-) 1. Is there a simple way for me to gain access to the environ variable directly in my injected code? e.g. I see that __cygwin_environ is being passed to build_env in the sync_winenv () function and __cygwin_environ seems to be a global in cygwin1.dll ... can I somehow (knowing that the app I have injected is a cygwin app using Brians dll lookup code) gain access to this variable (if it's the right one)? 2. When I checked out the signature for cygwin_internal I saw that it's unsigned long so where does the int return value come from? is it from a call to a function like GetLastError? (Sorry I'm new to cygwin). extern "C" unsigned long cygwin_internal (cygwin_getinfo_types t, ...) Thanks again for your help ... and for cygwin :-) regards, Kaveh. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |