ReactOS  0.4.14-dev-1314-gacf135d
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  */
24 BOOL
25 WINAPI
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  */
59 BOOL
60 WINAPI
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  */
94 DWORD
95 WINAPI
98  IN DWORD nSize)
99 {
100  DPRINT1("GetConsoleOriginalTitleW(0x%p, 0x%x) UNIMPLEMENTED!\n", lpConsoleTitle, nSize);
102  return 0;
103 }
104 
105 
106 /*
107  * @unimplemented
108  */
109 DWORD
110 WINAPI
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  */
124 BOOL
125 WINAPI
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  */
139 BOOL
140 WINAPI
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  */
154 BOOL
155 WINAPI
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 ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define IN
Definition: typedefs.h:39
#define TRUE
Definition: types.h:120
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleW(OUT LPWSTR lpConsoleTitle, IN DWORD nSize)
Definition: vista.c:97
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2037
CONSOLE_GETSETHISTORYINFO HistoryInfoRequest
Definition: conmsg.h:987
UINT NumberOfHistoryBuffers
Definition: wincon.h:290
char * LPSTR
Definition: xmlstorage.h:182
union _CONSOLE_API_MESSAGE::@3430 Data
NTSTATUS Status
Definition: csrmsg.h:112
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleScreenBufferInfoEx(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
Definition: vista.c:127
smooth NULL
Definition: ftsmooth.c:416
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define DECLSPEC_HOTPATCH
Definition: _mingw.h:242
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
#define SetLastError(x)
Definition: compat.h:417
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleHistoryInfo(IN PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
Definition: vista.c:62
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleHistoryInfo(PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
Definition: vista.c:27
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferInfoEx(IN HANDLE hConsoleOutput, IN PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
Definition: vista.c:142
BOOL WINAPI DECLSPEC_HOTPATCH GetCurrentConsoleFontEx(IN HANDLE hConsoleOutput, IN BOOL bMaximumWindow, OUT PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx)
Definition: vista.c:157
#define DPRINT1
Definition: precomp.h:8
#define OUT
Definition: typedefs.h:40
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleA(OUT LPSTR lpConsoleTitle, IN DWORD nSize)
Definition: vista.c:112
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15