In global hook ,how can i get the name of the file exe,which called file dll?
code: results of paramstr(0) in file dll are not same because activate window changed too.
project.exe calls a.dll ,the caller is project1.exe. when a.dll loading,it always shows [messagebox(paramstr(0))] the caller is "c:\my\project.exe" but if we set focus to yahoo messenger it will show "c:\program files\yahoo\messenger\ypager.exe"
So how can we get the filename of the DLL caller only everytime (project.exe)?
by the way,How can the file dll get the filename of itself?
(i means a.dll when loading will showmessage the name of itself like c:\....\a.dll )