laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
How sure do you want to be and how much work are you prepared for to get the information? There is no (officially) documented way of obtaining information about the parent process, but there is a fairly well known undocumented method of obtaining the ppid. It means getting your fingers dirty with Win32::API or XS code. The starting point is the semi-documented, could-change-any-moment API ZwQueryInformationProcess, and the undocumented PVOID Reserved3 member of the PROCESS_BASIC_INFORMATION structure, which is the parent process id. There are various ways of getting the name/path once you have that. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re: Determining if a program was run from a command prompt.
by BrowserUk
|
|