Program Name...
Posted: Thu Aug 28, 2008 6:46 am
I want a native function that you can put into a library, (DLL, SO...) that will allow you to tell what program file opened/accessed it.
Much like this does, but cross platform...(Run this from a DLL, and it will return the path/filename of the program file that called it.)
Much like this does, but cross platform...(Run this from a DLL, and it will return the path/filename of the program file that called it.)
Code: Select all
Procedure.s GetExeName()
sApp.s=Space(256)
GetModuleFileName_(GetModuleHandle_(0), @sApp, 256)
ProcedureReturn sApp
EndProcedure