mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Do not create a console for GUI applications.
svn path=/trunk/; revision=4436
This commit is contained in:
parent
4950a5230f
commit
b47552e96f
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: create.c,v 1.63 2003/03/16 14:16:54 chorns Exp $
|
/* $Id: create.c,v 1.64 2003/03/26 22:11:27 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -904,7 +904,7 @@ CreateProcessW(LPCWSTR lpApplicationName,
|
||||||
Status = NtDuplicateObject (NtCurrentProcess(),
|
Status = NtDuplicateObject (NtCurrentProcess(),
|
||||||
Ppb->CurrentDirectoryHandle,
|
Ppb->CurrentDirectoryHandle,
|
||||||
hProcess,
|
hProcess,
|
||||||
&Ppb->CurrentDirectoryHandle,
|
&Ppb->CurrentDirectoryHandle,
|
||||||
0,
|
0,
|
||||||
TRUE,
|
TRUE,
|
||||||
DUPLICATE_SAME_ACCESS);
|
DUPLICATE_SAME_ACCESS);
|
||||||
|
@ -952,6 +952,12 @@ CreateProcessW(LPCWSTR lpApplicationName,
|
||||||
CsrRequest.Type = CSRSS_CREATE_PROCESS;
|
CsrRequest.Type = CSRSS_CREATE_PROCESS;
|
||||||
CsrRequest.Data.CreateProcessRequest.NewProcessId =
|
CsrRequest.Data.CreateProcessRequest.NewProcessId =
|
||||||
ProcessBasicInfo.UniqueProcessId;
|
ProcessBasicInfo.UniqueProcessId;
|
||||||
|
if (Sii.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_GUI)
|
||||||
|
{
|
||||||
|
/* Do not create a console for GUI applications */
|
||||||
|
dwCreationFlags &= ~CREATE_NEW_CONSOLE;
|
||||||
|
dwCreationFlags |= DETACHED_PROCESS;
|
||||||
|
}
|
||||||
CsrRequest.Data.CreateProcessRequest.Flags = dwCreationFlags;
|
CsrRequest.Data.CreateProcessRequest.Flags = dwCreationFlags;
|
||||||
Status = CsrClientCallServer(&CsrRequest,
|
Status = CsrClientCallServer(&CsrRequest,
|
||||||
&CsrReply,
|
&CsrReply,
|
||||||
|
|
Loading…
Reference in a new issue