ReactOS  0.4.14-dev-317-g96040ec
frontendctl.c File Reference
#include "consrv.h"
#include "include/conio.h"
#include "include/conio2.h"
#include "conoutput.h"
#include "console.h"
#include "handle.h"
#include <debug.h>
Include dependency graph for frontendctl.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

 CSR_API (SrvGetConsoleHardwareState)
 
 CSR_API (SrvSetConsoleHardwareState)
 
 CSR_API (SrvGetConsoleDisplayMode)
 
 CSR_API (SrvSetConsoleDisplayMode)
 
 CSR_API (SrvGetLargestConsoleWindowSize)
 
 CSR_API (SrvShowConsoleCursor)
 
 CSR_API (SrvSetConsoleCursor)
 
 CSR_API (SrvConsoleMenuControl)
 
 CSR_API (SrvSetConsoleMenuClose)
 
 CSR_API (SrvGetConsoleWindow)
 
 CSR_API (SrvSetConsoleIcon)
 
 CSR_API (SrvGetConsoleSelectionInfo)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 18 of file frontendctl.c.

Function Documentation

◆ CSR_API() [1/12]

CSR_API ( SrvGetConsoleHardwareState  )

Definition at line 64 of file frontendctl.c.

65 {
66 #if 0
68  PCONSOLE_GETSETHWSTATE HardwareStateRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.HardwareStateRequest;
71 
73  HardwareStateRequest->OutputHandle,
74  &Buff,
76  TRUE);
77  if (!NT_SUCCESS(Status))
78  {
79  DPRINT1("Failed to get console handle in SrvGetConsoleHardwareState\n");
80  return Status;
81  }
82 
83  Console = Buff->Header.Console;
84  HardwareStateRequest->State = Console->HardwareState;
85 
87  return Status;
88 #else
91 #endif
92 }
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE * Console
Definition: conio.h:52
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
CONSOLE_IO_OBJECT Header
Definition: conio.h:82
#define ConSrvGetTextModeBuffer(ProcessData, Handle, Ptr, Access, LockConsole)
Definition: conoutput.h:12
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked)
Definition: conoutput.h:33
#define GENERIC_READ
Definition: compat.h:124
Status
Definition: gdiplustypes.h:24
CConsole Console
#define DPRINT1
Definition: precomp.h:8
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define UNIMPLEMENTED
Definition: debug.h:114

◆ CSR_API() [2/12]

CSR_API ( SrvSetConsoleHardwareState  )

Definition at line 94 of file frontendctl.c.

95 {
96 #if 0
98  PCONSOLE_GETSETHWSTATE HardwareStateRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.HardwareStateRequest;
101 
103  HardwareStateRequest->OutputHandle,
104  &Buff,
106  TRUE);
107  if (!NT_SUCCESS(Status))
108  {
109  DPRINT1("Failed to get console handle in SrvSetConsoleHardwareState\n");
110  return Status;
111  }
112 
113  DPRINT("Setting console hardware state.\n");
114  Console = Buff->Header.Console;
115  Status = SetConsoleHardwareState(Console, HardwareStateRequest->State);
116 
118  return Status;
119 #else
121  return STATUS_NOT_IMPLEMENTED;
122 #endif
123 }
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE * Console
Definition: conio.h:52
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
CONSOLE_IO_OBJECT Header
Definition: conio.h:82
#define GENERIC_WRITE
Definition: nt_native.h:90
BOOL WINAPI SetConsoleHardwareState(HANDLE hConsoleOutput, DWORD Flags, DWORD State)
Definition: console.c:944
void DPRINT(...)
Definition: polytest.cpp:61
#define ConSrvGetTextModeBuffer(ProcessData, Handle, Ptr, Access, LockConsole)
Definition: conoutput.h:12
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked)
Definition: conoutput.h:33
Status
Definition: gdiplustypes.h:24
CConsole Console
#define DPRINT1
Definition: precomp.h:8
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define UNIMPLEMENTED
Definition: debug.h:114

