ReactOS  0.4.13-dev-479-gec9c8fd
conoutput.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Console Server DLL
4  * FILE: win32ss/user/winsrv/consrv/conoutput.h
5  * PURPOSE: Console Output functions
6  * PROGRAMMERS: Jeffrey Morlan
7  * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
8  */
9 
10 #pragma once
11 
12 #define ConSrvGetTextModeBuffer(ProcessData, Handle, Ptr, Access, LockConsole) \
13  ConSrvGetObject((ProcessData), (Handle), (PCONSOLE_IO_OBJECT*)(Ptr), NULL, \
14  (Access), (LockConsole), TEXTMODE_BUFFER)
15 #define ConSrvGetTextModeBufferAndHandleEntry(ProcessData, Handle, Ptr, Entry, Access, LockConsole) \
16  ConSrvGetObject((ProcessData), (Handle), (PCONSOLE_IO_OBJECT*)(Ptr), (Entry), \
17  (Access), (LockConsole), TEXTMODE_BUFFER)
18 
19 #define ConSrvGetGraphicsBuffer(ProcessData, Handle, Ptr, Access, LockConsole) \
20  ConSrvGetObject((ProcessData), (Handle), (PCONSOLE_IO_OBJECT*)(Ptr), NULL, \
21  (Access), (LockConsole), GRAPHICS_BUFFER)
22 #define ConSrvGetGraphicsBufferAndHandleEntry(ProcessData, Handle, Ptr, Entry, Access, LockConsole) \
23  ConSrvGetObject((ProcessData), (Handle), (PCONSOLE_IO_OBJECT*)(Ptr), (Entry), \
24  (Access), (LockConsole), GRAPHICS_BUFFER)
25 
26 #define ConSrvGetScreenBuffer(ProcessData, Handle, Ptr, Access, LockConsole) \
27  ConSrvGetObject((ProcessData), (Handle), (PCONSOLE_IO_OBJECT*)(Ptr), NULL, \
28  (Access), (LockConsole), SCREEN_BUFFER)
29 #define ConSrvGetScreenBufferAndHandleEntry(ProcessData, Handle, Ptr, Entry, Access, LockConsole) \
30  ConSrvGetObject((ProcessData), (Handle), (PCONSOLE_IO_OBJECT*)(Ptr), (Entry), \
31  (Access), (LockConsole), SCREEN_BUFFER)
32 
33 #define ConSrvReleaseScreenBuffer(Buff, IsConsoleLocked) \
34  ConSrvReleaseObject(&(Buff)->Header, (IsConsoleLocked))
35 
39  IN ULONG BufferType,
42 // VOID ConioSetActiveScreenBuffer(PCONSOLE_SCREEN_BUFFER Buffer);
43 
46 
47 /* EOF */
#define IN
Definition: typedefs.h:38
CONSOLE_SCREEN_BUFFER_INFO ScreenBufferInfo
Definition: notevil.c:38
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS ConDrvCreateScreenBuffer(OUT PCONSOLE_SCREEN_BUFFER *Buffer, IN PCONSOLE Console, IN HANDLE ProcessHandle OPTIONAL, IN ULONG BufferType, IN PVOID ScreenBufferInfo)
Definition: conoutput.c:79
VOID NTAPI ConDrvDeleteScreenBuffer(PCONSOLE_SCREEN_BUFFER Buffer)
Definition: conoutput.c:123
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
PCONSOLE_SCREEN_BUFFER ConDrvGetActiveScreenBuffer(IN PCONSOLE Console)
Definition: conoutput.c:194
Definition: bufpool.h:45
CConsole Console
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
_In_ HANDLE ProcessHandle
Definition: mmfuncs.h:403
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68