Trappola is a code interception engine for Microsoft Windows®.
This library is at the core of our Deviare technology, it has all the functionality offered by Microsoft Detours® but we have released Trappola under a GNU LGPL license, this way we offer it as a free download and we allow the use of it for any purpose, including commercial purposes.
The library is coded in C++ and provides all the facilities required to hook any code during runtime. If you need to intercept any Windows API function this tool makes it easier than ever.
This is a fragment of assembler code which shows a code interception in a Win32 API function.
The image shows that every call to the FindNextFile function is handled by the Trappola library, and allows you to execute your custom code.
You can bind them to events in your application.
To check it's functionality you can read the Trappola article in our Blog and use the C++ Example included in the package.