You should consider adding functionality to calling functions by address. The equivalent in C would be `int ( __cdecl *addValues )( int a, int b ) = ( int ( __cdecl* )( int, int ) )0xDEADBEEF;`