◆ CSR_API() [3/12]

CSR_API ( SrvGetConsoleDisplayMode  )

Definition at line 125 of file frontendctl.c.

126 {
128  PCONSOLE_GETDISPLAYMODE GetDisplayModeRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.GetDisplayModeRequest;
130 
132  &Console, TRUE);
133  if (!NT_SUCCESS(Status)) return Status;
134 
135  GetDisplayModeRequest->DisplayMode = ConioGetDisplayMode(Console);
136 
138  return STATUS_SUCCESS;
139 }
NTSTATUS ConSrvGetConsole(IN PCONSOLE_PROCESS_DATA ProcessData, OUT PCONSRV_CONSOLE *Console, IN BOOLEAN LockConsole)
Definition: console.c:271
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
VOID ConSrvReleaseConsole(IN PCONSRV_CONSOLE Console, IN BOOLEAN IsConsoleLocked)
Definition: console.c:296
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
Status
Definition: gdiplustypes.h:24
#define ConioGetDisplayMode(Console)
Definition: conio2.h:37
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [4/12]

CSR_API ( SrvSetConsoleDisplayMode  )

Definition at line 141 of file frontendctl.c.

142 {
144  PCONSOLE_SETDISPLAYMODE SetDisplayModeRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.SetDisplayModeRequest;
147 
149  SetDisplayModeRequest->OutputHandle,
150  &Buff,
152  TRUE);
153  if (!NT_SUCCESS(Status)) return Status;
154 
155  Console = Buff->Header.Console;
156 
157  if (ConioSetDisplayMode(Console, SetDisplayModeRequest->DisplayMode))
158  {
159  SetDisplayModeRequest->NewSBDim = Buff->ScreenBufferSize;
161  }
162  else
163  {
165  }
166 
168  return Status;
169 }
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE * Console
Definition: conio.h:52
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
CONSOLE_IO_OBJECT Header
Definition: conio.h:82
COORD ScreenBufferSize
Definition: conio.h:87
#define GENERIC_WRITE
Definition: nt_native.h:90
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked)
Definition: conoutput.h:33
#define ConSrvGetScreenBuffer(ProcessData, Handle, Ptr, Access, LockConsole)
Definition: conoutput.h:26
#define ConioSetDisplayMode(Console, NewMode)
Definition: conio2.h:39
Status
Definition: gdiplustypes.h:24
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [5/12]

CSR_API ( SrvGetLargestConsoleWindowSize  )

Definition at line 171 of file frontendctl.c.

172 {
174  PCONSOLE_GETLARGESTWINDOWSIZE GetLargestWindowSizeRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.GetLargestWindowSizeRequest;
177 
179  GetLargestWindowSizeRequest->OutputHandle,
180  &Buff,
181  GENERIC_READ,
182  TRUE);
183  if (!NT_SUCCESS(Status)) return Status;
184 
185  Console = Buff->Header.Console;
186  ConioGetLargestConsoleWindowSize(Console, &GetLargestWindowSizeRequest->Size);
187 
189  return STATUS_SUCCESS;
190 }
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE * Console
Definition: conio.h:52
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
CONSOLE_IO_OBJECT Header
Definition: conio.h:82
#define ConSrvGetTextModeBuffer(ProcessData, Handle, Ptr, Access, LockConsole)
Definition: conoutput.h:12
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked)
Definition: conoutput.h:33
#define GENERIC_READ
Definition: compat.h:124
Status
Definition: gdiplustypes.h:24
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define ConioGetLargestConsoleWindowSize(Console, pSize)
Definition: conio2.h:35
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [6/12]

CSR_API ( SrvShowConsoleCursor  )

Definition at line 192 of file frontendctl.c.

