From the video, i think i do understand the question, so here a suggest with different approach :
Replace BorlndMM.dll with one that load (just an import of one function might be enough) another
DLL (yours) in this case BorlndMM.dll still serve as memory manager, but will invoke your
dll before even the
IDE start, don't forget to make your injected
dll is not using share memory.