By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,820 Members | 1,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,820 IT Pros & Developers. It's quick & easy.

asking for parentprocess

P: n/a
Hello,

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.

Thanks in advance

Beate
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.