mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
Commit Ctrl Event handler
svn path=/trunk/; revision=5635
This commit is contained in:
parent
c433be3d74
commit
542347bd13
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: console.c,v 1.66 2003/08/17 22:45:40 silverblade Exp $
|
/* $Id: console.c,v 1.67 2003/08/18 07:32:00 jimtabor 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
|
||||||
|
@ -1240,6 +1240,15 @@ WINBOOL STDCALL AllocConsole(VOID)
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
HANDLE hStdError;
|
HANDLE hStdError;
|
||||||
|
|
||||||
|
if(NtCurrentPeb()->ProcessParameters->hConsole)
|
||||||
|
{
|
||||||
|
DPRINT("AllocConsole: Allocate duplicate console to the same Process\n");
|
||||||
|
SetLastErrorByStatus (STATUS_OBJECT_EXISTS);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
Request.Data.AllocConsoleRequest.CtrlDispatcher = (PCONTROLDISPATCHER) &ConsoleControlDispatcher;
|
||||||
|
|
||||||
Request.Type = CSRSS_ALLOC_CONSOLE;
|
Request.Type = CSRSS_ALLOC_CONSOLE;
|
||||||
Status = CsrClientCallServer( &Request, &Reply, sizeof( CSRSS_API_REQUEST ), sizeof( CSRSS_API_REPLY ) );
|
Status = CsrClientCallServer( &Request, &Reply, sizeof( CSRSS_API_REQUEST ), sizeof( CSRSS_API_REPLY ) );
|
||||||
if( !NT_SUCCESS( Status ) || !NT_SUCCESS( Status = Reply.Status ) )
|
if( !NT_SUCCESS( Status ) || !NT_SUCCESS( Status = Reply.Status ) )
|
||||||
|
|
Loading…
Reference in a new issue