ReactOS 0.4.15-dev-7889-g76290a6
vista.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * PURPOSE: Vista functions
5 * PROGRAMMERS: Thomas Weidenmueller (w3seek@reactos.com)
6 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7 */
8
9/* INCLUDES *******************************************************************/
10
11#include <k32.h>
12
13#define NDEBUG
14#include <debug.h>
15
16
17/* PUBLIC FUNCTIONS ***********************************************************/
18
19#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
20
21/*
22 * @implemented
23 */
24BOOL
28{
29 CONSOLE_API_MESSAGE ApiMessage;
30 PCONSOLE_GETSETHISTORYINFO HistoryInfoRequest = &ApiMessage.Data.HistoryInfoRequest;
31
32 if (lpConsoleHistoryInfo->cbSize != sizeof(CONSOLE_HISTORY_INFO))
33 {
35 return FALSE;
36 }
37
39 NULL,
41 sizeof(*HistoryInfoRequest));
42 if (!NT_SUCCESS(ApiMessage.Status))
43 {
44 BaseSetLastNTError(ApiMessage.Status);
45 return FALSE;
46 }
47
48 lpConsoleHistoryInfo->HistoryBufferSize = HistoryInfoRequest->HistoryBufferSize;
49 lpConsoleHistoryInfo->NumberOfHistoryBuffers = HistoryInfoRequest->NumberOfHistoryBuffers;
50 lpConsoleHistoryInfo->dwFlags = HistoryInfoRequest->dwFlags;
51
52 return TRUE;
53}
54
55
56/*
57 * @implemented
58 */
59BOOL
63{
64 CONSOLE_API_MESSAGE ApiMessage;
65 PCONSOLE_GETSETHISTORYINFO HistoryInfoRequest = &ApiMessage.Data.HistoryInfoRequest;
66
67 if (lpConsoleHistoryInfo->cbSize != sizeof(CONSOLE_HISTORY_INFO))
68 {
70 return FALSE;
71 }
72
73 HistoryInfoRequest->HistoryBufferSize = lpConsoleHistoryInfo->HistoryBufferSize;
74 HistoryInfoRequest->NumberOfHistoryBuffers = lpConsoleHistoryInfo->NumberOfHistoryBuffers;
75 HistoryInfoRequest->dwFlags = lpConsoleHistoryInfo->dwFlags;
76
78 NULL,
80 sizeof(*HistoryInfoRequest));
81 if (!NT_SUCCESS(ApiMessage.Status))
82 {
83 BaseSetLastNTError(ApiMessage.Status);
84 return FALSE;
85 }
86
87 return TRUE;
88}
89
90
91/*
92 * @unimplemented
93 */
99{
100 DPRINT1("GetConsoleOriginalTitleW(0x%p, 0x%x) UNIMPLEMENTED!\n", lpConsoleTitle, nSize);
102 return 0;
103}
104
105
106/*
107 * @unimplemented
108 */
109DWORD
110WINAPI
113 IN DWORD nSize)
114{
115 DPRINT1("GetConsoleOriginalTitleA(0x%p, 0x%x) UNIMPLEMENTED!\n", lpConsoleTitle, nSize);
117 return 0;
118}
119
120
121/*
122 * @unimplemented
123 */
124BOOL
125WINAPI
128 OUT PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
129{
130 DPRINT1("GetConsoleScreenBufferInfoEx(0x%p, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, lpConsoleScreenBufferInfoEx);
132 return FALSE;
133}
134
135
136/*
137 * @unimplemented
138 */
139BOOL
140WINAPI
143 IN PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
144{
145 DPRINT1("SetConsoleScreenBufferInfoEx(0x%p, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, lpConsoleScreenBufferInfoEx);
147 return FALSE;
148}
149
150
151/*
152 * @unimplemented
153 */
154BOOL
155WINAPI
158 IN BOOL bMaximumWindow,
159 OUT PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx)
160{
161 DPRINT1("GetCurrentConsoleFontEx(0x%p, 0x%x, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, bMaximumWindow, lpConsoleCurrentFontEx);
163 return FALSE;
164}
165
166#endif // (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
167
168/* EOF */
#define DECLSPEC_HOTPATCH
Definition: _mingw.h:243
#define DPRINT1
Definition: precomp.h:8
@ ConsolepSetHistory
Definition: conmsg.h:109
@ ConsolepGetHistory
Definition: conmsg.h:108
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleW(OUT LPWSTR lpConsoleTitle, IN DWORD nSize)
Definition: vista.c:97
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleHistoryInfo(PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
Definition: vista.c:27
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleA(OUT LPSTR lpConsoleTitle, IN DWORD nSize)
Definition: vista.c:112
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleHistoryInfo(IN PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
Definition: vista.c:62
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferInfoEx(IN HANDLE hConsoleOutput, IN PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
Definition: vista.c:142
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleScreenBufferInfoEx(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
Definition: vista.c:127
BOOL WINAPI DECLSPEC_HOTPATCH GetCurrentConsoleFontEx(IN HANDLE hConsoleOutput, IN BOOL bMaximumWindow, OUT PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx)
Definition: vista.c:157
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
NTSTATUS NTAPI CsrClientCallServer(_Inout_ PCSR_API_MESSAGE ApiMessage, _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ CSR_API_NUMBER ApiNumber, _In_ ULONG DataLength)
Definition: connect.c:366
CONSOLE_GETSETHISTORYINFO HistoryInfoRequest
Definition: conmsg.h:1009
NTSTATUS Status
Definition: conmsg.h:919
union _CONSOLE_API_MESSAGE::@3540 Data
UINT NumberOfHistoryBuffers
Definition: wincon.h:287
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2084
#define WINAPI
Definition: msvc.h:6
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184