Wednesday, 21 August 2013

how to know the method loaded from which DLL

how to know the method loaded from which DLL

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. I want to know foo() was loaded from which DLL A.dll or B.dll
at run time for logging purpose.
GetModuleFileName() would return the process name proc.exe not the Dlls
name name.

No comments:

Post a Comment