ReactOS 0.4.16-dev-338-g34e76ad
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}
CConsole Console
static VOID PurgeInputBuffer(IN PCONSOLE_INPUT_BUFFER InputBuffer)
Definition: coninput.c:174
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3402

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,
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}
LONG NTSTATUS
Definition: precomp.h:26
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:36
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
Status
Definition: gdiplustypes.h:25
#define OBJ_INHERIT
Definition: winternl.h:225
#define EVENT_ALL_ACCESS
Definition: isotest.c:82
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
@ NotificationEvent
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:96
#define STATUS_SUCCESS
Definition: shellext.h:65
VOID ConSrvInitObject(IN OUT PCONSOLE_IO_OBJECT Object, IN CONSOLE_IO_OBJECT_TYPE Type, IN PCONSOLE Console)
Definition: handle.c:211
@ INPUT_BUFFER
Definition: conio.h:28
#define ENABLE_ECHO_INPUT
Definition: wincon.h:80
#define ENABLE_MOUSE_INPUT
Definition: wincon.h:82
#define ENABLE_LINE_INPUT
Definition: wincon.h:79
#define ENABLE_PROCESSED_INPUT
Definition: wincon.h:78

Referenced by ConDrvInitConsole().