A common method foo() is defined in two DLLs A.dll and B.dll. Now when a process proc.exe loads both DLLs and call foo() method simultaneously from two threads. is there any way to know foo() was loaded from which DLL A.dll or B.dll at run time. I need this information for logging purpose. I couldn't find anything relevant on internet.
GetModuleFileName() would return the process name proc.exe not the Dlls name.