Skip to content

SampleSimple

Brian Gianforcaro edited this page Aug 22, 2020 · 5 revisions

Simple

Simplest example of a Detours-based DLL which modifies and adds functionality to a Windows API. Modifies the Sleep API to record the number of ticks spent sleeping.

The Simple example is described in more detail in Using Detours.

Source is located in the /samples/simple directory.

Uses

DetourAttach, DetourDetach, DetourTransactionBegin, DetourTransactionCommit, DetourUpdateThread.

Clone this wiki locally