ReactOS  0.4.15-dev-1206-g731eddf
coninput.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ConsoleInput_t
 

Typedefs

typedef struct ConsoleInput_t ConsoleInput
 

Functions

NTSTATUS NTAPI ConDrvInitInputBuffer (IN PCONSOLE Console, IN ULONG InputBufferSize)
 
VOID NTAPI ConDrvDeinitInputBuffer (IN PCONSOLE Console)
 

Typedef Documentation

◆ ConsoleInput

Function Documentation

◆ ConDrvDeinitInputBuffer()

VOID NTAPI ConDrvDeinitInputBuffer ( IN PCONSOLE  Console)

Definition at line 221 of file coninput.c.

222 {
223  PurgeInputBuffer(&Console->InputBuffer);
224  NtClose(Console->InputBuffer.ActiveEvent);
225 }
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399
CConsole Console
static VOID PurgeInputBuffer(IN PCONSOLE_INPUT_BUFFER InputBuffer)
Definition: coninput.c:174

Referenced by ConDrvDeleteConsole(), and ConDrvInitConsole().

◆ ConDrvInitInputBuffer()

NTSTATUS NTAPI ConDrvInitInputBuffer ( IN PCONSOLE  Console,
IN ULONG  InputBufferSize 
)

Definition at line 192 of file coninput.c.

194 {
197 
198  ConSrvInitObject(&Console->InputBuffer.Header, INPUT_BUFFER, Console);
199 
201  NULL,
202  OBJ_INHERIT,
203  NULL,
204  NULL);
205 
206  Status = NtCreateEvent(&Console->InputBuffer.ActiveEvent, EVENT_ALL_ACCESS,
208  if (!NT_SUCCESS(Status))
209  return Status;
210 
211  Console->InputBuffer.InputBufferSize = InputBufferSize;
212  Console->InputBuffer.NumberOfEvents = 0;
213  InitializeListHead(&Console->InputBuffer.InputEvents);
214  Console->InputBuffer.Mode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT |
216 
217  return STATUS_SUCCESS;
218 }
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI NtCreateEvent(OUT PHANDLE EventHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN EVENT_TYPE EventType, IN BOOLEAN InitialState)
Definition: event.c:100
#define ENABLE_ECHO_INPUT
Definition: wincon.h:80
#define FALSE
Definition: types.h:117
#define EVENT_ALL_ACCESS
Definition: isotest.c:82
smooth NULL
Definition: ftsmooth.c:416
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define OBJ_INHERIT
Definition: winternl.h:225
#define ENABLE_LINE_INPUT
Definition: wincon.h:79
#define ENABLE_MOUSE_INPUT
Definition: wincon.h:82
Status
Definition: gdiplustypes.h:24
VOID ConSrvInitObject(IN OUT PCONSOLE_IO_OBJECT Object, IN CONSOLE_IO_OBJECT_TYPE Type, IN PCONSOLE Console)
Definition: handle.c:211
#define ENABLE_PROCESSED_INPUT
Definition: wincon.h:78
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
CConsole Console
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
return STATUS_SUCCESS
Definition: btrfs.c:3014

Referenced by ConDrvInitConsole().