Click here to Skip to main content
15,886,740 members
Articles / Programming Languages / C++

A C++ Style of Intercepting Functions

Rate me:
Please Sign up or sign in to vote.
4.84/5 (27 votes)
12 Nov 2010CPOL8 min read 90.8K   667   93  
This article is about detouring functions in a more safe C++ programming style.
In this article, you will see how C++ templates, encapsulation and automatic destruction makes it much easier to safely rewrite executable code, or even more, to use OOP when intercepting functions.

Revisions


  

Compare Revision Minor Date Status Editor
18 - publicly available Yes 23-Jun-20 22:11 Available Deeksha Shenoy
Updates in content. Changes: 18
16 No 11-Nov-10 6:38 Available Deeksha Shenoy
15 No 11-Nov-10 0:30 Composing
14 No 21-Mar-09 3:33 Composing
13 No 15-Sep-09 11:50 Composing
12 No 21-Mar-09 13:35 Composing
11 No 21-Mar-09 3:33 Composing
10 No 19-Mar-09 0:01 Composing
9 No 18-Mar-09 23:56 Composing
8 No 18-Mar-09 23:36 Composing
7 No 18-Mar-09 14:32 Composing
6 No 18-Mar-09 14:30 Composing
5 No 18-Mar-09 14:14 Composing
4 No 18-Mar-09 14:02 Composing
3 No 18-Mar-09 10:06 Composing
2 No 18-Mar-09 8:35 Composing
1 No 18-Mar-09 8:19 Composing

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Thomson Reuters
Moldova (Republic of) Moldova (Republic of)
I'm C/C++ developer since 1999.
My favorite language is C++ and my favorite programming environment is Microsoft Visual Studio.

Comments and Discussions