CreateProcess and consoles

What is the difference between using CREATE_NEW_CONSOLE and
DETACHED_PROCESS flags to CreateProcess?

CREATE_NEW_CONSOLE creates a process with a new console, instead of
inheriting the parent console. DETACHED_PROCESS creates a new process that
does not have access to the parent process console - AllocConsole can be
called later to create a new console.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Phillip Susi
Sent: Thursday, April 20, 2000 4:50 PM
To: NT Developers Interest List
Subject: [ntdev] CreateProcess and consoles

What is the difference between using CREATE_NEW_CONSOLE and
DETACHED_PROCESS flags to CreateProcess?


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Right, but how does the effect differ? If you create a detached process,
the new process is going to allocate a console anyway ( assuming it is a
win32 console process ) so why would you use one instead of another?

At 09:09 PM 4/20/00 -0700, you wrote:

CREATE_NEW_CONSOLE creates a process with a new console, instead of
inheriting the parent console. DETACHED_PROCESS creates a new process that
does not have access to the parent process console - AllocConsole can be
called later to create a new console.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Phillip Susi
Sent: Thursday, April 20, 2000 4:50 PM
To: NT Developers Interest List
Subject: [ntdev] CreateProcess and consoles

What is the difference between using CREATE_NEW_CONSOLE and
DETACHED_PROCESS flags to CreateProcess?


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@iag.net
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

DETACHED_PROCESS does not automatically create a new console,
CREATE_NEW_CONSOLE does. One may want to create a process without a console.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Phillip Susi
Sent: Thursday, April 20, 2000 9:16 PM
To: NT Developers Interest List
Subject: [ntdev] RE: CreateProcess and consoles

Right, but how does the effect differ? If you create a detached process,
the new process is going to allocate a console anyway ( assuming it is a
win32 console process ) so why would you use one instead of another?

At 09:09 PM 4/20/00 -0700, you wrote:

CREATE_NEW_CONSOLE creates a process with a new console, instead of
inheriting the parent console. DETACHED_PROCESS creates a new process that
does not have access to the parent process console - AllocConsole can be
called later to create a new console.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Phillip Susi
Sent: Thursday, April 20, 2000 4:50 PM
To: NT Developers Interest List
Subject: [ntdev] CreateProcess and consoles

What is the difference between using CREATE_NEW_CONSOLE and
DETACHED_PROCESS flags to CreateProcess?


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@iag.net
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Once again,I understand this, but it seems like it is only a semantic
diference, as if you create a process with no console, it is likely to
create one anyway. If the process does not create a console ( i.e. it is a
win32 gui app ) then what happens to the one that was created with
CREATE_NEW_CONSOLE?

At 09:39 PM 4/20/00 -0700, you wrote:

DETACHED_PROCESS does not automatically create a new console,
CREATE_NEW_CONSOLE does. One may want to create a process without a console.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Phillip Susi
Sent: Thursday, April 20, 2000 9:16 PM
To: NT Developers Interest List
Subject: [ntdev] RE: CreateProcess and consoles

Right, but how does the effect differ? If you create a detached process,
the new process is going to allocate a console anyway ( assuming it is a
win32 console process ) so why would you use one instead of another?

At 09:09 PM 4/20/00 -0700, you wrote:
>CREATE_NEW_CONSOLE creates a process with a new console, instead of
>inheriting the parent console. DETACHED_PROCESS creates a new process that
>does not have access to the parent process console - AllocConsole can be
>called later to create a new console.
>
>Jim
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com]On Behalf Of Phillip Susi
>Sent: Thursday, April 20, 2000 4:50 PM
>To: NT Developers Interest List
>Subject: [ntdev] CreateProcess and consoles
>
>
>What is the difference between using CREATE_NEW_CONSOLE and
>DETACHED_PROCESS flags to CreateProcess?
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
>To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@iag.net
>To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@iag.net
To unsubscribe send a blank email to $subst(‘Email.Unsub’)