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!
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?
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.
Oh NSIS is - for those who don't know - Nullsoft Install System.
Here it is, if I'm not mistaken :)
http://www.codeguru.com/Cpp/W-P/win32/article.php/c1437/
http://www.codeguru.com/Cpp/W-P/win32/article.php/c1437/
Thanks! Bookmarking that one, too tired for reading now.