ReactOS 0.4.16-dev-311-g9382aa2
emscons.c File Reference
#include "bl.h"
Include dependency graph for emscons.c:

Go to the source code of this file.

Functions

NTSTATUS ConsoleRemoteConstruct (_In_ PBL_REMOTE_CONSOLE RemoteConsole)
 
NTSTATUS ConsoleCreateRemoteConsole (_In_ PBL_TEXT_CONSOLE *TextConsole)
 

Function Documentation

◆ ConsoleCreateRemoteConsole()

NTSTATUS ConsoleCreateRemoteConsole ( _In_ PBL_TEXT_CONSOLE TextConsole)

Definition at line 31 of file emscons.c.

34{
35 PBL_REMOTE_CONSOLE RemoteConsole;
37
38 /* Allocate the remote console */
39 RemoteConsole = BlMmAllocateHeap(sizeof(*RemoteConsole));
40 if (!RemoteConsole)
41 {
43 }
44
45 /* Construct it */
46 Status = ConsoleRemoteConstruct(RemoteConsole);
47 if (!NT_SUCCESS(Status))
48 {
49 /* Failed to construct it, delete it */
50 BlMmFreeHeap(RemoteConsole);
51 return Status;
52 }
53
54 /* Save the global pointer and return a pointer to the text console */
55 DspRemoteInputConsole = RemoteConsole;
56 *TextConsole = &RemoteConsole->TextConsole;
57 return STATUS_SUCCESS;
58}
LONG NTSTATUS
Definition: precomp.h:26
PVOID BlMmAllocateHeap(_In_ SIZE_T Size)
Definition: heapalloc.c:569
PVOID DspRemoteInputConsole
Definition: display.c:35
NTSTATUS BlMmFreeHeap(_In_ PVOID Buffer)
Definition: heapalloc.c:663
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
NTSTATUS ConsoleRemoteConstruct(_In_ PBL_REMOTE_CONSOLE RemoteConsole)
Definition: emscons.c:18
Status
Definition: gdiplustypes.h:25
#define STATUS_SUCCESS
Definition: shellext.h:65
BL_TEXT_CONSOLE TextConsole
Definition: bl.h:1165
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158

Referenced by DsppInitialize(), and DsppReinitialize().

◆ ConsoleRemoteConstruct()

NTSTATUS ConsoleRemoteConstruct ( _In_ PBL_REMOTE_CONSOLE  RemoteConsole)

Definition at line 18 of file emscons.c.

21{
22#ifdef BL_EMS_SUPPORT
23#error Implement me
24#else
25 /* We don't support EMS for now */
27#endif
28}
#define STATUS_NOT_IMPLEMENTED
Definition: d3dkmdt.h:42

Referenced by ConsoleCreateRemoteConsole().