Question

This question already has an answer here:

This blog post mentions how to create your own shims.

What I don't understand is:

When a newer version of a DLL comes out (with more exported functions), wouldn't this technique break?

i.e. If you completely override the target DLL with a shim DLL, then what do you do about functions that you didn't/couldn't implement a redirection for?

Was it helpful?

Solution

This isn't the only way to do it.

The easiest solution is probably to use Detours, though the free version is 32-bit only and for non-commercial use, and the paid version is seriously expensive.

This article describes a bunch of methods of doing it yourself.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top