How does Microsoft Detours work and how do I use it to get a stack trace?

Posted by Bruce on Stack Overflow See other posts from Stack Overflow or by Bruce
Published on 2010-12-22T09:00:11Z Indexed on 2010/12/31 6:54 UTC
Read the original article Hit count: 295

Filed under:
|

I am new to Microsoft Detours. I have installed it to trace the system calls a process makes. I run the following commands which I got from the web

syelogd.exe /q C:\Users\xxx\Desktop\log.txt 
withdll.exe /d:traceapi.dll C:\Program Files\Google\Google Talk\googletalk.exe

I get the log file. The problem is I don't fully understand what is happening here. How does detours work? How does it trace the system calls? Also I don't know how to read the output in log.txt. Here is one line in log.txt

20101221060413329 2912 50.60: traceapi: 001 GetCurrentThreadId()

Finally I want to get the stack trace of the process. How can I get that?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about detours