Hi! Let's say that program1.exe starts program2.exe (by ShellExecture for example). Is there any way for program2.exe to get the name of program1.exe? Hope you understand!
Posted on 2005-09-06 15:42:16 by _Christopher
I believe there's an undocumented NT-only field that has a backlink to parent process, and there might be a similar one for win9x. I can try to look into it... what do you need it for?
Posted on 2005-09-06 16:24:58 by f0dder
Thanks for your reply. I needed it to get an ID from an installers filename (setup00001.exe) but I got it working with NSIS, just got and cutted the installerns filename with inbuilt (in NSIS scripting) functions. So I don't _need_ the information about how to get the parent, but it would be really interesting.

Oh NSIS is - for those who don't know - Nullsoft Install System.
Posted on 2005-09-06 17:05:26 by _Christopher
Here it is, if I'm not mistaken :)

Posted on 2005-09-06 17:26:33 by f0dder
Thanks! Bookmarking that one, too tired for reading now.
Posted on 2005-09-06 17:38:57 by _Christopher