Globally override malloc in visual c++

后端 未结 7 801
死守一世寂寞
死守一世寂寞 2020-12-06 01:47

I\'m trying to figure out a way to globally override malloc and related functions in visual c++ (2005). My setup is a dll with statically linked runtime library that consist

7条回答
  •  青春惊慌失措
    2020-12-06 02:29

    You can use Detours from Microsoft (pay for commercial) or rewrite the import tables for the dlls you use.

提交回复
热议问题