title: How does Microsoft Detours work and how do I use it to get a stack trace?
body: <p>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</p>
  
  <pre><code>syelogd.exe /q C:\Users\xxx\Desktop\log.txt 
  withdll.exe /d:traceapi.dll C:\Program Files\Google\Google Talk\googletalk.exe
  </code></pre>
  
  <p>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</p>
  
  <pre><code>20101221060413329 2912 50.60: traceapi: 001 GetCurrentThreadId()
  </code></pre>
  
  <p>Finally I want to get the stack trace of the process. How can I get that?</p>