ReactOS  0.4.14-dev-98-gb0d4763
conio2.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_new/include/conio2.h
5  * PURPOSE: Internal Console I/O Interface
6  * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7  */
8 
9 #pragma once
10 
11 /* Macros used to call functions in the FRONTEND_VTBL virtual table */
12 
13 #define ConioDrawRegion(Console, Region) \
14  (Console)->TermIFace.Vtbl->DrawRegion(&(Console)->TermIFace, (Region))
15 #define ConioWriteStream(Console, Block, CurStartX, CurStartY, ScrolledLines, Buffer, Length) \
16  (Console)->TermIFace.Vtbl->WriteStream(&(Console)->TermIFace, (Block), (CurStartX), (CurStartY), \
17  (ScrolledLines), (Buffer), (Length))
18 #define ConioSetCursorInfo(Console, Buff) \
19  (Console)->TermIFace.Vtbl->SetCursorInfo(&(Console)->TermIFace, (Buff))
20 #define ConioSetScreenInfo(Console, Buff, OldCursorX, OldCursorY) \
21  (Console)->TermIFace.Vtbl->SetScreenInfo(&(Console)->TermIFace, (Buff), (OldCursorX), (OldCursorY))
22 #define ConioResizeTerminal(Console) \
23  (Console)->TermIFace.Vtbl->ResizeTerminal(&(Console)->TermIFace)
24 #define ConioProcessKeyCallback(Console, Msg, KeyStateMenu, ShiftState, VirtualKeyCode, Down) \
25  (Console)->TermIFace.Vtbl->ProcessKeyCallback(&(Console)->TermIFace, (Msg), (KeyStateMenu), (ShiftState), (VirtualKeyCode), (Down))
26 #define ConioRefreshInternalInfo(Console) \
27  (Console)->TermIFace.Vtbl->RefreshInternalInfo(&(Console)->TermIFace)
28 
29 #define ConioChangeTitle(Console) \
30  (Console)->TermIFace.Vtbl->ChangeTitle(&(Console)->TermIFace)
31 #define ConioChangeIcon(Console, hWindowIcon) \
32  (Console)->TermIFace.Vtbl->ChangeIcon(&(Console)->TermIFace, (hWindowIcon))
33 #define ConioGetConsoleWindowHandle(Console) \
34  (Console)->TermIFace.Vtbl->GetConsoleWindowHandle(&(Console)->TermIFace)
35 #define ConioGetLargestConsoleWindowSize(Console, pSize) \
36  (Console)->TermIFace.Vtbl->GetLargestConsoleWindowSize(&(Console)->TermIFace, (pSize))
37 #define ConioGetDisplayMode(Console) \
38  (Console)->TermIFace.Vtbl->GetDisplayMode(&(Console)->TermIFace)
39 #define ConioSetDisplayMode(Console, NewMode) \
40  (Console)->TermIFace.Vtbl->SetDisplayMode(&(Console)->TermIFace, (NewMode))
41 #define ConioShowMouseCursor(Console, Show) \
42  (Console)->TermIFace.Vtbl->ShowMouseCursor(&(Console)->TermIFace, (Show))
43 #define ConioSetMouseCursor(Console, hCursor) \
44  (Console)->TermIFace.Vtbl->SetMouseCursor(&(Console)->TermIFace, (hCursor))
45 #define ConioMenuControl(Console, CmdIdLow, CmdIdHigh) \
46  (Console)->TermIFace.Vtbl->MenuControl(&(Console)->TermIFace, (CmdIdLow), (CmdIdHigh))
47 #define ConioSetMenuClose(Console, Enable) \
48  (Console)->TermIFace.Vtbl->SetMenuClose(&(Console)->TermIFace, (Enable))
49 
50 /* EOF */