Beate Mielke wrote:
> I have a Consoleprogram, which calls another program using
> CreateProcess(..., NEW_CONSOLE, ...).
> The childprocess can also run standalone.
>
> I'm looking for a command, which tells me whether the childprogram runs
> standalone or was created by a parentprocess.
(a) These things are off-topic here, they are non-standard, they exist
only on your platform, ask in a platform-specific newsgroup.
(b) One simple way to let the child know is to pass some specific
command-line argument to it indicate that another process created it.
V
|