Samples: Tracetcp
From Microsoft Research Detours
Tracetcp
Traces activity through WinSock TCP APIs. Output from the trace is logged to the syelogd.exe deamon.
Uses
DetourAttach, DetourDetach, DetourTransactionBegin, DetourTransactionCommit, DetourUpdateThread.