193 {
195  PCONSOLE_SHOWCURSOR ShowCursorRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.ShowCursorRequest;
198 
200  ShowCursorRequest->OutputHandle,
201  &Buff,
203  TRUE);
204  if (!NT_SUCCESS(Status)) return Status;
205 
206  Console = Buff->Header.Console;
207 
208  ShowCursorRequest->RefCount = ConioShowMouseCursor(Console, ShowCursorRequest->Show);
209 
211  return STATUS_SUCCESS;
212 }
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE * Console
Definition: conio.h:52
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
CONSOLE_IO_OBJECT Header
Definition: conio.h:82
#define GENERIC_WRITE
Definition: nt_native.h:90
#define ConioShowMouseCursor(Console, Show)
Definition: conio2.h:41
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked)
Definition: conoutput.h:33
#define ConSrvGetScreenBuffer(ProcessData, Handle, Ptr, Access, LockConsole)
Definition: conoutput.h:26
Status
Definition: gdiplustypes.h:24
HANDLE OutputHandle
Definition: conmsg.h:330
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [7/12]

CSR_API ( SrvSetConsoleCursor  )

Definition at line 214 of file frontendctl.c.

215 {
217  BOOL Success;
218  PCONSOLE_SETCURSOR SetCursorRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.SetCursorRequest;
221 
222  // FIXME: Tests show that this function is used only for graphics screen buffers
223  // and otherwise it returns false + set last error to invalid handle.
224  // NOTE: I find that behaviour is ridiculous but ok, let's accept that at the moment...
226  SetCursorRequest->OutputHandle,
227  &Buff,
229  TRUE);
230  if (!NT_SUCCESS(Status)) return Status;
231 
232  Console = Buff->Header.Console;
233 
234  Success = ConioSetMouseCursor(Console, SetCursorRequest->hCursor);
235 
238 }
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE * Console
Definition: conio.h:52
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
CONSOLE_IO_OBJECT Header
Definition: conio.h:82
unsigned int BOOL
Definition: ntddk_ex.h:94
#define ConioSetMouseCursor(Console, hCursor)
Definition: conio2.h:43
#define GENERIC_WRITE
Definition: nt_native.h:90
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked)
Definition: conoutput.h:33
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
HANDLE OutputHandle
Definition: conmsg.h:338
Status
Definition: gdiplustypes.h:24
#define ConSrvGetGraphicsBuffer(ProcessData, Handle, Ptr, Access, LockConsole)
Definition: conoutput.h:19
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [8/12]

CSR_API ( SrvConsoleMenuControl  )

Definition at line 240 of file frontendctl.c.

241 {
243  PCONSOLE_MENUCONTROL MenuControlRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.MenuControlRequest;
246 
248  MenuControlRequest->OutputHandle,
249  &Buff,
251  TRUE);
252  if (!NT_SUCCESS(Status)) return Status;
253 
254  Console = Buff->Header.Console;
255 
256  MenuControlRequest->hMenu = ConioMenuControl(Console,
257  MenuControlRequest->dwCmdIdLow,
258  MenuControlRequest->dwCmdIdHigh);
259 
261  return STATUS_SUCCESS;
262 }
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE * Console
Definition: conio.h:52
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
HANDLE OutputHandle
Definition: conmsg.h:693
CONSOLE_IO_OBJECT Header
Definition: conio.h:82
#define GENERIC_WRITE
Definition: nt_native.h:90
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked)
Definition: conoutput.h:33
#define ConSrvGetScreenBuffer(ProcessData, Handle, Ptr, Access, LockConsole)
Definition: conoutput.h:26
Status
Definition: gdiplustypes.h:24
#define ConioMenuControl(Console, CmdIdLow, CmdIdHigh)
Definition: conio2.h:45
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [9/12]

CSR_API ( SrvSetConsoleMenuClose  )

Definition at line 264 of file frontendctl.c.

