Get name of initiating exe/dll from within another exe/dll
With GetCommandLine you can get the command line. The first parameter is
the program file.
Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As
String
--
Eduardo Morcillo
Free ActiveX Controls: http://www.geocities.com/SiliconValley/Foothills/9940
NEW TypeLibs section.
Quote:
> Hi,
> Is there a way to determine which exe/dll made a call to another exe/dll?
> i.e.
> We have a project with a number of exe/dll. Unfortunately our Error Class
> does not request the calling exe/dll name when an error is generated, so
> when we create our error log, we can't determine which exe/dll called the
> error class. We don't want to change ever error routine in every exe/dll
> and would like to just modify the error class to get the name of the
exe/dll
> that initiated the call.
> Thanks
> Jeff