If you are in the desired process, you can redirect the IAT (import address table) for the DLL that you want to control. If you are not already running executable code, you will also need to find a way to load the code into the desired process.
source
share