265 {
267  BOOL Success;
268  PCONSOLE_SETMENUCLOSE SetMenuCloseRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.SetMenuCloseRequest;
270 
272  &Console, TRUE);
273  if (!NT_SUCCESS(Status)) return Status;
274 
275  Success = ConioSetMenuClose(Console, SetMenuCloseRequest->Enable);
276 
279 }
NTSTATUS ConSrvGetConsole(IN PCONSOLE_PROCESS_DATA ProcessData, OUT PCONSRV_CONSOLE *Console, IN BOOLEAN LockConsole)
Definition: console.c:271
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
VOID ConSrvReleaseConsole(IN PCONSRV_CONSOLE Console, IN BOOLEAN IsConsoleLocked)
Definition: console.c:296
unsigned int BOOL
Definition: ntddk_ex.h:94
#define ConioSetMenuClose(Console, Enable)
Definition: conio2.h:47
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
Status
Definition: gdiplustypes.h:24
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [10/12]

CSR_API ( SrvGetConsoleWindow  )

Definition at line 281 of file frontendctl.c.

282 {
284  PCONSOLE_GETWINDOW GetWindowRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.GetWindowRequest;
286 
288  if (!NT_SUCCESS(Status)) return Status;
289 
290  GetWindowRequest->WindowHandle = ConioGetConsoleWindowHandle(Console);
291 
293  return STATUS_SUCCESS;
294 }
NTSTATUS ConSrvGetConsole(IN PCONSOLE_PROCESS_DATA ProcessData, OUT PCONSRV_CONSOLE *Console, IN BOOLEAN LockConsole)
Definition: console.c:271
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
VOID ConSrvReleaseConsole(IN PCONSRV_CONSOLE Console, IN BOOLEAN IsConsoleLocked)
Definition: console.c:296
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
Status
Definition: gdiplustypes.h:24
CConsole Console
#define ConioGetConsoleWindowHandle(Console)
Definition: conio2.h:33
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [11/12]

CSR_API ( SrvSetConsoleIcon  )

Definition at line 296 of file frontendctl.c.

297 {
299  PCONSOLE_SETICON SetIconRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.SetIconRequest;
301 
303  if (!NT_SUCCESS(Status)) return Status;
304 
305  Status = (ConioChangeIcon(Console, SetIconRequest->WindowIcon)
308 
310  return Status;
311 }
NTSTATUS ConSrvGetConsole(IN PCONSOLE_PROCESS_DATA ProcessData, OUT PCONSRV_CONSOLE *Console, IN BOOLEAN LockConsole)
Definition: console.c:271
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
VOID ConSrvReleaseConsole(IN PCONSRV_CONSOLE Console, IN BOOLEAN IsConsoleLocked)
Definition: console.c:296
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
#define ConioChangeIcon(Console, hWindowIcon)
Definition: conio2.h:31
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
Status
Definition: gdiplustypes.h:24
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
return STATUS_SUCCESS
Definition: btrfs.c:2938

◆ CSR_API() [12/12]

CSR_API ( SrvGetConsoleSelectionInfo  )

Definition at line 313 of file frontendctl.c.

314 {
316  PCONSOLE_GETSELECTIONINFO GetSelectionInfoRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.GetSelectionInfoRequest;
318 
320  if (NT_SUCCESS(Status))
321  {
322  memset(&GetSelectionInfoRequest->Info, 0, sizeof(CONSOLE_SELECTION_INFO));
323  if (Console->Selection.dwFlags != 0)
324  GetSelectionInfoRequest->Info = Console->Selection;
326  }
327 
328  return Status;
329 }
NTSTATUS ConSrvGetConsole(IN PCONSOLE_PROCESS_DATA ProcessData, OUT PCONSRV_CONSOLE *Console, IN BOOLEAN LockConsole)
Definition: console.c:271
#define CsrGetClientThread()
Definition: csrsrv.h:77
#define TRUE
Definition: types.h:120
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
LONG NTSTATUS
Definition: precomp.h:26
VOID ConSrvReleaseConsole(IN PCONSRV_CONSOLE Console, IN BOOLEAN IsConsoleLocked)
Definition: console.c:296
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ConsoleGetPerProcessData(Process)
Definition: consrv.h:37
CONSOLE_SELECTION_INFO Info
Definition: conmsg.h:844
Status
Definition: gdiplustypes.h:24
CConsole Console
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define memset(x, y, z)
Definition: compat.h:39