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 From: "Dave Korn" To: Subject: RE: "Segmentation fault" CygWin tools with code Injection-MS Detours Date: Thu, 11 Aug 2005 17:07:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <42FB6B00.60906@club-internet.fr> Message-ID: ----Original Message---- >From: Louis Lecaroz >Sent: 11 August 2005 16:13 > Dave, > For your information, you don't need my code specificaly, as it is not > directly link to "my" code but to the Microsoft Toolkit, but I think, > when You were talking about my code, You mean Microsoft ?. I'm not sure now; I thought you said you were writing a truss tool? Your first email said ... > I wrote an Advanced "truss like" tool to examine files opened by a > process by using code injection. ... but now I guess what you mean is "I downloaded and compiled a program but didn't write any code myself". > But, I have attached for you, some already compiled sample of the sdk > you can execute on your computer. you can download all the ms toolkit > (only the 1.5 is still public) with sample on : > http://research.microsoft.com/sn/detours/ Yes, I know about the Detours library, I've read all about it before. > Unzip it in your cygwin\bin dir & run : Not to be rude, but you must be out of your mind if you think I'm going to execute a random binary sent to me through email by a complete stranger! > Because I am really accustomed, it appears to be more simple for me, to > understand/generate & debug microsoft tools than CygWin specific code > (really sorry). This is the reason I have posted here, hopping I will be > able to undertand something or to find a solution, to have ONLY ONE > TRUSS similar command able to hook & trace system calls for CygWin & > Win32 native. This allow, for exemple tracing cygwin & a child Win32 > native process launch by cygwin... ;) If you want Microsoft tools to support Cygwin calling sequences, you really have to ask Microsoft to add support to their code, there's no point asking us to somehow change the Detours library (or any other M$ tool)! Or you could debug the crash yourself, find out why it's happening, patch your local copy of the detours library to work with Cygwin, and you should have the tool you want. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/