xref: /reactos/win32ss/user/winsrv/consrv/api.h (revision 6e4f0365)
1 /*
2  * COPYRIGHT:       See COPYING in the top level directory
3  * PROJECT:         ReactOS Console Server DLL
4  * FILE:            win32ss/user/winsrv/consrv/api.h
5  * PURPOSE:         Public server APIs definitions
6  * PROGRAMMERS:     Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7  */
8 
9 #pragma once
10 
11 /* alias.c */
12 CSR_API(SrvAddConsoleAlias);
13 CSR_API(SrvGetConsoleAlias);
14 CSR_API(SrvGetConsoleAliases);
15 CSR_API(SrvGetConsoleAliasesLength);
16 CSR_API(SrvGetConsoleAliasExes);
17 CSR_API(SrvGetConsoleAliasExesLength);
18 
19 /* coninput.c */
20 CSR_API(SrvReadConsole);
21 CSR_API(SrvGetConsoleInput);
22 CSR_API(SrvWriteConsoleInput);
23 CSR_API(SrvFlushConsoleInputBuffer);
24 CSR_API(SrvGetConsoleNumberOfInputEvents);
25 
26 /* conoutput.c */
27 CSR_API(SrvInvalidateBitMapRect);
28 CSR_API(SrvSetConsolePalette);
29 CSR_API(SrvReadConsoleOutput);
30 CSR_API(SrvWriteConsole);
31 CSR_API(SrvWriteConsoleOutput);
32 CSR_API(SrvReadConsoleOutputString);
33 CSR_API(SrvWriteConsoleOutputString);
34 CSR_API(SrvFillConsoleOutput);
35 CSR_API(SrvGetConsoleCursorInfo);
36 CSR_API(SrvSetConsoleCursorInfo);
37 CSR_API(SrvSetConsoleCursorPosition);
38 CSR_API(SrvSetConsoleTextAttribute);
39 CSR_API(SrvCreateConsoleScreenBuffer);
40 CSR_API(SrvGetConsoleScreenBufferInfo);
41 CSR_API(SrvSetConsoleActiveScreenBuffer);
42 CSR_API(SrvSetConsoleScreenBufferSize);
43 CSR_API(SrvScrollConsoleScreenBuffer);
44 CSR_API(SrvSetConsoleWindowInfo);
45 
46 /* console.c */
47 CSR_API(SrvAllocConsole);
48 CSR_API(SrvAttachConsole);
49 CSR_API(SrvFreeConsole);
50 CSR_API(SrvGetConsoleMode);
51 CSR_API(SrvSetConsoleMode);
52 CSR_API(SrvGetConsoleTitle);
53 CSR_API(SrvSetConsoleTitle);
54 CSR_API(SrvGetConsoleCP);
55 CSR_API(SrvSetConsoleCP);
56 CSR_API(SrvGetConsoleProcessList);
57 CSR_API(SrvGenerateConsoleCtrlEvent);
58 CSR_API(SrvConsoleNotifyLastClose);
59 
60 CSR_API(SrvGetConsoleMouseInfo);
61 CSR_API(SrvSetConsoleKeyShortcuts);
62 CSR_API(SrvGetConsoleKeyboardLayoutName);
63 CSR_API(SrvGetConsoleCharType);
64 CSR_API(SrvSetConsoleLocalEUDC);
65 CSR_API(SrvSetConsoleCursorMode);
66 CSR_API(SrvGetConsoleCursorMode);
67 CSR_API(SrvGetConsoleNlsMode);
68 CSR_API(SrvSetConsoleNlsMode);
69 CSR_API(SrvGetConsoleLangId);
70 
71 /* frontendctl.c */
72 CSR_API(SrvGetConsoleHardwareState);
73 CSR_API(SrvSetConsoleHardwareState);
74 CSR_API(SrvGetConsoleDisplayMode);
75 CSR_API(SrvSetConsoleDisplayMode);
76 CSR_API(SrvGetLargestConsoleWindowSize);
77 CSR_API(SrvShowConsoleCursor);
78 CSR_API(SrvSetConsoleCursor);
79 CSR_API(SrvConsoleMenuControl);
80 CSR_API(SrvSetConsoleMenuClose);
81 
82 /* Used by USERSRV!SrvGetThreadConsoleDesktop() */
83 NTSTATUS
84 NTAPI
85 GetThreadConsoleDesktop(
86     IN ULONG_PTR ThreadId,
87     OUT HDESK* ConsoleDesktop);
88 
89 CSR_API(SrvGetConsoleWindow);
90 CSR_API(SrvSetConsoleIcon);
91 CSR_API(SrvGetConsoleSelectionInfo);
92 
93 CSR_API(SrvGetConsoleNumberOfFonts);
94 CSR_API(SrvGetConsoleFontInfo);
95 CSR_API(SrvGetConsoleFontSize);
96 CSR_API(SrvGetConsoleCurrentFont);
97 CSR_API(SrvSetConsoleFont);
98 
99 /* handle.c */
100 CSR_API(SrvOpenConsole);
101 CSR_API(SrvDuplicateHandle);
102 CSR_API(SrvGetHandleInformation);
103 CSR_API(SrvSetHandleInformation);
104 CSR_API(SrvCloseHandle);
105 CSR_API(SrvVerifyConsoleIoHandle);
106 
107 /* lineinput.c */
108 CSR_API(SrvGetConsoleCommandHistory);
109 CSR_API(SrvGetConsoleCommandHistoryLength);
110 CSR_API(SrvExpungeConsoleCommandHistory);
111 CSR_API(SrvSetConsoleNumberOfCommands);
112 CSR_API(SrvGetConsoleHistory);
113 CSR_API(SrvSetConsoleHistory);
114 CSR_API(SrvSetConsoleCommandHistoryMode);
115 
116 /* subsysreg.c */
117 CSR_API(SrvRegisterConsoleVDM);
118 CSR_API(SrvVDMConsoleOperation);
119 CSR_API(SrvRegisterConsoleOS2);
120 CSR_API(SrvSetConsoleOS2OemFormat);
121 CSR_API(SrvRegisterConsoleIME);
122 CSR_API(SrvUnregisterConsoleIME);
123 
124 /* EOF */
125