Get name of initiating exe/dll from within another exe/dll 
Author Message
 Get name of initiating exe/dll from within another exe/dll

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



Sun, 04 Nov 2001 03:00:00 GMT  
 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



Sun, 04 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Get name of initiating exe/dll from within another exe/dll

2. Specify DLL version when using mc.exe, rc.exe and/or link.exe

3. Problems building install file - AutPrx32.dll, AutMgr32.dll, RACMGR32.dll, CLIREG32.exe NOT FOUND

4. DLL entry points within msaccess.exe

5. Embed Database within .Exe or Dll. (VB Winforms)

6. launching an EXE from within a VB DLL

7. Displaying an ActiveX DLL form within calling .EXE window

8. Problem: Cannot load a DLL from within a VB4 created .EXE

9. Displaying an ActiveX DLL form within calling .EXE window

10. Call VB DLL or COM object from within VB COM object or EXE

11. Displaying an ActiveX DLL form within calling .EXE window

12. Displaying an ActiveX DLL form within calling .EXE window

 

 
Powered by phpBB® Forum Software