I am writing an analysis tool for an exe. I have the source code of this exe so I know which functions it uses. I need to hook a couple of specific functions so that I can inspect the passed parameters. The functions I am interested are not part of any DLL but they are part of the program.
I started using Detours to write an hooking DLL which intercepts the functions calls. I wrote the hooking DLL where I specify the functions to hook, but unfortunately since there is no DLL to refer to, when I compile the hooking DLL I cannot resolve the functions names.
How can I solve this problem?