Samples: Traceapi

Microsoft Research Detours

Tracebld

Traces the file access patterns of a process and all of its children. Unlike the other tracing samples, Tracebld is entirely self-contained. It includes a parent process that initiates a child process with instrumentation and aggregates the results for the child and its children. Output from the children is delivered to the parent process via a named pipe created by the parent.

Uses

DetourAttach, DetourAttachEx, DetourCodeFromPointer, DetourCopyPayloadToProcess, DetourCreateProcessWithDllEx, DetourDetach, DetourEnumerateImports, DetourEnumerateModules, DetourFindPayload, DetourGetEntryPoint, DetourGetModuleSize, DetourFinishHelperProcess, DetourIsHelperProcess, DetourRestoreAfterWith, DetourTransactionBegin, DetourTransactionCommit, DetourUpdateThread.