This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Truncated Environment Variables? - using Cygwin + GetEnvironmentStrings() WIN32 API


On Sun, Apr 30, 2006 at 03:32:55AM +0000, Eric Blake wrote:
>On Sun, Apr 30, 2006 at 04:12:52AM +0100, Kaveh Goudarzi wrote:
>>I'm working on an app which attempts to get the environment of running
>>cygwin apps.  It does this by running the GetEnvironmentStrings() win32
>>api call in the context of the running cygwin app (code injection).
>
>That is somewhat risky, as recent threads have discussed how windows
>update does a code injection that interferes with cygwin and deadlocks
>the processor into 100% utilization.

Actually, it is unlikely that this is as simple as "code injection
causes problems".  I was playing with this technique a while ago with
cygwin programs and I never saw the rumored 100% CPU utilization.

cgf

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]