mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Create console active event inheritable.
svn path=/trunk/; revision=2938
This commit is contained in:
parent
b6c40390d2
commit
cbfefd1beb
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: conio.c,v 1.29 2002/05/05 03:45:21 phreak Exp $
|
||||
/* $Id: conio.c,v 1.30 2002/05/07 22:44:23 hbirr Exp $
|
||||
*
|
||||
* reactos/subsys/csrss/api/conio.c
|
||||
*
|
||||
|
@ -665,6 +665,7 @@ VOID STDCALL CsrDeleteScreenBuffer( PCSRSS_SCREEN_BUFFER Buffer )
|
|||
NTSTATUS STDCALL CsrInitConsole(PCSRSS_CONSOLE Console)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
|
||||
Console->Title.MaximumLength = Console->Title.Length = 0;
|
||||
Console->Title.Buffer = 0;
|
||||
|
@ -679,7 +680,10 @@ NTSTATUS STDCALL CsrInitConsole(PCSRSS_CONSOLE Console)
|
|||
Console->Mode = ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT | ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT;
|
||||
Console->EarlyReturn = FALSE;
|
||||
InitializeListHead(&Console->InputEvents);
|
||||
Status = NtCreateEvent( &Console->ActiveEvent, STANDARD_RIGHTS_ALL, 0, FALSE, FALSE );
|
||||
|
||||
InitializeObjectAttributes(&ObjectAttributes, NULL, OBJ_INHERIT, NULL, NULL);
|
||||
|
||||
Status = NtCreateEvent( &Console->ActiveEvent, STANDARD_RIGHTS_ALL, &ObjectAttributes, FALSE, FALSE );
|
||||
if( !NT_SUCCESS( Status ) )
|
||||
{
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue